diff --git a/VERSION b/VERSION index 782b68ae5..1f7e53dc6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2084 \ No newline at end of file +1.36.2085 \ No newline at end of file diff --git a/vpc/CMakeLists.txt b/vpc/CMakeLists.txt index e616815d0..ee53393c7 100644 --- a/vpc/CMakeLists.txt +++ b/vpc/CMakeLists.txt @@ -45,6 +45,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/AllocateEipAddressProResult.h include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h include/alibabacloud/vpc/model/AllocateEipSegmentAddressResult.h + include/alibabacloud/vpc/model/AllocateIpv6AddressRequest.h + include/alibabacloud/vpc/model/AllocateIpv6AddressResult.h include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthResult.h include/alibabacloud/vpc/model/AllocateVpcIpv6CidrRequest.h @@ -55,8 +57,6 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/AssociateEipAddressResult.h include/alibabacloud/vpc/model/AssociateEipAddressBatchRequest.h include/alibabacloud/vpc/model/AssociateEipAddressBatchResult.h - include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h - include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceResult.h include/alibabacloud/vpc/model/AssociateHaVipRequest.h include/alibabacloud/vpc/model/AssociateHaVipResult.h include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h @@ -113,6 +113,14 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/CreateDhcpOptionsSetResult.h include/alibabacloud/vpc/model/CreateExpressCloudConnectionRequest.h include/alibabacloud/vpc/model/CreateExpressCloudConnectionResult.h + include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosRequest.h + include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosResult.h + include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosQueueRequest.h + include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosQueueResult.h + include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosRuleRequest.h + include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosRuleResult.h + include/alibabacloud/vpc/model/CreateFailoverTestJobRequest.h + include/alibabacloud/vpc/model/CreateFailoverTestJobResult.h include/alibabacloud/vpc/model/CreateFlowLogRequest.h include/alibabacloud/vpc/model/CreateFlowLogResult.h include/alibabacloud/vpc/model/CreateForwardEntryRequest.h @@ -123,6 +131,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/CreateGlobalAccelerationInstanceResult.h include/alibabacloud/vpc/model/CreateHaVipRequest.h include/alibabacloud/vpc/model/CreateHaVipResult.h + include/alibabacloud/vpc/model/CreateHighReliablePhysicalConnectionRequest.h + include/alibabacloud/vpc/model/CreateHighReliablePhysicalConnectionResult.h include/alibabacloud/vpc/model/CreateIPv6TranslatorRequest.h include/alibabacloud/vpc/model/CreateIPv6TranslatorResult.h include/alibabacloud/vpc/model/CreateIPv6TranslatorAclListRequest.h @@ -175,6 +185,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/CreateTrafficMirrorSessionResult.h include/alibabacloud/vpc/model/CreateVSwitchRequest.h include/alibabacloud/vpc/model/CreateVSwitchResult.h + include/alibabacloud/vpc/model/CreateVSwitchCidrReservationRequest.h + include/alibabacloud/vpc/model/CreateVSwitchCidrReservationResult.h include/alibabacloud/vpc/model/CreateVbrHaRequest.h include/alibabacloud/vpc/model/CreateVbrHaResult.h include/alibabacloud/vpc/model/CreateVcoRouteEntryRequest.h @@ -217,6 +229,14 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DeleteCustomerGatewayResult.h include/alibabacloud/vpc/model/DeleteDhcpOptionsSetRequest.h include/alibabacloud/vpc/model/DeleteDhcpOptionsSetResult.h + include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosRequest.h + include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosResult.h + include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosQueueRequest.h + include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosQueueResult.h + include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosRuleRequest.h + include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosRuleResult.h + include/alibabacloud/vpc/model/DeleteFailoverTestJobRequest.h + include/alibabacloud/vpc/model/DeleteFailoverTestJobResult.h include/alibabacloud/vpc/model/DeleteFlowLogRequest.h include/alibabacloud/vpc/model/DeleteFlowLogResult.h include/alibabacloud/vpc/model/DeleteForwardEntryRequest.h @@ -279,6 +299,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DeleteTrafficMirrorSessionResult.h include/alibabacloud/vpc/model/DeleteVSwitchRequest.h include/alibabacloud/vpc/model/DeleteVSwitchResult.h + include/alibabacloud/vpc/model/DeleteVSwitchCidrReservationRequest.h + include/alibabacloud/vpc/model/DeleteVSwitchCidrReservationResult.h include/alibabacloud/vpc/model/DeleteVbrHaRequest.h include/alibabacloud/vpc/model/DeleteVbrHaResult.h include/alibabacloud/vpc/model/DeleteVcoRouteEntryRequest.h @@ -303,6 +325,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DeleteVpnRouteEntryResult.h include/alibabacloud/vpc/model/DeletionProtectionRequest.h include/alibabacloud/vpc/model/DeletionProtectionResult.h + include/alibabacloud/vpc/model/Describe95TrafficRequest.h + include/alibabacloud/vpc/model/Describe95TrafficResult.h include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h include/alibabacloud/vpc/model/DescribeAccessPointsResult.h include/alibabacloud/vpc/model/DescribeBgpGroupsRequest.h @@ -327,6 +351,16 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeEipMonitorDataResult.h include/alibabacloud/vpc/model/DescribeEipSegmentRequest.h include/alibabacloud/vpc/model/DescribeEipSegmentResult.h + include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosRequest.h + include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosResult.h + include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosQueueRequest.h + include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosQueueResult.h + include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosRuleRequest.h + include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosRuleResult.h + include/alibabacloud/vpc/model/DescribeFailoverTestJobRequest.h + include/alibabacloud/vpc/model/DescribeFailoverTestJobResult.h + include/alibabacloud/vpc/model/DescribeFailoverTestJobsRequest.h + include/alibabacloud/vpc/model/DescribeFailoverTestJobsResult.h include/alibabacloud/vpc/model/DescribeFlowLogsRequest.h include/alibabacloud/vpc/model/DescribeFlowLogsResult.h include/alibabacloud/vpc/model/DescribeForwardTableEntriesRequest.h @@ -355,6 +389,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeResult.h include/alibabacloud/vpc/model/DescribeIpv6GatewaysRequest.h include/alibabacloud/vpc/model/DescribeIpv6GatewaysResult.h + include/alibabacloud/vpc/model/DescribeNatGatewayAssociateNetworkInterfacesRequest.h + include/alibabacloud/vpc/model/DescribeNatGatewayAssociateNetworkInterfacesResult.h include/alibabacloud/vpc/model/DescribeNatGatewaysRequest.h include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h @@ -387,6 +423,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeSslVpnClientCertResult.h include/alibabacloud/vpc/model/DescribeSslVpnClientCertsRequest.h include/alibabacloud/vpc/model/DescribeSslVpnClientCertsResult.h + include/alibabacloud/vpc/model/DescribeSslVpnClientsRequest.h + include/alibabacloud/vpc/model/DescribeSslVpnClientsResult.h include/alibabacloud/vpc/model/DescribeSslVpnServersRequest.h include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h include/alibabacloud/vpc/model/DescribeTagKeysRequest.h @@ -425,6 +463,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeVpnCrossAccountAuthorizationsResult.h include/alibabacloud/vpc/model/DescribeVpnGatewayRequest.h include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h + include/alibabacloud/vpc/model/DescribeVpnGatewayAvailableZonesRequest.h + include/alibabacloud/vpc/model/DescribeVpnGatewayAvailableZonesResult.h include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesRequest.h @@ -437,6 +477,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/DescribeZonesResult.h include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcRequest.h include/alibabacloud/vpc/model/DetachDhcpOptionsSetFromVpcResult.h + include/alibabacloud/vpc/model/DiagnoseVpnConnectionsRequest.h + include/alibabacloud/vpc/model/DiagnoseVpnConnectionsResult.h include/alibabacloud/vpc/model/DiagnoseVpnGatewayRequest.h include/alibabacloud/vpc/model/DiagnoseVpnGatewayResult.h include/alibabacloud/vpc/model/DisableNatGatewayEcsMetricRequest.h @@ -467,12 +509,14 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/GetIpv4GatewayAttributeResult.h include/alibabacloud/vpc/model/GetNatGatewayAttributeRequest.h include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h - include/alibabacloud/vpc/model/GetNatGatewayConvertStatusRequest.h - include/alibabacloud/vpc/model/GetNatGatewayConvertStatusResult.h include/alibabacloud/vpc/model/GetPhysicalConnectionServiceStatusRequest.h include/alibabacloud/vpc/model/GetPhysicalConnectionServiceStatusResult.h + include/alibabacloud/vpc/model/GetPublicIpAddressPoolServiceStatusRequest.h + include/alibabacloud/vpc/model/GetPublicIpAddressPoolServiceStatusResult.h include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusRequest.h include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusResult.h + include/alibabacloud/vpc/model/GetVSwitchCidrReservationUsageRequest.h + include/alibabacloud/vpc/model/GetVSwitchCidrReservationUsageResult.h include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeRequest.h include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeResult.h include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsRequest.h @@ -523,12 +567,16 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.h include/alibabacloud/vpc/model/ListTrafficMirrorSessionsRequest.h include/alibabacloud/vpc/model/ListTrafficMirrorSessionsResult.h + include/alibabacloud/vpc/model/ListVSwitchCidrReservationsRequest.h + include/alibabacloud/vpc/model/ListVSwitchCidrReservationsResult.h include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsRequest.h include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsResult.h include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserRequest.h include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserResult.h include/alibabacloud/vpc/model/ListVpcGatewayEndpointsRequest.h include/alibabacloud/vpc/model/ListVpcGatewayEndpointsResult.h + include/alibabacloud/vpc/model/ListVpcPublishedRouteEntriesRequest.h + include/alibabacloud/vpc/model/ListVpcPublishedRouteEntriesResult.h include/alibabacloud/vpc/model/ListVpnCertificateAssociationsRequest.h include/alibabacloud/vpc/model/ListVpnCertificateAssociationsResult.h include/alibabacloud/vpc/model/ModifyBgpGroupAttributeRequest.h @@ -545,10 +593,18 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeResult.h include/alibabacloud/vpc/model/ModifyEipAddressAttributeRequest.h include/alibabacloud/vpc/model/ModifyEipAddressAttributeResult.h + include/alibabacloud/vpc/model/ModifyEipForwardModeRequest.h + include/alibabacloud/vpc/model/ModifyEipForwardModeResult.h include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeRequest.h include/alibabacloud/vpc/model/ModifyExpressCloudConnectionAttributeResult.h include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthRequest.h include/alibabacloud/vpc/model/ModifyExpressCloudConnectionBandwidthResult.h + include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosRequest.h + include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosResult.h + include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosQueueRequest.h + include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosQueueResult.h + include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosRuleRequest.h + include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosRuleResult.h include/alibabacloud/vpc/model/ModifyFlowLogAttributeRequest.h include/alibabacloud/vpc/model/ModifyFlowLogAttributeResult.h include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h @@ -575,8 +631,6 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ModifyIpv6AddressAttributeResult.h include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeRequest.h include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeResult.h - include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecRequest.h - include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecResult.h include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthRequest.h include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthResult.h include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h @@ -605,10 +659,14 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ModifySslVpnClientCertResult.h include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h include/alibabacloud/vpc/model/ModifySslVpnServerResult.h + include/alibabacloud/vpc/model/ModifyTunnelAttributeRequest.h + include/alibabacloud/vpc/model/ModifyTunnelAttributeResult.h include/alibabacloud/vpc/model/ModifyVRouterAttributeRequest.h include/alibabacloud/vpc/model/ModifyVRouterAttributeResult.h include/alibabacloud/vpc/model/ModifyVSwitchAttributeRequest.h include/alibabacloud/vpc/model/ModifyVSwitchAttributeResult.h + include/alibabacloud/vpc/model/ModifyVSwitchCidrReservationAttributeRequest.h + include/alibabacloud/vpc/model/ModifyVSwitchCidrReservationAttributeResult.h include/alibabacloud/vpc/model/ModifyVcoRouteEntryWeightRequest.h include/alibabacloud/vpc/model/ModifyVcoRouteEntryWeightResult.h include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h @@ -633,12 +691,18 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ModifyVpnRouteEntryWeightResult.h include/alibabacloud/vpc/model/MoveResourceGroupRequest.h include/alibabacloud/vpc/model/MoveResourceGroupResult.h + include/alibabacloud/vpc/model/MoveVpnResourceGroupRequest.h + include/alibabacloud/vpc/model/MoveVpnResourceGroupResult.h include/alibabacloud/vpc/model/OpenFlowLogServiceRequest.h include/alibabacloud/vpc/model/OpenFlowLogServiceResult.h include/alibabacloud/vpc/model/OpenPhysicalConnectionServiceRequest.h include/alibabacloud/vpc/model/OpenPhysicalConnectionServiceResult.h + include/alibabacloud/vpc/model/OpenPublicIpAddressPoolServiceRequest.h + include/alibabacloud/vpc/model/OpenPublicIpAddressPoolServiceResult.h include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h include/alibabacloud/vpc/model/OpenTrafficMirrorServiceResult.h + include/alibabacloud/vpc/model/PublishVpcRouteEntriesRequest.h + include/alibabacloud/vpc/model/PublishVpcRouteEntriesResult.h include/alibabacloud/vpc/model/PublishVpnRouteEntryRequest.h include/alibabacloud/vpc/model/PublishVpnRouteEntryResult.h include/alibabacloud/vpc/model/RecoverPhysicalConnectionRequest.h @@ -649,6 +713,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/ReleaseEipAddressResult.h include/alibabacloud/vpc/model/ReleaseEipSegmentAddressRequest.h include/alibabacloud/vpc/model/ReleaseEipSegmentAddressResult.h + include/alibabacloud/vpc/model/ReleaseIpv6AddressRequest.h + include/alibabacloud/vpc/model/ReleaseIpv6AddressResult.h include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpRequest.h include/alibabacloud/vpc/model/RemoveCommonBandwidthPackageIpResult.h include/alibabacloud/vpc/model/RemoveGlobalAccelerationInstanceIpRequest.h @@ -665,8 +731,14 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/RevokeInstanceFromCenResult.h include/alibabacloud/vpc/model/RevokeInstanceFromVbrRequest.h include/alibabacloud/vpc/model/RevokeInstanceFromVbrResult.h + include/alibabacloud/vpc/model/SecondApplyPhysicalConnectionLOARequest.h + include/alibabacloud/vpc/model/SecondApplyPhysicalConnectionLOAResult.h include/alibabacloud/vpc/model/SetHighDefinitionMonitorLogStatusRequest.h include/alibabacloud/vpc/model/SetHighDefinitionMonitorLogStatusResult.h + include/alibabacloud/vpc/model/StartFailoverTestJobRequest.h + include/alibabacloud/vpc/model/StartFailoverTestJobResult.h + include/alibabacloud/vpc/model/StopFailoverTestJobRequest.h + include/alibabacloud/vpc/model/StopFailoverTestJobResult.h include/alibabacloud/vpc/model/TagResourcesRequest.h include/alibabacloud/vpc/model/TagResourcesResult.h include/alibabacloud/vpc/model/TagResourcesForExpressConnectRequest.h @@ -675,6 +747,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/TerminatePhysicalConnectionResult.h include/alibabacloud/vpc/model/TerminateVirtualBorderRouterRequest.h include/alibabacloud/vpc/model/TerminateVirtualBorderRouterResult.h + include/alibabacloud/vpc/model/TransformEipSegmentToPublicIpAddressPoolRequest.h + include/alibabacloud/vpc/model/TransformEipSegmentToPublicIpAddressPoolResult.h include/alibabacloud/vpc/model/UnTagResourcesRequest.h include/alibabacloud/vpc/model/UnTagResourcesResult.h include/alibabacloud/vpc/model/UnassociateEipAddressRequest.h @@ -695,6 +769,8 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/UntagResourcesForExpressConnectResult.h include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeRequest.h include/alibabacloud/vpc/model/UpdateDhcpOptionsSetAttributeResult.h + include/alibabacloud/vpc/model/UpdateFailoverTestJobRequest.h + include/alibabacloud/vpc/model/UpdateFailoverTestJobResult.h include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeRequest.h include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeResult.h include/alibabacloud/vpc/model/UpdateIpsecServerRequest.h @@ -720,7 +796,9 @@ set(vpc_public_header_model include/alibabacloud/vpc/model/UpdateVpcGatewayEndpointAttributeRequest.h include/alibabacloud/vpc/model/UpdateVpcGatewayEndpointAttributeResult.h include/alibabacloud/vpc/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest.h - include/alibabacloud/vpc/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.h ) + include/alibabacloud/vpc/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.h + include/alibabacloud/vpc/model/WithdrawVpcPublishedRouteEntriesRequest.h + include/alibabacloud/vpc/model/WithdrawVpcPublishedRouteEntriesResult.h ) set(vpc_src src/VpcClient.cc @@ -748,6 +826,8 @@ set(vpc_src src/model/AllocateEipAddressProResult.cc src/model/AllocateEipSegmentAddressRequest.cc src/model/AllocateEipSegmentAddressResult.cc + src/model/AllocateIpv6AddressRequest.cc + src/model/AllocateIpv6AddressResult.cc src/model/AllocateIpv6InternetBandwidthRequest.cc src/model/AllocateIpv6InternetBandwidthResult.cc src/model/AllocateVpcIpv6CidrRequest.cc @@ -758,8 +838,6 @@ set(vpc_src src/model/AssociateEipAddressResult.cc src/model/AssociateEipAddressBatchRequest.cc src/model/AssociateEipAddressBatchResult.cc - src/model/AssociateGlobalAccelerationInstanceRequest.cc - src/model/AssociateGlobalAccelerationInstanceResult.cc src/model/AssociateHaVipRequest.cc src/model/AssociateHaVipResult.cc src/model/AssociateNetworkAclRequest.cc @@ -816,6 +894,14 @@ set(vpc_src src/model/CreateDhcpOptionsSetResult.cc src/model/CreateExpressCloudConnectionRequest.cc src/model/CreateExpressCloudConnectionResult.cc + src/model/CreateExpressConnectTrafficQosRequest.cc + src/model/CreateExpressConnectTrafficQosResult.cc + src/model/CreateExpressConnectTrafficQosQueueRequest.cc + src/model/CreateExpressConnectTrafficQosQueueResult.cc + src/model/CreateExpressConnectTrafficQosRuleRequest.cc + src/model/CreateExpressConnectTrafficQosRuleResult.cc + src/model/CreateFailoverTestJobRequest.cc + src/model/CreateFailoverTestJobResult.cc src/model/CreateFlowLogRequest.cc src/model/CreateFlowLogResult.cc src/model/CreateForwardEntryRequest.cc @@ -826,6 +912,8 @@ set(vpc_src src/model/CreateGlobalAccelerationInstanceResult.cc src/model/CreateHaVipRequest.cc src/model/CreateHaVipResult.cc + src/model/CreateHighReliablePhysicalConnectionRequest.cc + src/model/CreateHighReliablePhysicalConnectionResult.cc src/model/CreateIPv6TranslatorRequest.cc src/model/CreateIPv6TranslatorResult.cc src/model/CreateIPv6TranslatorAclListRequest.cc @@ -878,6 +966,8 @@ set(vpc_src src/model/CreateTrafficMirrorSessionResult.cc src/model/CreateVSwitchRequest.cc src/model/CreateVSwitchResult.cc + src/model/CreateVSwitchCidrReservationRequest.cc + src/model/CreateVSwitchCidrReservationResult.cc src/model/CreateVbrHaRequest.cc src/model/CreateVbrHaResult.cc src/model/CreateVcoRouteEntryRequest.cc @@ -920,6 +1010,14 @@ set(vpc_src src/model/DeleteCustomerGatewayResult.cc src/model/DeleteDhcpOptionsSetRequest.cc src/model/DeleteDhcpOptionsSetResult.cc + src/model/DeleteExpressConnectTrafficQosRequest.cc + src/model/DeleteExpressConnectTrafficQosResult.cc + src/model/DeleteExpressConnectTrafficQosQueueRequest.cc + src/model/DeleteExpressConnectTrafficQosQueueResult.cc + src/model/DeleteExpressConnectTrafficQosRuleRequest.cc + src/model/DeleteExpressConnectTrafficQosRuleResult.cc + src/model/DeleteFailoverTestJobRequest.cc + src/model/DeleteFailoverTestJobResult.cc src/model/DeleteFlowLogRequest.cc src/model/DeleteFlowLogResult.cc src/model/DeleteForwardEntryRequest.cc @@ -982,6 +1080,8 @@ set(vpc_src src/model/DeleteTrafficMirrorSessionResult.cc src/model/DeleteVSwitchRequest.cc src/model/DeleteVSwitchResult.cc + src/model/DeleteVSwitchCidrReservationRequest.cc + src/model/DeleteVSwitchCidrReservationResult.cc src/model/DeleteVbrHaRequest.cc src/model/DeleteVbrHaResult.cc src/model/DeleteVcoRouteEntryRequest.cc @@ -1006,6 +1106,8 @@ set(vpc_src src/model/DeleteVpnRouteEntryResult.cc src/model/DeletionProtectionRequest.cc src/model/DeletionProtectionResult.cc + src/model/Describe95TrafficRequest.cc + src/model/Describe95TrafficResult.cc src/model/DescribeAccessPointsRequest.cc src/model/DescribeAccessPointsResult.cc src/model/DescribeBgpGroupsRequest.cc @@ -1030,6 +1132,16 @@ set(vpc_src src/model/DescribeEipMonitorDataResult.cc src/model/DescribeEipSegmentRequest.cc src/model/DescribeEipSegmentResult.cc + src/model/DescribeExpressConnectTrafficQosRequest.cc + src/model/DescribeExpressConnectTrafficQosResult.cc + src/model/DescribeExpressConnectTrafficQosQueueRequest.cc + src/model/DescribeExpressConnectTrafficQosQueueResult.cc + src/model/DescribeExpressConnectTrafficQosRuleRequest.cc + src/model/DescribeExpressConnectTrafficQosRuleResult.cc + src/model/DescribeFailoverTestJobRequest.cc + src/model/DescribeFailoverTestJobResult.cc + src/model/DescribeFailoverTestJobsRequest.cc + src/model/DescribeFailoverTestJobsResult.cc src/model/DescribeFlowLogsRequest.cc src/model/DescribeFlowLogsResult.cc src/model/DescribeForwardTableEntriesRequest.cc @@ -1058,6 +1170,8 @@ set(vpc_src src/model/DescribeIpv6GatewayAttributeResult.cc src/model/DescribeIpv6GatewaysRequest.cc src/model/DescribeIpv6GatewaysResult.cc + src/model/DescribeNatGatewayAssociateNetworkInterfacesRequest.cc + src/model/DescribeNatGatewayAssociateNetworkInterfacesResult.cc src/model/DescribeNatGatewaysRequest.cc src/model/DescribeNatGatewaysResult.cc src/model/DescribeNetworkAclAttributesRequest.cc @@ -1090,6 +1204,8 @@ set(vpc_src src/model/DescribeSslVpnClientCertResult.cc src/model/DescribeSslVpnClientCertsRequest.cc src/model/DescribeSslVpnClientCertsResult.cc + src/model/DescribeSslVpnClientsRequest.cc + src/model/DescribeSslVpnClientsResult.cc src/model/DescribeSslVpnServersRequest.cc src/model/DescribeSslVpnServersResult.cc src/model/DescribeTagKeysRequest.cc @@ -1128,6 +1244,8 @@ set(vpc_src src/model/DescribeVpnCrossAccountAuthorizationsResult.cc src/model/DescribeVpnGatewayRequest.cc src/model/DescribeVpnGatewayResult.cc + src/model/DescribeVpnGatewayAvailableZonesRequest.cc + src/model/DescribeVpnGatewayAvailableZonesResult.cc src/model/DescribeVpnGatewaysRequest.cc src/model/DescribeVpnGatewaysResult.cc src/model/DescribeVpnPbrRouteEntriesRequest.cc @@ -1140,6 +1258,8 @@ set(vpc_src src/model/DescribeZonesResult.cc src/model/DetachDhcpOptionsSetFromVpcRequest.cc src/model/DetachDhcpOptionsSetFromVpcResult.cc + src/model/DiagnoseVpnConnectionsRequest.cc + src/model/DiagnoseVpnConnectionsResult.cc src/model/DiagnoseVpnGatewayRequest.cc src/model/DiagnoseVpnGatewayResult.cc src/model/DisableNatGatewayEcsMetricRequest.cc @@ -1170,12 +1290,14 @@ set(vpc_src src/model/GetIpv4GatewayAttributeResult.cc src/model/GetNatGatewayAttributeRequest.cc src/model/GetNatGatewayAttributeResult.cc - src/model/GetNatGatewayConvertStatusRequest.cc - src/model/GetNatGatewayConvertStatusResult.cc src/model/GetPhysicalConnectionServiceStatusRequest.cc src/model/GetPhysicalConnectionServiceStatusResult.cc + src/model/GetPublicIpAddressPoolServiceStatusRequest.cc + src/model/GetPublicIpAddressPoolServiceStatusResult.cc src/model/GetTrafficMirrorServiceStatusRequest.cc src/model/GetTrafficMirrorServiceStatusResult.cc + src/model/GetVSwitchCidrReservationUsageRequest.cc + src/model/GetVSwitchCidrReservationUsageResult.cc src/model/GetVpcGatewayEndpointAttributeRequest.cc src/model/GetVpcGatewayEndpointAttributeResult.cc src/model/GetVpcPrefixListAssociationsRequest.cc @@ -1226,12 +1348,16 @@ set(vpc_src src/model/ListTrafficMirrorFiltersResult.cc src/model/ListTrafficMirrorSessionsRequest.cc src/model/ListTrafficMirrorSessionsResult.cc + src/model/ListVSwitchCidrReservationsRequest.cc + src/model/ListVSwitchCidrReservationsResult.cc src/model/ListVirtualPhysicalConnectionsRequest.cc src/model/ListVirtualPhysicalConnectionsResult.cc src/model/ListVpcEndpointServicesByEndUserRequest.cc src/model/ListVpcEndpointServicesByEndUserResult.cc src/model/ListVpcGatewayEndpointsRequest.cc src/model/ListVpcGatewayEndpointsResult.cc + src/model/ListVpcPublishedRouteEntriesRequest.cc + src/model/ListVpcPublishedRouteEntriesResult.cc src/model/ListVpnCertificateAssociationsRequest.cc src/model/ListVpnCertificateAssociationsResult.cc src/model/ModifyBgpGroupAttributeRequest.cc @@ -1248,10 +1374,18 @@ set(vpc_src src/model/ModifyCustomerGatewayAttributeResult.cc src/model/ModifyEipAddressAttributeRequest.cc src/model/ModifyEipAddressAttributeResult.cc + src/model/ModifyEipForwardModeRequest.cc + src/model/ModifyEipForwardModeResult.cc src/model/ModifyExpressCloudConnectionAttributeRequest.cc src/model/ModifyExpressCloudConnectionAttributeResult.cc src/model/ModifyExpressCloudConnectionBandwidthRequest.cc src/model/ModifyExpressCloudConnectionBandwidthResult.cc + src/model/ModifyExpressConnectTrafficQosRequest.cc + src/model/ModifyExpressConnectTrafficQosResult.cc + src/model/ModifyExpressConnectTrafficQosQueueRequest.cc + src/model/ModifyExpressConnectTrafficQosQueueResult.cc + src/model/ModifyExpressConnectTrafficQosRuleRequest.cc + src/model/ModifyExpressConnectTrafficQosRuleResult.cc src/model/ModifyFlowLogAttributeRequest.cc src/model/ModifyFlowLogAttributeResult.cc src/model/ModifyForwardEntryRequest.cc @@ -1278,8 +1412,6 @@ set(vpc_src src/model/ModifyIpv6AddressAttributeResult.cc src/model/ModifyIpv6GatewayAttributeRequest.cc src/model/ModifyIpv6GatewayAttributeResult.cc - src/model/ModifyIpv6GatewaySpecRequest.cc - src/model/ModifyIpv6GatewaySpecResult.cc src/model/ModifyIpv6InternetBandwidthRequest.cc src/model/ModifyIpv6InternetBandwidthResult.cc src/model/ModifyNatGatewayAttributeRequest.cc @@ -1308,10 +1440,14 @@ set(vpc_src src/model/ModifySslVpnClientCertResult.cc src/model/ModifySslVpnServerRequest.cc src/model/ModifySslVpnServerResult.cc + src/model/ModifyTunnelAttributeRequest.cc + src/model/ModifyTunnelAttributeResult.cc src/model/ModifyVRouterAttributeRequest.cc src/model/ModifyVRouterAttributeResult.cc src/model/ModifyVSwitchAttributeRequest.cc src/model/ModifyVSwitchAttributeResult.cc + src/model/ModifyVSwitchCidrReservationAttributeRequest.cc + src/model/ModifyVSwitchCidrReservationAttributeResult.cc src/model/ModifyVcoRouteEntryWeightRequest.cc src/model/ModifyVcoRouteEntryWeightResult.cc src/model/ModifyVirtualBorderRouterAttributeRequest.cc @@ -1336,12 +1472,18 @@ set(vpc_src src/model/ModifyVpnRouteEntryWeightResult.cc src/model/MoveResourceGroupRequest.cc src/model/MoveResourceGroupResult.cc + src/model/MoveVpnResourceGroupRequest.cc + src/model/MoveVpnResourceGroupResult.cc src/model/OpenFlowLogServiceRequest.cc src/model/OpenFlowLogServiceResult.cc src/model/OpenPhysicalConnectionServiceRequest.cc src/model/OpenPhysicalConnectionServiceResult.cc + src/model/OpenPublicIpAddressPoolServiceRequest.cc + src/model/OpenPublicIpAddressPoolServiceResult.cc src/model/OpenTrafficMirrorServiceRequest.cc src/model/OpenTrafficMirrorServiceResult.cc + src/model/PublishVpcRouteEntriesRequest.cc + src/model/PublishVpcRouteEntriesResult.cc src/model/PublishVpnRouteEntryRequest.cc src/model/PublishVpnRouteEntryResult.cc src/model/RecoverPhysicalConnectionRequest.cc @@ -1352,6 +1494,8 @@ set(vpc_src src/model/ReleaseEipAddressResult.cc src/model/ReleaseEipSegmentAddressRequest.cc src/model/ReleaseEipSegmentAddressResult.cc + src/model/ReleaseIpv6AddressRequest.cc + src/model/ReleaseIpv6AddressResult.cc src/model/RemoveCommonBandwidthPackageIpRequest.cc src/model/RemoveCommonBandwidthPackageIpResult.cc src/model/RemoveGlobalAccelerationInstanceIpRequest.cc @@ -1368,8 +1512,14 @@ set(vpc_src src/model/RevokeInstanceFromCenResult.cc src/model/RevokeInstanceFromVbrRequest.cc src/model/RevokeInstanceFromVbrResult.cc + src/model/SecondApplyPhysicalConnectionLOARequest.cc + src/model/SecondApplyPhysicalConnectionLOAResult.cc src/model/SetHighDefinitionMonitorLogStatusRequest.cc src/model/SetHighDefinitionMonitorLogStatusResult.cc + src/model/StartFailoverTestJobRequest.cc + src/model/StartFailoverTestJobResult.cc + src/model/StopFailoverTestJobRequest.cc + src/model/StopFailoverTestJobResult.cc src/model/TagResourcesRequest.cc src/model/TagResourcesResult.cc src/model/TagResourcesForExpressConnectRequest.cc @@ -1378,6 +1528,8 @@ set(vpc_src src/model/TerminatePhysicalConnectionResult.cc src/model/TerminateVirtualBorderRouterRequest.cc src/model/TerminateVirtualBorderRouterResult.cc + src/model/TransformEipSegmentToPublicIpAddressPoolRequest.cc + src/model/TransformEipSegmentToPublicIpAddressPoolResult.cc src/model/UnTagResourcesRequest.cc src/model/UnTagResourcesResult.cc src/model/UnassociateEipAddressRequest.cc @@ -1398,6 +1550,8 @@ set(vpc_src src/model/UntagResourcesForExpressConnectResult.cc src/model/UpdateDhcpOptionsSetAttributeRequest.cc src/model/UpdateDhcpOptionsSetAttributeResult.cc + src/model/UpdateFailoverTestJobRequest.cc + src/model/UpdateFailoverTestJobResult.cc src/model/UpdateGatewayRouteTableEntryAttributeRequest.cc src/model/UpdateGatewayRouteTableEntryAttributeResult.cc src/model/UpdateIpsecServerRequest.cc @@ -1423,7 +1577,9 @@ set(vpc_src src/model/UpdateVpcGatewayEndpointAttributeRequest.cc src/model/UpdateVpcGatewayEndpointAttributeResult.cc src/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest.cc - src/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.cc ) + src/model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.cc + src/model/WithdrawVpcPublishedRouteEntriesRequest.cc + src/model/WithdrawVpcPublishedRouteEntriesResult.cc ) add_library(vpc ${LIB_TYPE} ${vpc_public_header} diff --git a/vpc/include/alibabacloud/vpc/VpcClient.h b/vpc/include/alibabacloud/vpc/VpcClient.h index 2d621addc..eefdab128 100644 --- a/vpc/include/alibabacloud/vpc/VpcClient.h +++ b/vpc/include/alibabacloud/vpc/VpcClient.h @@ -46,6 +46,8 @@ #include "model/AllocateEipAddressProResult.h" #include "model/AllocateEipSegmentAddressRequest.h" #include "model/AllocateEipSegmentAddressResult.h" +#include "model/AllocateIpv6AddressRequest.h" +#include "model/AllocateIpv6AddressResult.h" #include "model/AllocateIpv6InternetBandwidthRequest.h" #include "model/AllocateIpv6InternetBandwidthResult.h" #include "model/AllocateVpcIpv6CidrRequest.h" @@ -56,8 +58,6 @@ #include "model/AssociateEipAddressResult.h" #include "model/AssociateEipAddressBatchRequest.h" #include "model/AssociateEipAddressBatchResult.h" -#include "model/AssociateGlobalAccelerationInstanceRequest.h" -#include "model/AssociateGlobalAccelerationInstanceResult.h" #include "model/AssociateHaVipRequest.h" #include "model/AssociateHaVipResult.h" #include "model/AssociateNetworkAclRequest.h" @@ -114,6 +114,14 @@ #include "model/CreateDhcpOptionsSetResult.h" #include "model/CreateExpressCloudConnectionRequest.h" #include "model/CreateExpressCloudConnectionResult.h" +#include "model/CreateExpressConnectTrafficQosRequest.h" +#include "model/CreateExpressConnectTrafficQosResult.h" +#include "model/CreateExpressConnectTrafficQosQueueRequest.h" +#include "model/CreateExpressConnectTrafficQosQueueResult.h" +#include "model/CreateExpressConnectTrafficQosRuleRequest.h" +#include "model/CreateExpressConnectTrafficQosRuleResult.h" +#include "model/CreateFailoverTestJobRequest.h" +#include "model/CreateFailoverTestJobResult.h" #include "model/CreateFlowLogRequest.h" #include "model/CreateFlowLogResult.h" #include "model/CreateForwardEntryRequest.h" @@ -124,6 +132,8 @@ #include "model/CreateGlobalAccelerationInstanceResult.h" #include "model/CreateHaVipRequest.h" #include "model/CreateHaVipResult.h" +#include "model/CreateHighReliablePhysicalConnectionRequest.h" +#include "model/CreateHighReliablePhysicalConnectionResult.h" #include "model/CreateIPv6TranslatorRequest.h" #include "model/CreateIPv6TranslatorResult.h" #include "model/CreateIPv6TranslatorAclListRequest.h" @@ -176,6 +186,8 @@ #include "model/CreateTrafficMirrorSessionResult.h" #include "model/CreateVSwitchRequest.h" #include "model/CreateVSwitchResult.h" +#include "model/CreateVSwitchCidrReservationRequest.h" +#include "model/CreateVSwitchCidrReservationResult.h" #include "model/CreateVbrHaRequest.h" #include "model/CreateVbrHaResult.h" #include "model/CreateVcoRouteEntryRequest.h" @@ -218,6 +230,14 @@ #include "model/DeleteCustomerGatewayResult.h" #include "model/DeleteDhcpOptionsSetRequest.h" #include "model/DeleteDhcpOptionsSetResult.h" +#include "model/DeleteExpressConnectTrafficQosRequest.h" +#include "model/DeleteExpressConnectTrafficQosResult.h" +#include "model/DeleteExpressConnectTrafficQosQueueRequest.h" +#include "model/DeleteExpressConnectTrafficQosQueueResult.h" +#include "model/DeleteExpressConnectTrafficQosRuleRequest.h" +#include "model/DeleteExpressConnectTrafficQosRuleResult.h" +#include "model/DeleteFailoverTestJobRequest.h" +#include "model/DeleteFailoverTestJobResult.h" #include "model/DeleteFlowLogRequest.h" #include "model/DeleteFlowLogResult.h" #include "model/DeleteForwardEntryRequest.h" @@ -280,6 +300,8 @@ #include "model/DeleteTrafficMirrorSessionResult.h" #include "model/DeleteVSwitchRequest.h" #include "model/DeleteVSwitchResult.h" +#include "model/DeleteVSwitchCidrReservationRequest.h" +#include "model/DeleteVSwitchCidrReservationResult.h" #include "model/DeleteVbrHaRequest.h" #include "model/DeleteVbrHaResult.h" #include "model/DeleteVcoRouteEntryRequest.h" @@ -304,6 +326,8 @@ #include "model/DeleteVpnRouteEntryResult.h" #include "model/DeletionProtectionRequest.h" #include "model/DeletionProtectionResult.h" +#include "model/Describe95TrafficRequest.h" +#include "model/Describe95TrafficResult.h" #include "model/DescribeAccessPointsRequest.h" #include "model/DescribeAccessPointsResult.h" #include "model/DescribeBgpGroupsRequest.h" @@ -328,6 +352,16 @@ #include "model/DescribeEipMonitorDataResult.h" #include "model/DescribeEipSegmentRequest.h" #include "model/DescribeEipSegmentResult.h" +#include "model/DescribeExpressConnectTrafficQosRequest.h" +#include "model/DescribeExpressConnectTrafficQosResult.h" +#include "model/DescribeExpressConnectTrafficQosQueueRequest.h" +#include "model/DescribeExpressConnectTrafficQosQueueResult.h" +#include "model/DescribeExpressConnectTrafficQosRuleRequest.h" +#include "model/DescribeExpressConnectTrafficQosRuleResult.h" +#include "model/DescribeFailoverTestJobRequest.h" +#include "model/DescribeFailoverTestJobResult.h" +#include "model/DescribeFailoverTestJobsRequest.h" +#include "model/DescribeFailoverTestJobsResult.h" #include "model/DescribeFlowLogsRequest.h" #include "model/DescribeFlowLogsResult.h" #include "model/DescribeForwardTableEntriesRequest.h" @@ -356,6 +390,8 @@ #include "model/DescribeIpv6GatewayAttributeResult.h" #include "model/DescribeIpv6GatewaysRequest.h" #include "model/DescribeIpv6GatewaysResult.h" +#include "model/DescribeNatGatewayAssociateNetworkInterfacesRequest.h" +#include "model/DescribeNatGatewayAssociateNetworkInterfacesResult.h" #include "model/DescribeNatGatewaysRequest.h" #include "model/DescribeNatGatewaysResult.h" #include "model/DescribeNetworkAclAttributesRequest.h" @@ -388,6 +424,8 @@ #include "model/DescribeSslVpnClientCertResult.h" #include "model/DescribeSslVpnClientCertsRequest.h" #include "model/DescribeSslVpnClientCertsResult.h" +#include "model/DescribeSslVpnClientsRequest.h" +#include "model/DescribeSslVpnClientsResult.h" #include "model/DescribeSslVpnServersRequest.h" #include "model/DescribeSslVpnServersResult.h" #include "model/DescribeTagKeysRequest.h" @@ -426,6 +464,8 @@ #include "model/DescribeVpnCrossAccountAuthorizationsResult.h" #include "model/DescribeVpnGatewayRequest.h" #include "model/DescribeVpnGatewayResult.h" +#include "model/DescribeVpnGatewayAvailableZonesRequest.h" +#include "model/DescribeVpnGatewayAvailableZonesResult.h" #include "model/DescribeVpnGatewaysRequest.h" #include "model/DescribeVpnGatewaysResult.h" #include "model/DescribeVpnPbrRouteEntriesRequest.h" @@ -438,6 +478,8 @@ #include "model/DescribeZonesResult.h" #include "model/DetachDhcpOptionsSetFromVpcRequest.h" #include "model/DetachDhcpOptionsSetFromVpcResult.h" +#include "model/DiagnoseVpnConnectionsRequest.h" +#include "model/DiagnoseVpnConnectionsResult.h" #include "model/DiagnoseVpnGatewayRequest.h" #include "model/DiagnoseVpnGatewayResult.h" #include "model/DisableNatGatewayEcsMetricRequest.h" @@ -468,12 +510,14 @@ #include "model/GetIpv4GatewayAttributeResult.h" #include "model/GetNatGatewayAttributeRequest.h" #include "model/GetNatGatewayAttributeResult.h" -#include "model/GetNatGatewayConvertStatusRequest.h" -#include "model/GetNatGatewayConvertStatusResult.h" #include "model/GetPhysicalConnectionServiceStatusRequest.h" #include "model/GetPhysicalConnectionServiceStatusResult.h" +#include "model/GetPublicIpAddressPoolServiceStatusRequest.h" +#include "model/GetPublicIpAddressPoolServiceStatusResult.h" #include "model/GetTrafficMirrorServiceStatusRequest.h" #include "model/GetTrafficMirrorServiceStatusResult.h" +#include "model/GetVSwitchCidrReservationUsageRequest.h" +#include "model/GetVSwitchCidrReservationUsageResult.h" #include "model/GetVpcGatewayEndpointAttributeRequest.h" #include "model/GetVpcGatewayEndpointAttributeResult.h" #include "model/GetVpcPrefixListAssociationsRequest.h" @@ -524,12 +568,16 @@ #include "model/ListTrafficMirrorFiltersResult.h" #include "model/ListTrafficMirrorSessionsRequest.h" #include "model/ListTrafficMirrorSessionsResult.h" +#include "model/ListVSwitchCidrReservationsRequest.h" +#include "model/ListVSwitchCidrReservationsResult.h" #include "model/ListVirtualPhysicalConnectionsRequest.h" #include "model/ListVirtualPhysicalConnectionsResult.h" #include "model/ListVpcEndpointServicesByEndUserRequest.h" #include "model/ListVpcEndpointServicesByEndUserResult.h" #include "model/ListVpcGatewayEndpointsRequest.h" #include "model/ListVpcGatewayEndpointsResult.h" +#include "model/ListVpcPublishedRouteEntriesRequest.h" +#include "model/ListVpcPublishedRouteEntriesResult.h" #include "model/ListVpnCertificateAssociationsRequest.h" #include "model/ListVpnCertificateAssociationsResult.h" #include "model/ModifyBgpGroupAttributeRequest.h" @@ -546,10 +594,18 @@ #include "model/ModifyCustomerGatewayAttributeResult.h" #include "model/ModifyEipAddressAttributeRequest.h" #include "model/ModifyEipAddressAttributeResult.h" +#include "model/ModifyEipForwardModeRequest.h" +#include "model/ModifyEipForwardModeResult.h" #include "model/ModifyExpressCloudConnectionAttributeRequest.h" #include "model/ModifyExpressCloudConnectionAttributeResult.h" #include "model/ModifyExpressCloudConnectionBandwidthRequest.h" #include "model/ModifyExpressCloudConnectionBandwidthResult.h" +#include "model/ModifyExpressConnectTrafficQosRequest.h" +#include "model/ModifyExpressConnectTrafficQosResult.h" +#include "model/ModifyExpressConnectTrafficQosQueueRequest.h" +#include "model/ModifyExpressConnectTrafficQosQueueResult.h" +#include "model/ModifyExpressConnectTrafficQosRuleRequest.h" +#include "model/ModifyExpressConnectTrafficQosRuleResult.h" #include "model/ModifyFlowLogAttributeRequest.h" #include "model/ModifyFlowLogAttributeResult.h" #include "model/ModifyForwardEntryRequest.h" @@ -576,8 +632,6 @@ #include "model/ModifyIpv6AddressAttributeResult.h" #include "model/ModifyIpv6GatewayAttributeRequest.h" #include "model/ModifyIpv6GatewayAttributeResult.h" -#include "model/ModifyIpv6GatewaySpecRequest.h" -#include "model/ModifyIpv6GatewaySpecResult.h" #include "model/ModifyIpv6InternetBandwidthRequest.h" #include "model/ModifyIpv6InternetBandwidthResult.h" #include "model/ModifyNatGatewayAttributeRequest.h" @@ -606,10 +660,14 @@ #include "model/ModifySslVpnClientCertResult.h" #include "model/ModifySslVpnServerRequest.h" #include "model/ModifySslVpnServerResult.h" +#include "model/ModifyTunnelAttributeRequest.h" +#include "model/ModifyTunnelAttributeResult.h" #include "model/ModifyVRouterAttributeRequest.h" #include "model/ModifyVRouterAttributeResult.h" #include "model/ModifyVSwitchAttributeRequest.h" #include "model/ModifyVSwitchAttributeResult.h" +#include "model/ModifyVSwitchCidrReservationAttributeRequest.h" +#include "model/ModifyVSwitchCidrReservationAttributeResult.h" #include "model/ModifyVcoRouteEntryWeightRequest.h" #include "model/ModifyVcoRouteEntryWeightResult.h" #include "model/ModifyVirtualBorderRouterAttributeRequest.h" @@ -634,12 +692,18 @@ #include "model/ModifyVpnRouteEntryWeightResult.h" #include "model/MoveResourceGroupRequest.h" #include "model/MoveResourceGroupResult.h" +#include "model/MoveVpnResourceGroupRequest.h" +#include "model/MoveVpnResourceGroupResult.h" #include "model/OpenFlowLogServiceRequest.h" #include "model/OpenFlowLogServiceResult.h" #include "model/OpenPhysicalConnectionServiceRequest.h" #include "model/OpenPhysicalConnectionServiceResult.h" +#include "model/OpenPublicIpAddressPoolServiceRequest.h" +#include "model/OpenPublicIpAddressPoolServiceResult.h" #include "model/OpenTrafficMirrorServiceRequest.h" #include "model/OpenTrafficMirrorServiceResult.h" +#include "model/PublishVpcRouteEntriesRequest.h" +#include "model/PublishVpcRouteEntriesResult.h" #include "model/PublishVpnRouteEntryRequest.h" #include "model/PublishVpnRouteEntryResult.h" #include "model/RecoverPhysicalConnectionRequest.h" @@ -650,6 +714,8 @@ #include "model/ReleaseEipAddressResult.h" #include "model/ReleaseEipSegmentAddressRequest.h" #include "model/ReleaseEipSegmentAddressResult.h" +#include "model/ReleaseIpv6AddressRequest.h" +#include "model/ReleaseIpv6AddressResult.h" #include "model/RemoveCommonBandwidthPackageIpRequest.h" #include "model/RemoveCommonBandwidthPackageIpResult.h" #include "model/RemoveGlobalAccelerationInstanceIpRequest.h" @@ -666,8 +732,14 @@ #include "model/RevokeInstanceFromCenResult.h" #include "model/RevokeInstanceFromVbrRequest.h" #include "model/RevokeInstanceFromVbrResult.h" +#include "model/SecondApplyPhysicalConnectionLOARequest.h" +#include "model/SecondApplyPhysicalConnectionLOAResult.h" #include "model/SetHighDefinitionMonitorLogStatusRequest.h" #include "model/SetHighDefinitionMonitorLogStatusResult.h" +#include "model/StartFailoverTestJobRequest.h" +#include "model/StartFailoverTestJobResult.h" +#include "model/StopFailoverTestJobRequest.h" +#include "model/StopFailoverTestJobResult.h" #include "model/TagResourcesRequest.h" #include "model/TagResourcesResult.h" #include "model/TagResourcesForExpressConnectRequest.h" @@ -676,6 +748,8 @@ #include "model/TerminatePhysicalConnectionResult.h" #include "model/TerminateVirtualBorderRouterRequest.h" #include "model/TerminateVirtualBorderRouterResult.h" +#include "model/TransformEipSegmentToPublicIpAddressPoolRequest.h" +#include "model/TransformEipSegmentToPublicIpAddressPoolResult.h" #include "model/UnTagResourcesRequest.h" #include "model/UnTagResourcesResult.h" #include "model/UnassociateEipAddressRequest.h" @@ -696,6 +770,8 @@ #include "model/UntagResourcesForExpressConnectResult.h" #include "model/UpdateDhcpOptionsSetAttributeRequest.h" #include "model/UpdateDhcpOptionsSetAttributeResult.h" +#include "model/UpdateFailoverTestJobRequest.h" +#include "model/UpdateFailoverTestJobResult.h" #include "model/UpdateGatewayRouteTableEntryAttributeRequest.h" #include "model/UpdateGatewayRouteTableEntryAttributeResult.h" #include "model/UpdateIpsecServerRequest.h" @@ -722,6 +798,8 @@ #include "model/UpdateVpcGatewayEndpointAttributeResult.h" #include "model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest.h" #include "model/VpcDescribeVpcNatGatewayNetworkInterfaceQuotaResult.h" +#include "model/WithdrawVpcPublishedRouteEntriesRequest.h" +#include "model/WithdrawVpcPublishedRouteEntriesResult.h" namespace AlibabaCloud @@ -767,6 +845,9 @@ namespace AlibabaCloud typedef Outcome AllocateEipSegmentAddressOutcome; typedef std::future AllocateEipSegmentAddressOutcomeCallable; typedef std::function&)> AllocateEipSegmentAddressAsyncHandler; + typedef Outcome AllocateIpv6AddressOutcome; + typedef std::future AllocateIpv6AddressOutcomeCallable; + typedef std::function&)> AllocateIpv6AddressAsyncHandler; typedef Outcome AllocateIpv6InternetBandwidthOutcome; typedef std::future AllocateIpv6InternetBandwidthOutcomeCallable; typedef std::function&)> AllocateIpv6InternetBandwidthAsyncHandler; @@ -782,9 +863,6 @@ namespace AlibabaCloud typedef Outcome AssociateEipAddressBatchOutcome; typedef std::future AssociateEipAddressBatchOutcomeCallable; typedef std::function&)> AssociateEipAddressBatchAsyncHandler; - typedef Outcome AssociateGlobalAccelerationInstanceOutcome; - typedef std::future AssociateGlobalAccelerationInstanceOutcomeCallable; - typedef std::function&)> AssociateGlobalAccelerationInstanceAsyncHandler; typedef Outcome AssociateHaVipOutcome; typedef std::future AssociateHaVipOutcomeCallable; typedef std::function&)> AssociateHaVipAsyncHandler; @@ -869,6 +947,18 @@ namespace AlibabaCloud typedef Outcome CreateExpressCloudConnectionOutcome; typedef std::future CreateExpressCloudConnectionOutcomeCallable; typedef std::function&)> CreateExpressCloudConnectionAsyncHandler; + typedef Outcome CreateExpressConnectTrafficQosOutcome; + typedef std::future CreateExpressConnectTrafficQosOutcomeCallable; + typedef std::function&)> CreateExpressConnectTrafficQosAsyncHandler; + typedef Outcome CreateExpressConnectTrafficQosQueueOutcome; + typedef std::future CreateExpressConnectTrafficQosQueueOutcomeCallable; + typedef std::function&)> CreateExpressConnectTrafficQosQueueAsyncHandler; + typedef Outcome CreateExpressConnectTrafficQosRuleOutcome; + typedef std::future CreateExpressConnectTrafficQosRuleOutcomeCallable; + typedef std::function&)> CreateExpressConnectTrafficQosRuleAsyncHandler; + typedef Outcome CreateFailoverTestJobOutcome; + typedef std::future CreateFailoverTestJobOutcomeCallable; + typedef std::function&)> CreateFailoverTestJobAsyncHandler; typedef Outcome CreateFlowLogOutcome; typedef std::future CreateFlowLogOutcomeCallable; typedef std::function&)> CreateFlowLogAsyncHandler; @@ -884,6 +974,9 @@ namespace AlibabaCloud typedef Outcome CreateHaVipOutcome; typedef std::future CreateHaVipOutcomeCallable; typedef std::function&)> CreateHaVipAsyncHandler; + typedef Outcome CreateHighReliablePhysicalConnectionOutcome; + typedef std::future CreateHighReliablePhysicalConnectionOutcomeCallable; + typedef std::function&)> CreateHighReliablePhysicalConnectionAsyncHandler; typedef Outcome CreateIPv6TranslatorOutcome; typedef std::future CreateIPv6TranslatorOutcomeCallable; typedef std::function&)> CreateIPv6TranslatorAsyncHandler; @@ -962,6 +1055,9 @@ namespace AlibabaCloud typedef Outcome CreateVSwitchOutcome; typedef std::future CreateVSwitchOutcomeCallable; typedef std::function&)> CreateVSwitchAsyncHandler; + typedef Outcome CreateVSwitchCidrReservationOutcome; + typedef std::future CreateVSwitchCidrReservationOutcomeCallable; + typedef std::function&)> CreateVSwitchCidrReservationAsyncHandler; typedef Outcome CreateVbrHaOutcome; typedef std::future CreateVbrHaOutcomeCallable; typedef std::function&)> CreateVbrHaAsyncHandler; @@ -1025,6 +1121,18 @@ namespace AlibabaCloud typedef Outcome DeleteDhcpOptionsSetOutcome; typedef std::future DeleteDhcpOptionsSetOutcomeCallable; typedef std::function&)> DeleteDhcpOptionsSetAsyncHandler; + typedef Outcome DeleteExpressConnectTrafficQosOutcome; + typedef std::future DeleteExpressConnectTrafficQosOutcomeCallable; + typedef std::function&)> DeleteExpressConnectTrafficQosAsyncHandler; + typedef Outcome DeleteExpressConnectTrafficQosQueueOutcome; + typedef std::future DeleteExpressConnectTrafficQosQueueOutcomeCallable; + typedef std::function&)> DeleteExpressConnectTrafficQosQueueAsyncHandler; + typedef Outcome DeleteExpressConnectTrafficQosRuleOutcome; + typedef std::future DeleteExpressConnectTrafficQosRuleOutcomeCallable; + typedef std::function&)> DeleteExpressConnectTrafficQosRuleAsyncHandler; + typedef Outcome DeleteFailoverTestJobOutcome; + typedef std::future DeleteFailoverTestJobOutcomeCallable; + typedef std::function&)> DeleteFailoverTestJobAsyncHandler; typedef Outcome DeleteFlowLogOutcome; typedef std::future DeleteFlowLogOutcomeCallable; typedef std::function&)> DeleteFlowLogAsyncHandler; @@ -1118,6 +1226,9 @@ namespace AlibabaCloud typedef Outcome DeleteVSwitchOutcome; typedef std::future DeleteVSwitchOutcomeCallable; typedef std::function&)> DeleteVSwitchAsyncHandler; + typedef Outcome DeleteVSwitchCidrReservationOutcome; + typedef std::future DeleteVSwitchCidrReservationOutcomeCallable; + typedef std::function&)> DeleteVSwitchCidrReservationAsyncHandler; typedef Outcome DeleteVbrHaOutcome; typedef std::future DeleteVbrHaOutcomeCallable; typedef std::function&)> DeleteVbrHaAsyncHandler; @@ -1154,6 +1265,9 @@ namespace AlibabaCloud typedef Outcome DeletionProtectionOutcome; typedef std::future DeletionProtectionOutcomeCallable; typedef std::function&)> DeletionProtectionAsyncHandler; + typedef Outcome Describe95TrafficOutcome; + typedef std::future Describe95TrafficOutcomeCallable; + typedef std::function&)> Describe95TrafficAsyncHandler; typedef Outcome DescribeAccessPointsOutcome; typedef std::future DescribeAccessPointsOutcomeCallable; typedef std::function&)> DescribeAccessPointsAsyncHandler; @@ -1190,6 +1304,21 @@ namespace AlibabaCloud typedef Outcome DescribeEipSegmentOutcome; typedef std::future DescribeEipSegmentOutcomeCallable; typedef std::function&)> DescribeEipSegmentAsyncHandler; + typedef Outcome DescribeExpressConnectTrafficQosOutcome; + typedef std::future DescribeExpressConnectTrafficQosOutcomeCallable; + typedef std::function&)> DescribeExpressConnectTrafficQosAsyncHandler; + typedef Outcome DescribeExpressConnectTrafficQosQueueOutcome; + typedef std::future DescribeExpressConnectTrafficQosQueueOutcomeCallable; + typedef std::function&)> DescribeExpressConnectTrafficQosQueueAsyncHandler; + typedef Outcome DescribeExpressConnectTrafficQosRuleOutcome; + typedef std::future DescribeExpressConnectTrafficQosRuleOutcomeCallable; + typedef std::function&)> DescribeExpressConnectTrafficQosRuleAsyncHandler; + typedef Outcome DescribeFailoverTestJobOutcome; + typedef std::future DescribeFailoverTestJobOutcomeCallable; + typedef std::function&)> DescribeFailoverTestJobAsyncHandler; + typedef Outcome DescribeFailoverTestJobsOutcome; + typedef std::future DescribeFailoverTestJobsOutcomeCallable; + typedef std::function&)> DescribeFailoverTestJobsAsyncHandler; typedef Outcome DescribeFlowLogsOutcome; typedef std::future DescribeFlowLogsOutcomeCallable; typedef std::function&)> DescribeFlowLogsAsyncHandler; @@ -1232,6 +1361,9 @@ namespace AlibabaCloud typedef Outcome DescribeIpv6GatewaysOutcome; typedef std::future DescribeIpv6GatewaysOutcomeCallable; typedef std::function&)> DescribeIpv6GatewaysAsyncHandler; + typedef Outcome DescribeNatGatewayAssociateNetworkInterfacesOutcome; + typedef std::future DescribeNatGatewayAssociateNetworkInterfacesOutcomeCallable; + typedef std::function&)> DescribeNatGatewayAssociateNetworkInterfacesAsyncHandler; typedef Outcome DescribeNatGatewaysOutcome; typedef std::future DescribeNatGatewaysOutcomeCallable; typedef std::function&)> DescribeNatGatewaysAsyncHandler; @@ -1280,6 +1412,9 @@ namespace AlibabaCloud typedef Outcome DescribeSslVpnClientCertsOutcome; typedef std::future DescribeSslVpnClientCertsOutcomeCallable; typedef std::function&)> DescribeSslVpnClientCertsAsyncHandler; + typedef Outcome DescribeSslVpnClientsOutcome; + typedef std::future DescribeSslVpnClientsOutcomeCallable; + typedef std::function&)> DescribeSslVpnClientsAsyncHandler; typedef Outcome DescribeSslVpnServersOutcome; typedef std::future DescribeSslVpnServersOutcomeCallable; typedef std::function&)> DescribeSslVpnServersAsyncHandler; @@ -1337,6 +1472,9 @@ namespace AlibabaCloud typedef Outcome DescribeVpnGatewayOutcome; typedef std::future DescribeVpnGatewayOutcomeCallable; typedef std::function&)> DescribeVpnGatewayAsyncHandler; + typedef Outcome DescribeVpnGatewayAvailableZonesOutcome; + typedef std::future DescribeVpnGatewayAvailableZonesOutcomeCallable; + typedef std::function&)> DescribeVpnGatewayAvailableZonesAsyncHandler; typedef Outcome DescribeVpnGatewaysOutcome; typedef std::future DescribeVpnGatewaysOutcomeCallable; typedef std::function&)> DescribeVpnGatewaysAsyncHandler; @@ -1355,6 +1493,9 @@ namespace AlibabaCloud typedef Outcome DetachDhcpOptionsSetFromVpcOutcome; typedef std::future DetachDhcpOptionsSetFromVpcOutcomeCallable; typedef std::function&)> DetachDhcpOptionsSetFromVpcAsyncHandler; + typedef Outcome DiagnoseVpnConnectionsOutcome; + typedef std::future DiagnoseVpnConnectionsOutcomeCallable; + typedef std::function&)> DiagnoseVpnConnectionsAsyncHandler; typedef Outcome DiagnoseVpnGatewayOutcome; typedef std::future DiagnoseVpnGatewayOutcomeCallable; typedef std::function&)> DiagnoseVpnGatewayAsyncHandler; @@ -1400,15 +1541,18 @@ namespace AlibabaCloud typedef Outcome GetNatGatewayAttributeOutcome; typedef std::future GetNatGatewayAttributeOutcomeCallable; typedef std::function&)> GetNatGatewayAttributeAsyncHandler; - typedef Outcome GetNatGatewayConvertStatusOutcome; - typedef std::future GetNatGatewayConvertStatusOutcomeCallable; - typedef std::function&)> GetNatGatewayConvertStatusAsyncHandler; typedef Outcome GetPhysicalConnectionServiceStatusOutcome; typedef std::future GetPhysicalConnectionServiceStatusOutcomeCallable; typedef std::function&)> GetPhysicalConnectionServiceStatusAsyncHandler; + typedef Outcome GetPublicIpAddressPoolServiceStatusOutcome; + typedef std::future GetPublicIpAddressPoolServiceStatusOutcomeCallable; + typedef std::function&)> GetPublicIpAddressPoolServiceStatusAsyncHandler; typedef Outcome GetTrafficMirrorServiceStatusOutcome; typedef std::future GetTrafficMirrorServiceStatusOutcomeCallable; typedef std::function&)> GetTrafficMirrorServiceStatusAsyncHandler; + typedef Outcome GetVSwitchCidrReservationUsageOutcome; + typedef std::future GetVSwitchCidrReservationUsageOutcomeCallable; + typedef std::function&)> GetVSwitchCidrReservationUsageAsyncHandler; typedef Outcome GetVpcGatewayEndpointAttributeOutcome; typedef std::future GetVpcGatewayEndpointAttributeOutcomeCallable; typedef std::function&)> GetVpcGatewayEndpointAttributeAsyncHandler; @@ -1484,6 +1628,9 @@ namespace AlibabaCloud typedef Outcome ListTrafficMirrorSessionsOutcome; typedef std::future ListTrafficMirrorSessionsOutcomeCallable; typedef std::function&)> ListTrafficMirrorSessionsAsyncHandler; + typedef Outcome ListVSwitchCidrReservationsOutcome; + typedef std::future ListVSwitchCidrReservationsOutcomeCallable; + typedef std::function&)> ListVSwitchCidrReservationsAsyncHandler; typedef Outcome ListVirtualPhysicalConnectionsOutcome; typedef std::future ListVirtualPhysicalConnectionsOutcomeCallable; typedef std::function&)> ListVirtualPhysicalConnectionsAsyncHandler; @@ -1493,6 +1640,9 @@ namespace AlibabaCloud typedef Outcome ListVpcGatewayEndpointsOutcome; typedef std::future ListVpcGatewayEndpointsOutcomeCallable; typedef std::function&)> ListVpcGatewayEndpointsAsyncHandler; + typedef Outcome ListVpcPublishedRouteEntriesOutcome; + typedef std::future ListVpcPublishedRouteEntriesOutcomeCallable; + typedef std::function&)> ListVpcPublishedRouteEntriesAsyncHandler; typedef Outcome ListVpnCertificateAssociationsOutcome; typedef std::future ListVpnCertificateAssociationsOutcomeCallable; typedef std::function&)> ListVpnCertificateAssociationsAsyncHandler; @@ -1517,12 +1667,24 @@ namespace AlibabaCloud typedef Outcome ModifyEipAddressAttributeOutcome; typedef std::future ModifyEipAddressAttributeOutcomeCallable; typedef std::function&)> ModifyEipAddressAttributeAsyncHandler; + typedef Outcome ModifyEipForwardModeOutcome; + typedef std::future ModifyEipForwardModeOutcomeCallable; + typedef std::function&)> ModifyEipForwardModeAsyncHandler; typedef Outcome ModifyExpressCloudConnectionAttributeOutcome; typedef std::future ModifyExpressCloudConnectionAttributeOutcomeCallable; typedef std::function&)> ModifyExpressCloudConnectionAttributeAsyncHandler; typedef Outcome ModifyExpressCloudConnectionBandwidthOutcome; typedef std::future ModifyExpressCloudConnectionBandwidthOutcomeCallable; typedef std::function&)> ModifyExpressCloudConnectionBandwidthAsyncHandler; + typedef Outcome ModifyExpressConnectTrafficQosOutcome; + typedef std::future ModifyExpressConnectTrafficQosOutcomeCallable; + typedef std::function&)> ModifyExpressConnectTrafficQosAsyncHandler; + typedef Outcome ModifyExpressConnectTrafficQosQueueOutcome; + typedef std::future ModifyExpressConnectTrafficQosQueueOutcomeCallable; + typedef std::function&)> ModifyExpressConnectTrafficQosQueueAsyncHandler; + typedef Outcome ModifyExpressConnectTrafficQosRuleOutcome; + typedef std::future ModifyExpressConnectTrafficQosRuleOutcomeCallable; + typedef std::function&)> ModifyExpressConnectTrafficQosRuleAsyncHandler; typedef Outcome ModifyFlowLogAttributeOutcome; typedef std::future ModifyFlowLogAttributeOutcomeCallable; typedef std::function&)> ModifyFlowLogAttributeAsyncHandler; @@ -1562,9 +1724,6 @@ namespace AlibabaCloud typedef Outcome ModifyIpv6GatewayAttributeOutcome; typedef std::future ModifyIpv6GatewayAttributeOutcomeCallable; typedef std::function&)> ModifyIpv6GatewayAttributeAsyncHandler; - typedef Outcome ModifyIpv6GatewaySpecOutcome; - typedef std::future ModifyIpv6GatewaySpecOutcomeCallable; - typedef std::function&)> ModifyIpv6GatewaySpecAsyncHandler; typedef Outcome ModifyIpv6InternetBandwidthOutcome; typedef std::future ModifyIpv6InternetBandwidthOutcomeCallable; typedef std::function&)> ModifyIpv6InternetBandwidthAsyncHandler; @@ -1607,12 +1766,18 @@ namespace AlibabaCloud typedef Outcome ModifySslVpnServerOutcome; typedef std::future ModifySslVpnServerOutcomeCallable; typedef std::function&)> ModifySslVpnServerAsyncHandler; + typedef Outcome ModifyTunnelAttributeOutcome; + typedef std::future ModifyTunnelAttributeOutcomeCallable; + typedef std::function&)> ModifyTunnelAttributeAsyncHandler; typedef Outcome ModifyVRouterAttributeOutcome; typedef std::future ModifyVRouterAttributeOutcomeCallable; typedef std::function&)> ModifyVRouterAttributeAsyncHandler; typedef Outcome ModifyVSwitchAttributeOutcome; typedef std::future ModifyVSwitchAttributeOutcomeCallable; typedef std::function&)> ModifyVSwitchAttributeAsyncHandler; + typedef Outcome ModifyVSwitchCidrReservationAttributeOutcome; + typedef std::future ModifyVSwitchCidrReservationAttributeOutcomeCallable; + typedef std::function&)> ModifyVSwitchCidrReservationAttributeAsyncHandler; typedef Outcome ModifyVcoRouteEntryWeightOutcome; typedef std::future ModifyVcoRouteEntryWeightOutcomeCallable; typedef std::function&)> ModifyVcoRouteEntryWeightAsyncHandler; @@ -1649,15 +1814,24 @@ namespace AlibabaCloud typedef Outcome MoveResourceGroupOutcome; typedef std::future MoveResourceGroupOutcomeCallable; typedef std::function&)> MoveResourceGroupAsyncHandler; + typedef Outcome MoveVpnResourceGroupOutcome; + typedef std::future MoveVpnResourceGroupOutcomeCallable; + typedef std::function&)> MoveVpnResourceGroupAsyncHandler; typedef Outcome OpenFlowLogServiceOutcome; typedef std::future OpenFlowLogServiceOutcomeCallable; typedef std::function&)> OpenFlowLogServiceAsyncHandler; typedef Outcome OpenPhysicalConnectionServiceOutcome; typedef std::future OpenPhysicalConnectionServiceOutcomeCallable; typedef std::function&)> OpenPhysicalConnectionServiceAsyncHandler; + typedef Outcome OpenPublicIpAddressPoolServiceOutcome; + typedef std::future OpenPublicIpAddressPoolServiceOutcomeCallable; + typedef std::function&)> OpenPublicIpAddressPoolServiceAsyncHandler; typedef Outcome OpenTrafficMirrorServiceOutcome; typedef std::future OpenTrafficMirrorServiceOutcomeCallable; typedef std::function&)> OpenTrafficMirrorServiceAsyncHandler; + typedef Outcome PublishVpcRouteEntriesOutcome; + typedef std::future PublishVpcRouteEntriesOutcomeCallable; + typedef std::function&)> PublishVpcRouteEntriesAsyncHandler; typedef Outcome PublishVpnRouteEntryOutcome; typedef std::future PublishVpnRouteEntryOutcomeCallable; typedef std::function&)> PublishVpnRouteEntryAsyncHandler; @@ -1673,6 +1847,9 @@ namespace AlibabaCloud typedef Outcome ReleaseEipSegmentAddressOutcome; typedef std::future ReleaseEipSegmentAddressOutcomeCallable; typedef std::function&)> ReleaseEipSegmentAddressAsyncHandler; + typedef Outcome ReleaseIpv6AddressOutcome; + typedef std::future ReleaseIpv6AddressOutcomeCallable; + typedef std::function&)> ReleaseIpv6AddressAsyncHandler; typedef Outcome RemoveCommonBandwidthPackageIpOutcome; typedef std::future RemoveCommonBandwidthPackageIpOutcomeCallable; typedef std::function&)> RemoveCommonBandwidthPackageIpAsyncHandler; @@ -1697,9 +1874,18 @@ namespace AlibabaCloud typedef Outcome RevokeInstanceFromVbrOutcome; typedef std::future RevokeInstanceFromVbrOutcomeCallable; typedef std::function&)> RevokeInstanceFromVbrAsyncHandler; + typedef Outcome SecondApplyPhysicalConnectionLOAOutcome; + typedef std::future SecondApplyPhysicalConnectionLOAOutcomeCallable; + typedef std::function&)> SecondApplyPhysicalConnectionLOAAsyncHandler; typedef Outcome SetHighDefinitionMonitorLogStatusOutcome; typedef std::future SetHighDefinitionMonitorLogStatusOutcomeCallable; typedef std::function&)> SetHighDefinitionMonitorLogStatusAsyncHandler; + typedef Outcome StartFailoverTestJobOutcome; + typedef std::future StartFailoverTestJobOutcomeCallable; + typedef std::function&)> StartFailoverTestJobAsyncHandler; + typedef Outcome StopFailoverTestJobOutcome; + typedef std::future StopFailoverTestJobOutcomeCallable; + typedef std::function&)> StopFailoverTestJobAsyncHandler; typedef Outcome TagResourcesOutcome; typedef std::future TagResourcesOutcomeCallable; typedef std::function&)> TagResourcesAsyncHandler; @@ -1712,6 +1898,9 @@ namespace AlibabaCloud typedef Outcome TerminateVirtualBorderRouterOutcome; typedef std::future TerminateVirtualBorderRouterOutcomeCallable; typedef std::function&)> TerminateVirtualBorderRouterAsyncHandler; + typedef Outcome TransformEipSegmentToPublicIpAddressPoolOutcome; + typedef std::future TransformEipSegmentToPublicIpAddressPoolOutcomeCallable; + typedef std::function&)> TransformEipSegmentToPublicIpAddressPoolAsyncHandler; typedef Outcome UnTagResourcesOutcome; typedef std::future UnTagResourcesOutcomeCallable; typedef std::function&)> UnTagResourcesAsyncHandler; @@ -1742,6 +1931,9 @@ namespace AlibabaCloud typedef Outcome UpdateDhcpOptionsSetAttributeOutcome; typedef std::future UpdateDhcpOptionsSetAttributeOutcomeCallable; typedef std::function&)> UpdateDhcpOptionsSetAttributeAsyncHandler; + typedef Outcome UpdateFailoverTestJobOutcome; + typedef std::future UpdateFailoverTestJobOutcomeCallable; + typedef std::function&)> UpdateFailoverTestJobAsyncHandler; typedef Outcome UpdateGatewayRouteTableEntryAttributeOutcome; typedef std::future UpdateGatewayRouteTableEntryAttributeOutcomeCallable; typedef std::function&)> UpdateGatewayRouteTableEntryAttributeAsyncHandler; @@ -1781,6 +1973,9 @@ namespace AlibabaCloud typedef Outcome VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcome; typedef std::future VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcomeCallable; typedef std::function&)> VpcDescribeVpcNatGatewayNetworkInterfaceQuotaAsyncHandler; + typedef Outcome WithdrawVpcPublishedRouteEntriesOutcome; + typedef std::future WithdrawVpcPublishedRouteEntriesOutcomeCallable; + typedef std::function&)> WithdrawVpcPublishedRouteEntriesAsyncHandler; VpcClient(const Credentials &credentials, const ClientConfiguration &configuration); VpcClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -1822,6 +2017,9 @@ namespace AlibabaCloud AllocateEipSegmentAddressOutcome allocateEipSegmentAddress(const Model::AllocateEipSegmentAddressRequest &request)const; void allocateEipSegmentAddressAsync(const Model::AllocateEipSegmentAddressRequest& request, const AllocateEipSegmentAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllocateEipSegmentAddressOutcomeCallable allocateEipSegmentAddressCallable(const Model::AllocateEipSegmentAddressRequest& request) const; + AllocateIpv6AddressOutcome allocateIpv6Address(const Model::AllocateIpv6AddressRequest &request)const; + void allocateIpv6AddressAsync(const Model::AllocateIpv6AddressRequest& request, const AllocateIpv6AddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateIpv6AddressOutcomeCallable allocateIpv6AddressCallable(const Model::AllocateIpv6AddressRequest& request) const; AllocateIpv6InternetBandwidthOutcome allocateIpv6InternetBandwidth(const Model::AllocateIpv6InternetBandwidthRequest &request)const; void allocateIpv6InternetBandwidthAsync(const Model::AllocateIpv6InternetBandwidthRequest& request, const AllocateIpv6InternetBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllocateIpv6InternetBandwidthOutcomeCallable allocateIpv6InternetBandwidthCallable(const Model::AllocateIpv6InternetBandwidthRequest& request) const; @@ -1837,9 +2035,6 @@ namespace AlibabaCloud AssociateEipAddressBatchOutcome associateEipAddressBatch(const Model::AssociateEipAddressBatchRequest &request)const; void associateEipAddressBatchAsync(const Model::AssociateEipAddressBatchRequest& request, const AssociateEipAddressBatchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssociateEipAddressBatchOutcomeCallable associateEipAddressBatchCallable(const Model::AssociateEipAddressBatchRequest& request) const; - AssociateGlobalAccelerationInstanceOutcome associateGlobalAccelerationInstance(const Model::AssociateGlobalAccelerationInstanceRequest &request)const; - void associateGlobalAccelerationInstanceAsync(const Model::AssociateGlobalAccelerationInstanceRequest& request, const AssociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AssociateGlobalAccelerationInstanceOutcomeCallable associateGlobalAccelerationInstanceCallable(const Model::AssociateGlobalAccelerationInstanceRequest& request) const; AssociateHaVipOutcome associateHaVip(const Model::AssociateHaVipRequest &request)const; void associateHaVipAsync(const Model::AssociateHaVipRequest& request, const AssociateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AssociateHaVipOutcomeCallable associateHaVipCallable(const Model::AssociateHaVipRequest& request) const; @@ -1924,6 +2119,18 @@ namespace AlibabaCloud CreateExpressCloudConnectionOutcome createExpressCloudConnection(const Model::CreateExpressCloudConnectionRequest &request)const; void createExpressCloudConnectionAsync(const Model::CreateExpressCloudConnectionRequest& request, const CreateExpressCloudConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateExpressCloudConnectionOutcomeCallable createExpressCloudConnectionCallable(const Model::CreateExpressCloudConnectionRequest& request) const; + CreateExpressConnectTrafficQosOutcome createExpressConnectTrafficQos(const Model::CreateExpressConnectTrafficQosRequest &request)const; + void createExpressConnectTrafficQosAsync(const Model::CreateExpressConnectTrafficQosRequest& request, const CreateExpressConnectTrafficQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateExpressConnectTrafficQosOutcomeCallable createExpressConnectTrafficQosCallable(const Model::CreateExpressConnectTrafficQosRequest& request) const; + CreateExpressConnectTrafficQosQueueOutcome createExpressConnectTrafficQosQueue(const Model::CreateExpressConnectTrafficQosQueueRequest &request)const; + void createExpressConnectTrafficQosQueueAsync(const Model::CreateExpressConnectTrafficQosQueueRequest& request, const CreateExpressConnectTrafficQosQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateExpressConnectTrafficQosQueueOutcomeCallable createExpressConnectTrafficQosQueueCallable(const Model::CreateExpressConnectTrafficQosQueueRequest& request) const; + CreateExpressConnectTrafficQosRuleOutcome createExpressConnectTrafficQosRule(const Model::CreateExpressConnectTrafficQosRuleRequest &request)const; + void createExpressConnectTrafficQosRuleAsync(const Model::CreateExpressConnectTrafficQosRuleRequest& request, const CreateExpressConnectTrafficQosRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateExpressConnectTrafficQosRuleOutcomeCallable createExpressConnectTrafficQosRuleCallable(const Model::CreateExpressConnectTrafficQosRuleRequest& request) const; + CreateFailoverTestJobOutcome createFailoverTestJob(const Model::CreateFailoverTestJobRequest &request)const; + void createFailoverTestJobAsync(const Model::CreateFailoverTestJobRequest& request, const CreateFailoverTestJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFailoverTestJobOutcomeCallable createFailoverTestJobCallable(const Model::CreateFailoverTestJobRequest& request) const; CreateFlowLogOutcome createFlowLog(const Model::CreateFlowLogRequest &request)const; void createFlowLogAsync(const Model::CreateFlowLogRequest& request, const CreateFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFlowLogOutcomeCallable createFlowLogCallable(const Model::CreateFlowLogRequest& request) const; @@ -1939,6 +2146,9 @@ namespace AlibabaCloud CreateHaVipOutcome createHaVip(const Model::CreateHaVipRequest &request)const; void createHaVipAsync(const Model::CreateHaVipRequest& request, const CreateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateHaVipOutcomeCallable createHaVipCallable(const Model::CreateHaVipRequest& request) const; + CreateHighReliablePhysicalConnectionOutcome createHighReliablePhysicalConnection(const Model::CreateHighReliablePhysicalConnectionRequest &request)const; + void createHighReliablePhysicalConnectionAsync(const Model::CreateHighReliablePhysicalConnectionRequest& request, const CreateHighReliablePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateHighReliablePhysicalConnectionOutcomeCallable createHighReliablePhysicalConnectionCallable(const Model::CreateHighReliablePhysicalConnectionRequest& request) const; CreateIPv6TranslatorOutcome createIPv6Translator(const Model::CreateIPv6TranslatorRequest &request)const; void createIPv6TranslatorAsync(const Model::CreateIPv6TranslatorRequest& request, const CreateIPv6TranslatorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateIPv6TranslatorOutcomeCallable createIPv6TranslatorCallable(const Model::CreateIPv6TranslatorRequest& request) const; @@ -2017,6 +2227,9 @@ namespace AlibabaCloud CreateVSwitchOutcome createVSwitch(const Model::CreateVSwitchRequest &request)const; void createVSwitchAsync(const Model::CreateVSwitchRequest& request, const CreateVSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVSwitchOutcomeCallable createVSwitchCallable(const Model::CreateVSwitchRequest& request) const; + CreateVSwitchCidrReservationOutcome createVSwitchCidrReservation(const Model::CreateVSwitchCidrReservationRequest &request)const; + void createVSwitchCidrReservationAsync(const Model::CreateVSwitchCidrReservationRequest& request, const CreateVSwitchCidrReservationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVSwitchCidrReservationOutcomeCallable createVSwitchCidrReservationCallable(const Model::CreateVSwitchCidrReservationRequest& request) const; CreateVbrHaOutcome createVbrHa(const Model::CreateVbrHaRequest &request)const; void createVbrHaAsync(const Model::CreateVbrHaRequest& request, const CreateVbrHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVbrHaOutcomeCallable createVbrHaCallable(const Model::CreateVbrHaRequest& request) const; @@ -2080,6 +2293,18 @@ namespace AlibabaCloud DeleteDhcpOptionsSetOutcome deleteDhcpOptionsSet(const Model::DeleteDhcpOptionsSetRequest &request)const; void deleteDhcpOptionsSetAsync(const Model::DeleteDhcpOptionsSetRequest& request, const DeleteDhcpOptionsSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDhcpOptionsSetOutcomeCallable deleteDhcpOptionsSetCallable(const Model::DeleteDhcpOptionsSetRequest& request) const; + DeleteExpressConnectTrafficQosOutcome deleteExpressConnectTrafficQos(const Model::DeleteExpressConnectTrafficQosRequest &request)const; + void deleteExpressConnectTrafficQosAsync(const Model::DeleteExpressConnectTrafficQosRequest& request, const DeleteExpressConnectTrafficQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteExpressConnectTrafficQosOutcomeCallable deleteExpressConnectTrafficQosCallable(const Model::DeleteExpressConnectTrafficQosRequest& request) const; + DeleteExpressConnectTrafficQosQueueOutcome deleteExpressConnectTrafficQosQueue(const Model::DeleteExpressConnectTrafficQosQueueRequest &request)const; + void deleteExpressConnectTrafficQosQueueAsync(const Model::DeleteExpressConnectTrafficQosQueueRequest& request, const DeleteExpressConnectTrafficQosQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteExpressConnectTrafficQosQueueOutcomeCallable deleteExpressConnectTrafficQosQueueCallable(const Model::DeleteExpressConnectTrafficQosQueueRequest& request) const; + DeleteExpressConnectTrafficQosRuleOutcome deleteExpressConnectTrafficQosRule(const Model::DeleteExpressConnectTrafficQosRuleRequest &request)const; + void deleteExpressConnectTrafficQosRuleAsync(const Model::DeleteExpressConnectTrafficQosRuleRequest& request, const DeleteExpressConnectTrafficQosRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteExpressConnectTrafficQosRuleOutcomeCallable deleteExpressConnectTrafficQosRuleCallable(const Model::DeleteExpressConnectTrafficQosRuleRequest& request) const; + DeleteFailoverTestJobOutcome deleteFailoverTestJob(const Model::DeleteFailoverTestJobRequest &request)const; + void deleteFailoverTestJobAsync(const Model::DeleteFailoverTestJobRequest& request, const DeleteFailoverTestJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFailoverTestJobOutcomeCallable deleteFailoverTestJobCallable(const Model::DeleteFailoverTestJobRequest& request) const; DeleteFlowLogOutcome deleteFlowLog(const Model::DeleteFlowLogRequest &request)const; void deleteFlowLogAsync(const Model::DeleteFlowLogRequest& request, const DeleteFlowLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFlowLogOutcomeCallable deleteFlowLogCallable(const Model::DeleteFlowLogRequest& request) const; @@ -2173,6 +2398,9 @@ namespace AlibabaCloud DeleteVSwitchOutcome deleteVSwitch(const Model::DeleteVSwitchRequest &request)const; void deleteVSwitchAsync(const Model::DeleteVSwitchRequest& request, const DeleteVSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVSwitchOutcomeCallable deleteVSwitchCallable(const Model::DeleteVSwitchRequest& request) const; + DeleteVSwitchCidrReservationOutcome deleteVSwitchCidrReservation(const Model::DeleteVSwitchCidrReservationRequest &request)const; + void deleteVSwitchCidrReservationAsync(const Model::DeleteVSwitchCidrReservationRequest& request, const DeleteVSwitchCidrReservationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVSwitchCidrReservationOutcomeCallable deleteVSwitchCidrReservationCallable(const Model::DeleteVSwitchCidrReservationRequest& request) const; DeleteVbrHaOutcome deleteVbrHa(const Model::DeleteVbrHaRequest &request)const; void deleteVbrHaAsync(const Model::DeleteVbrHaRequest& request, const DeleteVbrHaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteVbrHaOutcomeCallable deleteVbrHaCallable(const Model::DeleteVbrHaRequest& request) const; @@ -2209,6 +2437,9 @@ namespace AlibabaCloud DeletionProtectionOutcome deletionProtection(const Model::DeletionProtectionRequest &request)const; void deletionProtectionAsync(const Model::DeletionProtectionRequest& request, const DeletionProtectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletionProtectionOutcomeCallable deletionProtectionCallable(const Model::DeletionProtectionRequest& request) const; + Describe95TrafficOutcome describe95Traffic(const Model::Describe95TrafficRequest &request)const; + void describe95TrafficAsync(const Model::Describe95TrafficRequest& request, const Describe95TrafficAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + Describe95TrafficOutcomeCallable describe95TrafficCallable(const Model::Describe95TrafficRequest& request) const; DescribeAccessPointsOutcome describeAccessPoints(const Model::DescribeAccessPointsRequest &request)const; void describeAccessPointsAsync(const Model::DescribeAccessPointsRequest& request, const DescribeAccessPointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccessPointsOutcomeCallable describeAccessPointsCallable(const Model::DescribeAccessPointsRequest& request) const; @@ -2245,6 +2476,21 @@ namespace AlibabaCloud DescribeEipSegmentOutcome describeEipSegment(const Model::DescribeEipSegmentRequest &request)const; void describeEipSegmentAsync(const Model::DescribeEipSegmentRequest& request, const DescribeEipSegmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEipSegmentOutcomeCallable describeEipSegmentCallable(const Model::DescribeEipSegmentRequest& request) const; + DescribeExpressConnectTrafficQosOutcome describeExpressConnectTrafficQos(const Model::DescribeExpressConnectTrafficQosRequest &request)const; + void describeExpressConnectTrafficQosAsync(const Model::DescribeExpressConnectTrafficQosRequest& request, const DescribeExpressConnectTrafficQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeExpressConnectTrafficQosOutcomeCallable describeExpressConnectTrafficQosCallable(const Model::DescribeExpressConnectTrafficQosRequest& request) const; + DescribeExpressConnectTrafficQosQueueOutcome describeExpressConnectTrafficQosQueue(const Model::DescribeExpressConnectTrafficQosQueueRequest &request)const; + void describeExpressConnectTrafficQosQueueAsync(const Model::DescribeExpressConnectTrafficQosQueueRequest& request, const DescribeExpressConnectTrafficQosQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeExpressConnectTrafficQosQueueOutcomeCallable describeExpressConnectTrafficQosQueueCallable(const Model::DescribeExpressConnectTrafficQosQueueRequest& request) const; + DescribeExpressConnectTrafficQosRuleOutcome describeExpressConnectTrafficQosRule(const Model::DescribeExpressConnectTrafficQosRuleRequest &request)const; + void describeExpressConnectTrafficQosRuleAsync(const Model::DescribeExpressConnectTrafficQosRuleRequest& request, const DescribeExpressConnectTrafficQosRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeExpressConnectTrafficQosRuleOutcomeCallable describeExpressConnectTrafficQosRuleCallable(const Model::DescribeExpressConnectTrafficQosRuleRequest& request) const; + DescribeFailoverTestJobOutcome describeFailoverTestJob(const Model::DescribeFailoverTestJobRequest &request)const; + void describeFailoverTestJobAsync(const Model::DescribeFailoverTestJobRequest& request, const DescribeFailoverTestJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFailoverTestJobOutcomeCallable describeFailoverTestJobCallable(const Model::DescribeFailoverTestJobRequest& request) const; + DescribeFailoverTestJobsOutcome describeFailoverTestJobs(const Model::DescribeFailoverTestJobsRequest &request)const; + void describeFailoverTestJobsAsync(const Model::DescribeFailoverTestJobsRequest& request, const DescribeFailoverTestJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFailoverTestJobsOutcomeCallable describeFailoverTestJobsCallable(const Model::DescribeFailoverTestJobsRequest& request) const; DescribeFlowLogsOutcome describeFlowLogs(const Model::DescribeFlowLogsRequest &request)const; void describeFlowLogsAsync(const Model::DescribeFlowLogsRequest& request, const DescribeFlowLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFlowLogsOutcomeCallable describeFlowLogsCallable(const Model::DescribeFlowLogsRequest& request) const; @@ -2287,6 +2533,9 @@ namespace AlibabaCloud DescribeIpv6GatewaysOutcome describeIpv6Gateways(const Model::DescribeIpv6GatewaysRequest &request)const; void describeIpv6GatewaysAsync(const Model::DescribeIpv6GatewaysRequest& request, const DescribeIpv6GatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeIpv6GatewaysOutcomeCallable describeIpv6GatewaysCallable(const Model::DescribeIpv6GatewaysRequest& request) const; + DescribeNatGatewayAssociateNetworkInterfacesOutcome describeNatGatewayAssociateNetworkInterfaces(const Model::DescribeNatGatewayAssociateNetworkInterfacesRequest &request)const; + void describeNatGatewayAssociateNetworkInterfacesAsync(const Model::DescribeNatGatewayAssociateNetworkInterfacesRequest& request, const DescribeNatGatewayAssociateNetworkInterfacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNatGatewayAssociateNetworkInterfacesOutcomeCallable describeNatGatewayAssociateNetworkInterfacesCallable(const Model::DescribeNatGatewayAssociateNetworkInterfacesRequest& request) const; DescribeNatGatewaysOutcome describeNatGateways(const Model::DescribeNatGatewaysRequest &request)const; void describeNatGatewaysAsync(const Model::DescribeNatGatewaysRequest& request, const DescribeNatGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNatGatewaysOutcomeCallable describeNatGatewaysCallable(const Model::DescribeNatGatewaysRequest& request) const; @@ -2335,6 +2584,9 @@ namespace AlibabaCloud DescribeSslVpnClientCertsOutcome describeSslVpnClientCerts(const Model::DescribeSslVpnClientCertsRequest &request)const; void describeSslVpnClientCertsAsync(const Model::DescribeSslVpnClientCertsRequest& request, const DescribeSslVpnClientCertsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSslVpnClientCertsOutcomeCallable describeSslVpnClientCertsCallable(const Model::DescribeSslVpnClientCertsRequest& request) const; + DescribeSslVpnClientsOutcome describeSslVpnClients(const Model::DescribeSslVpnClientsRequest &request)const; + void describeSslVpnClientsAsync(const Model::DescribeSslVpnClientsRequest& request, const DescribeSslVpnClientsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSslVpnClientsOutcomeCallable describeSslVpnClientsCallable(const Model::DescribeSslVpnClientsRequest& request) const; DescribeSslVpnServersOutcome describeSslVpnServers(const Model::DescribeSslVpnServersRequest &request)const; void describeSslVpnServersAsync(const Model::DescribeSslVpnServersRequest& request, const DescribeSslVpnServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSslVpnServersOutcomeCallable describeSslVpnServersCallable(const Model::DescribeSslVpnServersRequest& request) const; @@ -2392,6 +2644,9 @@ namespace AlibabaCloud DescribeVpnGatewayOutcome describeVpnGateway(const Model::DescribeVpnGatewayRequest &request)const; void describeVpnGatewayAsync(const Model::DescribeVpnGatewayRequest& request, const DescribeVpnGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVpnGatewayOutcomeCallable describeVpnGatewayCallable(const Model::DescribeVpnGatewayRequest& request) const; + DescribeVpnGatewayAvailableZonesOutcome describeVpnGatewayAvailableZones(const Model::DescribeVpnGatewayAvailableZonesRequest &request)const; + void describeVpnGatewayAvailableZonesAsync(const Model::DescribeVpnGatewayAvailableZonesRequest& request, const DescribeVpnGatewayAvailableZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpnGatewayAvailableZonesOutcomeCallable describeVpnGatewayAvailableZonesCallable(const Model::DescribeVpnGatewayAvailableZonesRequest& request) const; DescribeVpnGatewaysOutcome describeVpnGateways(const Model::DescribeVpnGatewaysRequest &request)const; void describeVpnGatewaysAsync(const Model::DescribeVpnGatewaysRequest& request, const DescribeVpnGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVpnGatewaysOutcomeCallable describeVpnGatewaysCallable(const Model::DescribeVpnGatewaysRequest& request) const; @@ -2410,6 +2665,9 @@ namespace AlibabaCloud DetachDhcpOptionsSetFromVpcOutcome detachDhcpOptionsSetFromVpc(const Model::DetachDhcpOptionsSetFromVpcRequest &request)const; void detachDhcpOptionsSetFromVpcAsync(const Model::DetachDhcpOptionsSetFromVpcRequest& request, const DetachDhcpOptionsSetFromVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachDhcpOptionsSetFromVpcOutcomeCallable detachDhcpOptionsSetFromVpcCallable(const Model::DetachDhcpOptionsSetFromVpcRequest& request) const; + DiagnoseVpnConnectionsOutcome diagnoseVpnConnections(const Model::DiagnoseVpnConnectionsRequest &request)const; + void diagnoseVpnConnectionsAsync(const Model::DiagnoseVpnConnectionsRequest& request, const DiagnoseVpnConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DiagnoseVpnConnectionsOutcomeCallable diagnoseVpnConnectionsCallable(const Model::DiagnoseVpnConnectionsRequest& request) const; DiagnoseVpnGatewayOutcome diagnoseVpnGateway(const Model::DiagnoseVpnGatewayRequest &request)const; void diagnoseVpnGatewayAsync(const Model::DiagnoseVpnGatewayRequest& request, const DiagnoseVpnGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DiagnoseVpnGatewayOutcomeCallable diagnoseVpnGatewayCallable(const Model::DiagnoseVpnGatewayRequest& request) const; @@ -2455,15 +2713,18 @@ namespace AlibabaCloud GetNatGatewayAttributeOutcome getNatGatewayAttribute(const Model::GetNatGatewayAttributeRequest &request)const; void getNatGatewayAttributeAsync(const Model::GetNatGatewayAttributeRequest& request, const GetNatGatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetNatGatewayAttributeOutcomeCallable getNatGatewayAttributeCallable(const Model::GetNatGatewayAttributeRequest& request) const; - GetNatGatewayConvertStatusOutcome getNatGatewayConvertStatus(const Model::GetNatGatewayConvertStatusRequest &request)const; - void getNatGatewayConvertStatusAsync(const Model::GetNatGatewayConvertStatusRequest& request, const GetNatGatewayConvertStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetNatGatewayConvertStatusOutcomeCallable getNatGatewayConvertStatusCallable(const Model::GetNatGatewayConvertStatusRequest& request) const; GetPhysicalConnectionServiceStatusOutcome getPhysicalConnectionServiceStatus(const Model::GetPhysicalConnectionServiceStatusRequest &request)const; void getPhysicalConnectionServiceStatusAsync(const Model::GetPhysicalConnectionServiceStatusRequest& request, const GetPhysicalConnectionServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPhysicalConnectionServiceStatusOutcomeCallable getPhysicalConnectionServiceStatusCallable(const Model::GetPhysicalConnectionServiceStatusRequest& request) const; + GetPublicIpAddressPoolServiceStatusOutcome getPublicIpAddressPoolServiceStatus(const Model::GetPublicIpAddressPoolServiceStatusRequest &request)const; + void getPublicIpAddressPoolServiceStatusAsync(const Model::GetPublicIpAddressPoolServiceStatusRequest& request, const GetPublicIpAddressPoolServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPublicIpAddressPoolServiceStatusOutcomeCallable getPublicIpAddressPoolServiceStatusCallable(const Model::GetPublicIpAddressPoolServiceStatusRequest& request) const; GetTrafficMirrorServiceStatusOutcome getTrafficMirrorServiceStatus(const Model::GetTrafficMirrorServiceStatusRequest &request)const; void getTrafficMirrorServiceStatusAsync(const Model::GetTrafficMirrorServiceStatusRequest& request, const GetTrafficMirrorServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetTrafficMirrorServiceStatusOutcomeCallable getTrafficMirrorServiceStatusCallable(const Model::GetTrafficMirrorServiceStatusRequest& request) const; + GetVSwitchCidrReservationUsageOutcome getVSwitchCidrReservationUsage(const Model::GetVSwitchCidrReservationUsageRequest &request)const; + void getVSwitchCidrReservationUsageAsync(const Model::GetVSwitchCidrReservationUsageRequest& request, const GetVSwitchCidrReservationUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVSwitchCidrReservationUsageOutcomeCallable getVSwitchCidrReservationUsageCallable(const Model::GetVSwitchCidrReservationUsageRequest& request) const; GetVpcGatewayEndpointAttributeOutcome getVpcGatewayEndpointAttribute(const Model::GetVpcGatewayEndpointAttributeRequest &request)const; void getVpcGatewayEndpointAttributeAsync(const Model::GetVpcGatewayEndpointAttributeRequest& request, const GetVpcGatewayEndpointAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetVpcGatewayEndpointAttributeOutcomeCallable getVpcGatewayEndpointAttributeCallable(const Model::GetVpcGatewayEndpointAttributeRequest& request) const; @@ -2539,6 +2800,9 @@ namespace AlibabaCloud ListTrafficMirrorSessionsOutcome listTrafficMirrorSessions(const Model::ListTrafficMirrorSessionsRequest &request)const; void listTrafficMirrorSessionsAsync(const Model::ListTrafficMirrorSessionsRequest& request, const ListTrafficMirrorSessionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTrafficMirrorSessionsOutcomeCallable listTrafficMirrorSessionsCallable(const Model::ListTrafficMirrorSessionsRequest& request) const; + ListVSwitchCidrReservationsOutcome listVSwitchCidrReservations(const Model::ListVSwitchCidrReservationsRequest &request)const; + void listVSwitchCidrReservationsAsync(const Model::ListVSwitchCidrReservationsRequest& request, const ListVSwitchCidrReservationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVSwitchCidrReservationsOutcomeCallable listVSwitchCidrReservationsCallable(const Model::ListVSwitchCidrReservationsRequest& request) const; ListVirtualPhysicalConnectionsOutcome listVirtualPhysicalConnections(const Model::ListVirtualPhysicalConnectionsRequest &request)const; void listVirtualPhysicalConnectionsAsync(const Model::ListVirtualPhysicalConnectionsRequest& request, const ListVirtualPhysicalConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListVirtualPhysicalConnectionsOutcomeCallable listVirtualPhysicalConnectionsCallable(const Model::ListVirtualPhysicalConnectionsRequest& request) const; @@ -2548,6 +2812,9 @@ namespace AlibabaCloud ListVpcGatewayEndpointsOutcome listVpcGatewayEndpoints(const Model::ListVpcGatewayEndpointsRequest &request)const; void listVpcGatewayEndpointsAsync(const Model::ListVpcGatewayEndpointsRequest& request, const ListVpcGatewayEndpointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListVpcGatewayEndpointsOutcomeCallable listVpcGatewayEndpointsCallable(const Model::ListVpcGatewayEndpointsRequest& request) const; + ListVpcPublishedRouteEntriesOutcome listVpcPublishedRouteEntries(const Model::ListVpcPublishedRouteEntriesRequest &request)const; + void listVpcPublishedRouteEntriesAsync(const Model::ListVpcPublishedRouteEntriesRequest& request, const ListVpcPublishedRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVpcPublishedRouteEntriesOutcomeCallable listVpcPublishedRouteEntriesCallable(const Model::ListVpcPublishedRouteEntriesRequest& request) const; ListVpnCertificateAssociationsOutcome listVpnCertificateAssociations(const Model::ListVpnCertificateAssociationsRequest &request)const; void listVpnCertificateAssociationsAsync(const Model::ListVpnCertificateAssociationsRequest& request, const ListVpnCertificateAssociationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListVpnCertificateAssociationsOutcomeCallable listVpnCertificateAssociationsCallable(const Model::ListVpnCertificateAssociationsRequest& request) const; @@ -2572,12 +2839,24 @@ namespace AlibabaCloud ModifyEipAddressAttributeOutcome modifyEipAddressAttribute(const Model::ModifyEipAddressAttributeRequest &request)const; void modifyEipAddressAttributeAsync(const Model::ModifyEipAddressAttributeRequest& request, const ModifyEipAddressAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyEipAddressAttributeOutcomeCallable modifyEipAddressAttributeCallable(const Model::ModifyEipAddressAttributeRequest& request) const; + ModifyEipForwardModeOutcome modifyEipForwardMode(const Model::ModifyEipForwardModeRequest &request)const; + void modifyEipForwardModeAsync(const Model::ModifyEipForwardModeRequest& request, const ModifyEipForwardModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEipForwardModeOutcomeCallable modifyEipForwardModeCallable(const Model::ModifyEipForwardModeRequest& request) const; ModifyExpressCloudConnectionAttributeOutcome modifyExpressCloudConnectionAttribute(const Model::ModifyExpressCloudConnectionAttributeRequest &request)const; void modifyExpressCloudConnectionAttributeAsync(const Model::ModifyExpressCloudConnectionAttributeRequest& request, const ModifyExpressCloudConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyExpressCloudConnectionAttributeOutcomeCallable modifyExpressCloudConnectionAttributeCallable(const Model::ModifyExpressCloudConnectionAttributeRequest& request) const; ModifyExpressCloudConnectionBandwidthOutcome modifyExpressCloudConnectionBandwidth(const Model::ModifyExpressCloudConnectionBandwidthRequest &request)const; void modifyExpressCloudConnectionBandwidthAsync(const Model::ModifyExpressCloudConnectionBandwidthRequest& request, const ModifyExpressCloudConnectionBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyExpressCloudConnectionBandwidthOutcomeCallable modifyExpressCloudConnectionBandwidthCallable(const Model::ModifyExpressCloudConnectionBandwidthRequest& request) const; + ModifyExpressConnectTrafficQosOutcome modifyExpressConnectTrafficQos(const Model::ModifyExpressConnectTrafficQosRequest &request)const; + void modifyExpressConnectTrafficQosAsync(const Model::ModifyExpressConnectTrafficQosRequest& request, const ModifyExpressConnectTrafficQosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyExpressConnectTrafficQosOutcomeCallable modifyExpressConnectTrafficQosCallable(const Model::ModifyExpressConnectTrafficQosRequest& request) const; + ModifyExpressConnectTrafficQosQueueOutcome modifyExpressConnectTrafficQosQueue(const Model::ModifyExpressConnectTrafficQosQueueRequest &request)const; + void modifyExpressConnectTrafficQosQueueAsync(const Model::ModifyExpressConnectTrafficQosQueueRequest& request, const ModifyExpressConnectTrafficQosQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyExpressConnectTrafficQosQueueOutcomeCallable modifyExpressConnectTrafficQosQueueCallable(const Model::ModifyExpressConnectTrafficQosQueueRequest& request) const; + ModifyExpressConnectTrafficQosRuleOutcome modifyExpressConnectTrafficQosRule(const Model::ModifyExpressConnectTrafficQosRuleRequest &request)const; + void modifyExpressConnectTrafficQosRuleAsync(const Model::ModifyExpressConnectTrafficQosRuleRequest& request, const ModifyExpressConnectTrafficQosRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyExpressConnectTrafficQosRuleOutcomeCallable modifyExpressConnectTrafficQosRuleCallable(const Model::ModifyExpressConnectTrafficQosRuleRequest& request) const; ModifyFlowLogAttributeOutcome modifyFlowLogAttribute(const Model::ModifyFlowLogAttributeRequest &request)const; void modifyFlowLogAttributeAsync(const Model::ModifyFlowLogAttributeRequest& request, const ModifyFlowLogAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyFlowLogAttributeOutcomeCallable modifyFlowLogAttributeCallable(const Model::ModifyFlowLogAttributeRequest& request) const; @@ -2617,9 +2896,6 @@ namespace AlibabaCloud ModifyIpv6GatewayAttributeOutcome modifyIpv6GatewayAttribute(const Model::ModifyIpv6GatewayAttributeRequest &request)const; void modifyIpv6GatewayAttributeAsync(const Model::ModifyIpv6GatewayAttributeRequest& request, const ModifyIpv6GatewayAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyIpv6GatewayAttributeOutcomeCallable modifyIpv6GatewayAttributeCallable(const Model::ModifyIpv6GatewayAttributeRequest& request) const; - ModifyIpv6GatewaySpecOutcome modifyIpv6GatewaySpec(const Model::ModifyIpv6GatewaySpecRequest &request)const; - void modifyIpv6GatewaySpecAsync(const Model::ModifyIpv6GatewaySpecRequest& request, const ModifyIpv6GatewaySpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyIpv6GatewaySpecOutcomeCallable modifyIpv6GatewaySpecCallable(const Model::ModifyIpv6GatewaySpecRequest& request) const; ModifyIpv6InternetBandwidthOutcome modifyIpv6InternetBandwidth(const Model::ModifyIpv6InternetBandwidthRequest &request)const; void modifyIpv6InternetBandwidthAsync(const Model::ModifyIpv6InternetBandwidthRequest& request, const ModifyIpv6InternetBandwidthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyIpv6InternetBandwidthOutcomeCallable modifyIpv6InternetBandwidthCallable(const Model::ModifyIpv6InternetBandwidthRequest& request) const; @@ -2662,12 +2938,18 @@ namespace AlibabaCloud ModifySslVpnServerOutcome modifySslVpnServer(const Model::ModifySslVpnServerRequest &request)const; void modifySslVpnServerAsync(const Model::ModifySslVpnServerRequest& request, const ModifySslVpnServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySslVpnServerOutcomeCallable modifySslVpnServerCallable(const Model::ModifySslVpnServerRequest& request) const; + ModifyTunnelAttributeOutcome modifyTunnelAttribute(const Model::ModifyTunnelAttributeRequest &request)const; + void modifyTunnelAttributeAsync(const Model::ModifyTunnelAttributeRequest& request, const ModifyTunnelAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyTunnelAttributeOutcomeCallable modifyTunnelAttributeCallable(const Model::ModifyTunnelAttributeRequest& request) const; ModifyVRouterAttributeOutcome modifyVRouterAttribute(const Model::ModifyVRouterAttributeRequest &request)const; void modifyVRouterAttributeAsync(const Model::ModifyVRouterAttributeRequest& request, const ModifyVRouterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVRouterAttributeOutcomeCallable modifyVRouterAttributeCallable(const Model::ModifyVRouterAttributeRequest& request) const; ModifyVSwitchAttributeOutcome modifyVSwitchAttribute(const Model::ModifyVSwitchAttributeRequest &request)const; void modifyVSwitchAttributeAsync(const Model::ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVSwitchAttributeOutcomeCallable modifyVSwitchAttributeCallable(const Model::ModifyVSwitchAttributeRequest& request) const; + ModifyVSwitchCidrReservationAttributeOutcome modifyVSwitchCidrReservationAttribute(const Model::ModifyVSwitchCidrReservationAttributeRequest &request)const; + void modifyVSwitchCidrReservationAttributeAsync(const Model::ModifyVSwitchCidrReservationAttributeRequest& request, const ModifyVSwitchCidrReservationAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVSwitchCidrReservationAttributeOutcomeCallable modifyVSwitchCidrReservationAttributeCallable(const Model::ModifyVSwitchCidrReservationAttributeRequest& request) const; ModifyVcoRouteEntryWeightOutcome modifyVcoRouteEntryWeight(const Model::ModifyVcoRouteEntryWeightRequest &request)const; void modifyVcoRouteEntryWeightAsync(const Model::ModifyVcoRouteEntryWeightRequest& request, const ModifyVcoRouteEntryWeightAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyVcoRouteEntryWeightOutcomeCallable modifyVcoRouteEntryWeightCallable(const Model::ModifyVcoRouteEntryWeightRequest& request) const; @@ -2704,15 +2986,24 @@ namespace AlibabaCloud MoveResourceGroupOutcome moveResourceGroup(const Model::MoveResourceGroupRequest &request)const; void moveResourceGroupAsync(const Model::MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MoveResourceGroupOutcomeCallable moveResourceGroupCallable(const Model::MoveResourceGroupRequest& request) const; + MoveVpnResourceGroupOutcome moveVpnResourceGroup(const Model::MoveVpnResourceGroupRequest &request)const; + void moveVpnResourceGroupAsync(const Model::MoveVpnResourceGroupRequest& request, const MoveVpnResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MoveVpnResourceGroupOutcomeCallable moveVpnResourceGroupCallable(const Model::MoveVpnResourceGroupRequest& request) const; OpenFlowLogServiceOutcome openFlowLogService(const Model::OpenFlowLogServiceRequest &request)const; void openFlowLogServiceAsync(const Model::OpenFlowLogServiceRequest& request, const OpenFlowLogServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OpenFlowLogServiceOutcomeCallable openFlowLogServiceCallable(const Model::OpenFlowLogServiceRequest& request) const; OpenPhysicalConnectionServiceOutcome openPhysicalConnectionService(const Model::OpenPhysicalConnectionServiceRequest &request)const; void openPhysicalConnectionServiceAsync(const Model::OpenPhysicalConnectionServiceRequest& request, const OpenPhysicalConnectionServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OpenPhysicalConnectionServiceOutcomeCallable openPhysicalConnectionServiceCallable(const Model::OpenPhysicalConnectionServiceRequest& request) const; + OpenPublicIpAddressPoolServiceOutcome openPublicIpAddressPoolService(const Model::OpenPublicIpAddressPoolServiceRequest &request)const; + void openPublicIpAddressPoolServiceAsync(const Model::OpenPublicIpAddressPoolServiceRequest& request, const OpenPublicIpAddressPoolServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OpenPublicIpAddressPoolServiceOutcomeCallable openPublicIpAddressPoolServiceCallable(const Model::OpenPublicIpAddressPoolServiceRequest& request) const; OpenTrafficMirrorServiceOutcome openTrafficMirrorService(const Model::OpenTrafficMirrorServiceRequest &request)const; void openTrafficMirrorServiceAsync(const Model::OpenTrafficMirrorServiceRequest& request, const OpenTrafficMirrorServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OpenTrafficMirrorServiceOutcomeCallable openTrafficMirrorServiceCallable(const Model::OpenTrafficMirrorServiceRequest& request) const; + PublishVpcRouteEntriesOutcome publishVpcRouteEntries(const Model::PublishVpcRouteEntriesRequest &request)const; + void publishVpcRouteEntriesAsync(const Model::PublishVpcRouteEntriesRequest& request, const PublishVpcRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PublishVpcRouteEntriesOutcomeCallable publishVpcRouteEntriesCallable(const Model::PublishVpcRouteEntriesRequest& request) const; PublishVpnRouteEntryOutcome publishVpnRouteEntry(const Model::PublishVpnRouteEntryRequest &request)const; void publishVpnRouteEntryAsync(const Model::PublishVpnRouteEntryRequest& request, const PublishVpnRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PublishVpnRouteEntryOutcomeCallable publishVpnRouteEntryCallable(const Model::PublishVpnRouteEntryRequest& request) const; @@ -2728,6 +3019,9 @@ namespace AlibabaCloud ReleaseEipSegmentAddressOutcome releaseEipSegmentAddress(const Model::ReleaseEipSegmentAddressRequest &request)const; void releaseEipSegmentAddressAsync(const Model::ReleaseEipSegmentAddressRequest& request, const ReleaseEipSegmentAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseEipSegmentAddressOutcomeCallable releaseEipSegmentAddressCallable(const Model::ReleaseEipSegmentAddressRequest& request) const; + ReleaseIpv6AddressOutcome releaseIpv6Address(const Model::ReleaseIpv6AddressRequest &request)const; + void releaseIpv6AddressAsync(const Model::ReleaseIpv6AddressRequest& request, const ReleaseIpv6AddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseIpv6AddressOutcomeCallable releaseIpv6AddressCallable(const Model::ReleaseIpv6AddressRequest& request) const; RemoveCommonBandwidthPackageIpOutcome removeCommonBandwidthPackageIp(const Model::RemoveCommonBandwidthPackageIpRequest &request)const; void removeCommonBandwidthPackageIpAsync(const Model::RemoveCommonBandwidthPackageIpRequest& request, const RemoveCommonBandwidthPackageIpAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveCommonBandwidthPackageIpOutcomeCallable removeCommonBandwidthPackageIpCallable(const Model::RemoveCommonBandwidthPackageIpRequest& request) const; @@ -2752,9 +3046,18 @@ namespace AlibabaCloud RevokeInstanceFromVbrOutcome revokeInstanceFromVbr(const Model::RevokeInstanceFromVbrRequest &request)const; void revokeInstanceFromVbrAsync(const Model::RevokeInstanceFromVbrRequest& request, const RevokeInstanceFromVbrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RevokeInstanceFromVbrOutcomeCallable revokeInstanceFromVbrCallable(const Model::RevokeInstanceFromVbrRequest& request) const; + SecondApplyPhysicalConnectionLOAOutcome secondApplyPhysicalConnectionLOA(const Model::SecondApplyPhysicalConnectionLOARequest &request)const; + void secondApplyPhysicalConnectionLOAAsync(const Model::SecondApplyPhysicalConnectionLOARequest& request, const SecondApplyPhysicalConnectionLOAAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SecondApplyPhysicalConnectionLOAOutcomeCallable secondApplyPhysicalConnectionLOACallable(const Model::SecondApplyPhysicalConnectionLOARequest& request) const; SetHighDefinitionMonitorLogStatusOutcome setHighDefinitionMonitorLogStatus(const Model::SetHighDefinitionMonitorLogStatusRequest &request)const; void setHighDefinitionMonitorLogStatusAsync(const Model::SetHighDefinitionMonitorLogStatusRequest& request, const SetHighDefinitionMonitorLogStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetHighDefinitionMonitorLogStatusOutcomeCallable setHighDefinitionMonitorLogStatusCallable(const Model::SetHighDefinitionMonitorLogStatusRequest& request) const; + StartFailoverTestJobOutcome startFailoverTestJob(const Model::StartFailoverTestJobRequest &request)const; + void startFailoverTestJobAsync(const Model::StartFailoverTestJobRequest& request, const StartFailoverTestJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartFailoverTestJobOutcomeCallable startFailoverTestJobCallable(const Model::StartFailoverTestJobRequest& request) const; + StopFailoverTestJobOutcome stopFailoverTestJob(const Model::StopFailoverTestJobRequest &request)const; + void stopFailoverTestJobAsync(const Model::StopFailoverTestJobRequest& request, const StopFailoverTestJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopFailoverTestJobOutcomeCallable stopFailoverTestJobCallable(const Model::StopFailoverTestJobRequest& request) const; TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; @@ -2767,6 +3070,9 @@ namespace AlibabaCloud TerminateVirtualBorderRouterOutcome terminateVirtualBorderRouter(const Model::TerminateVirtualBorderRouterRequest &request)const; void terminateVirtualBorderRouterAsync(const Model::TerminateVirtualBorderRouterRequest& request, const TerminateVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TerminateVirtualBorderRouterOutcomeCallable terminateVirtualBorderRouterCallable(const Model::TerminateVirtualBorderRouterRequest& request) const; + TransformEipSegmentToPublicIpAddressPoolOutcome transformEipSegmentToPublicIpAddressPool(const Model::TransformEipSegmentToPublicIpAddressPoolRequest &request)const; + void transformEipSegmentToPublicIpAddressPoolAsync(const Model::TransformEipSegmentToPublicIpAddressPoolRequest& request, const TransformEipSegmentToPublicIpAddressPoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TransformEipSegmentToPublicIpAddressPoolOutcomeCallable transformEipSegmentToPublicIpAddressPoolCallable(const Model::TransformEipSegmentToPublicIpAddressPoolRequest& request) const; UnTagResourcesOutcome unTagResources(const Model::UnTagResourcesRequest &request)const; void unTagResourcesAsync(const Model::UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnTagResourcesOutcomeCallable unTagResourcesCallable(const Model::UnTagResourcesRequest& request) const; @@ -2797,6 +3103,9 @@ namespace AlibabaCloud UpdateDhcpOptionsSetAttributeOutcome updateDhcpOptionsSetAttribute(const Model::UpdateDhcpOptionsSetAttributeRequest &request)const; void updateDhcpOptionsSetAttributeAsync(const Model::UpdateDhcpOptionsSetAttributeRequest& request, const UpdateDhcpOptionsSetAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDhcpOptionsSetAttributeOutcomeCallable updateDhcpOptionsSetAttributeCallable(const Model::UpdateDhcpOptionsSetAttributeRequest& request) const; + UpdateFailoverTestJobOutcome updateFailoverTestJob(const Model::UpdateFailoverTestJobRequest &request)const; + void updateFailoverTestJobAsync(const Model::UpdateFailoverTestJobRequest& request, const UpdateFailoverTestJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateFailoverTestJobOutcomeCallable updateFailoverTestJobCallable(const Model::UpdateFailoverTestJobRequest& request) const; UpdateGatewayRouteTableEntryAttributeOutcome updateGatewayRouteTableEntryAttribute(const Model::UpdateGatewayRouteTableEntryAttributeRequest &request)const; void updateGatewayRouteTableEntryAttributeAsync(const Model::UpdateGatewayRouteTableEntryAttributeRequest& request, const UpdateGatewayRouteTableEntryAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateGatewayRouteTableEntryAttributeOutcomeCallable updateGatewayRouteTableEntryAttributeCallable(const Model::UpdateGatewayRouteTableEntryAttributeRequest& request) const; @@ -2836,6 +3145,9 @@ namespace AlibabaCloud VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcome vpcDescribeVpcNatGatewayNetworkInterfaceQuota(const Model::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest &request)const; void vpcDescribeVpcNatGatewayNetworkInterfaceQuotaAsync(const Model::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest& request, const VpcDescribeVpcNatGatewayNetworkInterfaceQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcomeCallable vpcDescribeVpcNatGatewayNetworkInterfaceQuotaCallable(const Model::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaRequest& request) const; + WithdrawVpcPublishedRouteEntriesOutcome withdrawVpcPublishedRouteEntries(const Model::WithdrawVpcPublishedRouteEntriesRequest &request)const; + void withdrawVpcPublishedRouteEntriesAsync(const Model::WithdrawVpcPublishedRouteEntriesRequest& request, const WithdrawVpcPublishedRouteEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + WithdrawVpcPublishedRouteEntriesOutcomeCallable withdrawVpcPublishedRouteEntriesCallable(const Model::WithdrawVpcPublishedRouteEntriesRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/vpc/include/alibabacloud/vpc/model/AddPublicIpAddressPoolCidrBlockResult.h b/vpc/include/alibabacloud/vpc/model/AddPublicIpAddressPoolCidrBlockResult.h index 216b7e386..ebc964e71 100644 --- a/vpc/include/alibabacloud/vpc/model/AddPublicIpAddressPoolCidrBlockResult.h +++ b/vpc/include/alibabacloud/vpc/model/AddPublicIpAddressPoolCidrBlockResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud AddPublicIpAddressPoolCidrBlockResult(); explicit AddPublicIpAddressPoolCidrBlockResult(const std::string &payload); ~AddPublicIpAddressPoolCidrBlockResult(); + std::string getCidrBlock()const; protected: void parse(const std::string &payload); private: + std::string cidrBlock_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProRequest.h index e5a9badf6..1455ef300 100644 --- a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressProRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT AllocateEipAddressProRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; AllocateEipAddressProRequest(); ~AllocateEipAddressProRequest(); std::string getIpAddress() const; @@ -44,6 +48,8 @@ public: void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getNetmode() const; void setNetmode(const std::string &netmode); std::string getInstanceChargeType() const; @@ -77,6 +83,7 @@ private: std::string iSP_; std::string resourceGroupId_; std::string regionId_; + std::vector tag_; std::string netmode_; std::string instanceChargeType_; int period_; diff --git a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h index 70ea708f0..9e2379077 100644 --- a/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipAddressRequest.h @@ -28,8 +28,14 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT AllocateEipAddressRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; AllocateEipAddressRequest(); ~AllocateEipAddressRequest(); + std::string getIpAddress() const; + void setIpAddress(const std::string &ipAddress); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); std::string getPublicIpAddressPoolId() const; @@ -44,6 +50,10 @@ public: void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getZone() const; + void setZone(const std::string &zone); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getNetmode() const; void setNetmode(const std::string &netmode); std::string getInstanceChargeType() const; @@ -62,6 +72,8 @@ public: void setOwnerId(long ownerId); long getActivityId() const; void setActivityId(long activityId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); std::string getInternetChargeType() const; void setInternetChargeType(const std::string &internetChargeType); std::string getName() const; @@ -72,6 +84,7 @@ public: void setPricingCycle(const std::string &pricingCycle); private: + std::string ipAddress_; long resourceOwnerId_; std::string publicIpAddressPoolId_; std::string clientToken_; @@ -79,6 +92,8 @@ private: std::string description_; std::string resourceGroupId_; std::string regionId_; + std::string zone_; + std::vector tag_; std::string netmode_; std::string instanceChargeType_; int period_; @@ -88,6 +103,7 @@ private: std::string ownerAccount_; long ownerId_; long activityId_; + std::string instanceId_; std::string internetChargeType_; std::string name_; std::vector securityProtectionTypes_; diff --git a/vpc/include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h index 643e78645..2c7ad4f83 100644 --- a/vpc/include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AllocateEipSegmentAddressRequest.h @@ -40,6 +40,8 @@ public: void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getZone() const; + void setZone(const std::string &zone); std::string getNetmode() const; void setNetmode(const std::string &netmode); std::string getResourceOwnerAccount() const; @@ -61,6 +63,7 @@ private: std::string isp_; std::string resourceGroupId_; std::string regionId_; + std::string zone_; std::string netmode_; std::string resourceOwnerAccount_; std::string bandwidth_; diff --git a/vpc/include/alibabacloud/vpc/model/AllocateIpv6AddressRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateIpv6AddressRequest.h new file mode 100644 index 000000000..3da36df67 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AllocateIpv6AddressRequest.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_ALLOCATEIPV6ADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_ALLOCATEIPV6ADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT AllocateIpv6AddressRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + AllocateIpv6AddressRequest(); + ~AllocateIpv6AddressRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getIpv6AddressDescription() const; + void setIpv6AddressDescription(const std::string &ipv6AddressDescription); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAddressType() const; + void setAddressType(const std::string &addressType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getIpv6AddressName() const; + void setIpv6AddressName(const std::string &ipv6AddressName); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getIpv6Address() const; + void setIpv6Address(const std::string &ipv6Address); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string ipv6AddressDescription_; + std::string resourceGroupId_; + std::string regionId_; + std::string addressType_; + std::vector tag_; + std::string ipv6AddressName_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; + std::string ipv6Address_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEIPV6ADDRESSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AllocateIpv6AddressResult.h b/vpc/include/alibabacloud/vpc/model/AllocateIpv6AddressResult.h new file mode 100644 index 000000000..7749bb9b7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/AllocateIpv6AddressResult.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_VPC_MODEL_ALLOCATEIPV6ADDRESSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_ALLOCATEIPV6ADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT AllocateIpv6AddressResult : public ServiceResult + { + public: + + + AllocateIpv6AddressResult(); + explicit AllocateIpv6AddressResult(const std::string &payload); + ~AllocateIpv6AddressResult(); + std::string getResourceGroupId()const; + std::string getIpv6AddressId()const; + std::string getIpv6Address()const; + + protected: + void parse(const std::string &payload); + private: + std::string resourceGroupId_; + std::string ipv6AddressId_; + std::string ipv6Address_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_ALLOCATEIPV6ADDRESSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h index e2c3b78a9..b1a135ace 100644 --- a/vpc/include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AllocateIpv6InternetBandwidthRequest.h @@ -36,6 +36,8 @@ public: void setClientToken(const std::string &clientToken); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); int getBandwidth() const; void setBandwidth(int bandwidth); std::string getResourceOwnerAccount() const; @@ -55,6 +57,7 @@ private: long resourceOwnerId_; std::string clientToken_; std::string regionId_; + bool dryRun_; int bandwidth_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h index bdbcd9b21..d70b37e30 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateNetworkAclRequest.h @@ -42,10 +42,14 @@ public: void setRegionId(const std::string ®ionId); std::string getNetworkAclId() const; void setNetworkAclId(const std::string &networkAclId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::vector getResource() const; void setResource(const std::vector &resource); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); @@ -54,8 +58,10 @@ private: std::string clientToken_; std::string regionId_; std::string networkAclId_; + bool dryRun_; std::vector resource_; std::string resourceOwnerAccount_; + std::string ownerAccount_; long ownerId_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/AssociateRouteTableWithGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateRouteTableWithGatewayRequest.h index 9396f6371..51ef1b111 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateRouteTableWithGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateRouteTableWithGatewayRequest.h @@ -40,6 +40,8 @@ public: void setGatewayId(const std::string &gatewayId); std::string getRouteTableId() const; void setRouteTableId(const std::string &routeTableId); + std::string getGatewayType() const; + void setGatewayType(const std::string &gatewayType); bool getDryRun() const; void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; @@ -55,6 +57,7 @@ private: std::string regionId_; std::string gatewayId_; std::string routeTableId_; + std::string gatewayType_; bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.h index fdbfa4138..0e935b73b 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.h @@ -32,32 +32,32 @@ public: ~AssociateRouteTablesWithVpcGatewayEndpointRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - bool getDryRun() const; - void setDryRun(bool dryRun); std::string getClientToken() const; void setClientToken(const std::string &clientToken); - std::string getResourceOwnerAccount() const; - void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getEndpointId() const; void setEndpointId(const std::string &endpointId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::vector getRouteTableIds() const; void setRouteTableIds(const std::vector &routeTableIds); private: long resourceOwnerId_; - bool dryRun_; std::string clientToken_; - std::string resourceOwnerAccount_; std::string endpointId_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string regionId_; std::vector routeTableIds_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h b/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h index a76343b89..aee996cc6 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockRequest.h @@ -34,6 +34,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getIPv6CidrType() const; void setIPv6CidrType(const std::string &iPv6CidrType); + std::string getIpamPoolId() const; + void setIpamPoolId(const std::string &ipamPoolId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getIpv6Isp() const; @@ -48,6 +50,8 @@ public: void setOwnerId(long ownerId); std::string getIPv6CidrBlock() const; void setIPv6CidrBlock(const std::string &iPv6CidrBlock); + int getSecondaryCidrMask() const; + void setSecondaryCidrMask(int secondaryCidrMask); std::string getSecondaryCidrBlock() const; void setSecondaryCidrBlock(const std::string &secondaryCidrBlock); std::string getVpcId() const; @@ -56,6 +60,7 @@ public: private: long resourceOwnerId_; std::string iPv6CidrType_; + std::string ipamPoolId_; std::string regionId_; std::string ipv6Isp_; std::string ipVersion_; @@ -63,6 +68,7 @@ private: std::string ownerAccount_; long ownerId_; std::string iPv6CidrBlock_; + int secondaryCidrMask_; std::string secondaryCidrBlock_; std::string vpcId_; }; diff --git a/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockResult.h b/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockResult.h index 79d4fb95a..8e91567f1 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockResult.h +++ b/vpc/include/alibabacloud/vpc/model/AssociateVpcCidrBlockResult.h @@ -37,10 +37,14 @@ namespace AlibabaCloud AssociateVpcCidrBlockResult(); explicit AssociateVpcCidrBlockResult(const std::string &payload); ~AssociateVpcCidrBlockResult(); + std::string getIpVersion()const; + std::string getCidrBlock()const; protected: void parse(const std::string &payload); private: + std::string ipVersion_; + std::string cidrBlock_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h b/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h index 254c4cc27..d9a7f3fb3 100644 --- a/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h +++ b/vpc/include/alibabacloud/vpc/model/CompletePhysicalConnectionLOARequest.h @@ -36,8 +36,14 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getClientToken() const; void setClientToken(const std::string &clientToken); + std::string getLineSPContactInfo() const; + void setLineSPContactInfo(const std::string &lineSPContactInfo); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getFinishWork() const; + void setFinishWork(bool finishWork); + std::string getLineServiceProvider() const; + void setLineServiceProvider(const std::string &lineServiceProvider); std::string getLineLabel() const; void setLineLabel(const std::string &lineLabel); std::string getResourceOwnerAccount() const; @@ -53,7 +59,10 @@ private: std::string lineCode_; long resourceOwnerId_; std::string clientToken_; + std::string lineSPContactInfo_; std::string regionId_; + bool finishWork_; + std::string lineServiceProvider_; std::string lineLabel_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h index fc8915dc2..2ab20e216 100644 --- a/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CopyNetworkAclEntriesRequest.h @@ -40,8 +40,12 @@ public: void setNetworkAclId(const std::string &networkAclId); std::string getSourceNetworkAclId() const; void setSourceNetworkAclId(const std::string &sourceNetworkAclId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); @@ -51,7 +55,9 @@ private: std::string regionId_; std::string networkAclId_; std::string sourceNetworkAclId_; + bool dryRun_; std::string resourceOwnerAccount_; + std::string ownerAccount_; long ownerId_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h b/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h index 12fbb435b..b9d52a819 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateCommonBandwidthPackageRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateCommonBandwidthPackageRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; CreateCommonBandwidthPackageRequest(); ~CreateCommonBandwidthPackageRequest(); long getResourceOwnerId() const; @@ -44,6 +48,8 @@ public: void setRegionId(const std::string ®ionId); std::string getZone() const; void setZone(const std::string &zone); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); int getBandwidth() const; @@ -69,6 +75,7 @@ private: std::string resourceGroupId_; std::string regionId_; std::string zone_; + std::vector tag_; std::string resourceOwnerAccount_; int bandwidth_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h index ae508f237..218729c56 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateCustomerGatewayRequest.h @@ -44,6 +44,8 @@ public: void setClientToken(const std::string &clientToken); std::string getDescription() const; void setDescription(const std::string &description); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; @@ -65,6 +67,7 @@ private: long resourceOwnerId_; std::string clientToken_; std::string description_; + std::string resourceGroupId_; std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetRequest.h b/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetRequest.h index 02d33b6af..f0bdc28ee 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateDhcpOptionsSetRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; CreateDhcpOptionsSetRequest(); ~CreateDhcpOptionsSetRequest(); std::string getBootFileName() const; @@ -38,12 +42,16 @@ public: void setClientToken(const std::string &clientToken); std::string getTFTPServerName() const; void setTFTPServerName(const std::string &tFTPServerName); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getLeaseTime() const; void setLeaseTime(const std::string &leaseTime); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getDomainNameServers() const; void setDomainNameServers(const std::string &domainNameServers); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getDhcpOptionsSetDescription() const; void setDhcpOptionsSetDescription(const std::string &dhcpOptionsSetDescription); bool getDryRun() const; @@ -66,9 +74,11 @@ private: long resourceOwnerId_; std::string clientToken_; std::string tFTPServerName_; + std::string resourceGroupId_; std::string leaseTime_; std::string regionId_; std::string domainNameServers_; + std::vector tag_; std::string dhcpOptionsSetDescription_; bool dryRun_; std::string resourceOwnerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetResult.h b/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetResult.h index 2d19b3167..d2cb6a911 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateDhcpOptionsSetResult.h @@ -38,11 +38,13 @@ namespace AlibabaCloud explicit CreateDhcpOptionsSetResult(const std::string &payload); ~CreateDhcpOptionsSetResult(); std::string getDhcpOptionsSetId()const; + std::string getResourceGroupId()const; protected: void parse(const std::string &payload); private: std::string dhcpOptionsSetId_; + std::string resourceGroupId_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosQueueRequest.h b/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosQueueRequest.h new file mode 100644 index 000000000..a5d1b70e4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosQueueRequest.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_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSQUEUEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSQUEUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateExpressConnectTrafficQosQueueRequest : public RpcServiceRequest { +public: + CreateExpressConnectTrafficQosQueueRequest(); + ~CreateExpressConnectTrafficQosQueueRequest(); + std::string getQueueName() const; + void setQueueName(const std::string &queueName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getQueueDescription() const; + void setQueueDescription(const std::string &queueDescription); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getQueueType() const; + void setQueueType(const std::string &queueType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getBandwidthPercent() const; + void setBandwidthPercent(const std::string &bandwidthPercent); + +private: + std::string queueName_; + std::string clientToken_; + std::string queueDescription_; + std::string regionId_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string queueType_; + long ownerId_; + std::string bandwidthPercent_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSQUEUEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosQueueResult.h b/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosQueueResult.h new file mode 100644 index 000000000..e313ec512 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosQueueResult.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_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSQUEUERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSQUEUERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateExpressConnectTrafficQosQueueResult : public ServiceResult + { + public: + + + CreateExpressConnectTrafficQosQueueResult(); + explicit CreateExpressConnectTrafficQosQueueResult(const std::string &payload); + ~CreateExpressConnectTrafficQosQueueResult(); + std::string getQosId()const; + std::string getQueueId()const; + + protected: + void parse(const std::string &payload); + private: + std::string qosId_; + std::string queueId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSQUEUERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosRequest.h b/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosRequest.h new file mode 100644 index 000000000..bb05ec82f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosRequest.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_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateExpressConnectTrafficQosRequest : public RpcServiceRequest { +public: + struct Tags { + std::string key; + std::string value; + }; + CreateExpressConnectTrafficQosRequest(); + ~CreateExpressConnectTrafficQosRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getTags() const; + void setTags(const std::vector &tags); + std::string getQosName() const; + void setQosName(const std::string &qosName); + std::string getQosDescription() const; + void setQosDescription(const std::string &qosDescription); + +private: + std::string clientToken_; + std::string resourceGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector tags_; + std::string qosName_; + std::string qosDescription_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosResult.h b/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosResult.h new file mode 100644 index 000000000..b508ff2b7 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosResult.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_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateExpressConnectTrafficQosResult : public ServiceResult + { + public: + + + CreateExpressConnectTrafficQosResult(); + explicit CreateExpressConnectTrafficQosResult(const std::string &payload); + ~CreateExpressConnectTrafficQosResult(); + std::string getQosId()const; + + protected: + void parse(const std::string &payload); + private: + std::string qosId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosRuleRequest.h b/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosRuleRequest.h new file mode 100644 index 000000000..afeb1fa31 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosRuleRequest.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSRULEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateExpressConnectTrafficQosRuleRequest : public RpcServiceRequest { +public: + CreateExpressConnectTrafficQosRuleRequest(); + ~CreateExpressConnectTrafficQosRuleRequest(); + std::string getDstCidr() const; + void setDstCidr(const std::string &dstCidr); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getSrcCidr() const; + void setSrcCidr(const std::string &srcCidr); + std::string getDstIPv6Cidr() const; + void setDstIPv6Cidr(const std::string &dstIPv6Cidr); + std::string getDstPortRange() const; + void setDstPortRange(const std::string &dstPortRange); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getQueueId() const; + void setQueueId(const std::string &queueId); + int getMatchDscp() const; + void setMatchDscp(int matchDscp); + std::string getRuleDescription() const; + void setRuleDescription(const std::string &ruleDescription); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getRemarkingDscp() const; + void setRemarkingDscp(int remarkingDscp); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getPriority() const; + void setPriority(int priority); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSrcPortRange() const; + void setSrcPortRange(const std::string &srcPortRange); + std::string getSrcIPv6Cidr() const; + void setSrcIPv6Cidr(const std::string &srcIPv6Cidr); + +private: + std::string dstCidr_; + std::string clientToken_; + std::string ruleName_; + std::string srcCidr_; + std::string dstIPv6Cidr_; + std::string dstPortRange_; + std::string protocol_; + std::string regionId_; + std::string qosId_; + std::string queueId_; + int matchDscp_; + std::string ruleDescription_; + std::string resourceOwnerAccount_; + int remarkingDscp_; + std::string ownerAccount_; + int priority_; + long ownerId_; + std::string srcPortRange_; + std::string srcIPv6Cidr_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSRULEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosRuleResult.h b/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosRuleResult.h new file mode 100644 index 000000000..e86ba5eaa --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateExpressConnectTrafficQosRuleResult.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_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSRULERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateExpressConnectTrafficQosRuleResult : public ServiceResult + { + public: + + + CreateExpressConnectTrafficQosRuleResult(); + explicit CreateExpressConnectTrafficQosRuleResult(const std::string &payload); + ~CreateExpressConnectTrafficQosRuleResult(); + std::string getRuleId()const; + std::string getQosId()const; + std::string getQueueId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ruleId_; + std::string qosId_; + std::string queueId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEEXPRESSCONNECTTRAFFICQOSRULERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateFailoverTestJobRequest.h b/vpc/include/alibabacloud/vpc/model/CreateFailoverTestJobRequest.h new file mode 100644 index 000000000..b300b5140 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateFailoverTestJobRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_CREATEFAILOVERTESTJOBREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEFAILOVERTESTJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateFailoverTestJobRequest : public RpcServiceRequest { +public: + CreateFailoverTestJobRequest(); + ~CreateFailoverTestJobRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + int getJobDuration() const; + void setJobDuration(int jobDuration); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getJobType() const; + void setJobType(const std::string &jobType); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string clientToken_; + std::string description_; + int jobDuration_; + std::string regionId_; + std::vector resourceId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::string jobType_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEFAILOVERTESTJOBREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateFailoverTestJobResult.h b/vpc/include/alibabacloud/vpc/model/CreateFailoverTestJobResult.h new file mode 100644 index 000000000..ae2fc6cb5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateFailoverTestJobResult.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_VPC_MODEL_CREATEFAILOVERTESTJOBRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEFAILOVERTESTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateFailoverTestJobResult : public ServiceResult + { + public: + + + CreateFailoverTestJobResult(); + explicit CreateFailoverTestJobResult(const std::string &payload); + ~CreateFailoverTestJobResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEFAILOVERTESTJOBRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateFlowLogRequest.h b/vpc/include/alibabacloud/vpc/model/CreateFlowLogRequest.h index c407633b8..a6a0fdd0b 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateFlowLogRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateFlowLogRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateFlowLogRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; CreateFlowLogRequest(); ~CreateFlowLogRequest(); long getResourceOwnerId() const; @@ -38,6 +42,10 @@ public: void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getIpVersion() const; + void setIpVersion(const std::string &ipVersion); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getResourceId() const; void setResourceId(const std::string &resourceId); std::string getProjectName() const; @@ -60,12 +68,16 @@ public: void setTrafficType(const std::string &trafficType); std::string getFlowLogName() const; void setFlowLogName(const std::string &flowLogName); + std::string getTrafficAnalyzerId() const; + void setTrafficAnalyzerId(const std::string &trafficAnalyzerId); private: long resourceOwnerId_; std::string description_; std::string resourceGroupId_; std::string regionId_; + std::string ipVersion_; + std::vector tag_; std::string resourceId_; std::string projectName_; std::string logStoreName_; @@ -77,6 +89,7 @@ private: std::string resourceType_; std::string trafficType_; std::string flowLogName_; + std::string trafficAnalyzerId_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h index 76fa94e9c..3bb646c6b 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateForwardEntryRequest.h @@ -42,6 +42,8 @@ public: void setRegionId(const std::string ®ionId); std::string getExternalIp() const; void setExternalIp(const std::string &externalIp); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getIpProtocol() const; @@ -66,6 +68,7 @@ private: std::string internalIp_; std::string regionId_; std::string externalIp_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ipProtocol_; std::string forwardEntryName_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h b/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h index d78ed3737..fec3fc137 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateHaVipRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateHaVipRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; CreateHaVipRequest(); ~CreateHaVipRequest(); std::string getIpAddress() const; @@ -42,6 +46,8 @@ public: void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -60,6 +66,7 @@ private: std::string description_; std::string resourceGroupId_; std::string regionId_; + std::vector tag_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateHighReliablePhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateHighReliablePhysicalConnectionRequest.h new file mode 100644 index 000000000..ed9f82dfa --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateHighReliablePhysicalConnectionRequest.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_VPC_MODEL_CREATEHIGHRELIABLEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEHIGHRELIABLEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateHighReliablePhysicalConnectionRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + struct ApList { + std::string name; + std::string description; + std::string regionId; + std::string lineOperator; + std::string accessPointId; + int portNum; + std::string type; + long bandwidth; + std::string peerLocation; + std::string circuitCode; + }; + CreateHighReliablePhysicalConnectionRequest(); + ~CreateHighReliablePhysicalConnectionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType() const; + void setPortType(const std::string &portType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getHighReliableType() const; + void setHighReliableType(const std::string &highReliableType); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getDryRun() const; + void setDryRun(const std::string &dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getApList() const; + void setApList(const std::vector &apList); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::vector getDeviceAdvancedCapacity() const; + void setDeviceAdvancedCapacity(const std::vector &deviceAdvancedCapacity); + +private: + long resourceOwnerId_; + std::string portType_; + std::string clientToken_; + std::string highReliableType_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector apList_; + std::string acceptLanguage_; + std::vector deviceAdvancedCapacity_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEHIGHRELIABLEPHYSICALCONNECTIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateHighReliablePhysicalConnectionResult.h b/vpc/include/alibabacloud/vpc/model/CreateHighReliablePhysicalConnectionResult.h new file mode 100644 index 000000000..c1982257c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateHighReliablePhysicalConnectionResult.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_VPC_MODEL_CREATEHIGHRELIABLEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEHIGHRELIABLEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateHighReliablePhysicalConnectionResult : public ServiceResult + { + public: + struct PhysicalConnectionListItem + { + std::string regionNo; + std::string instanceId; + }; + struct ErrorInfoListItem + { + std::string instanceId; + std::string errorCode; + std::string errorMessage; + }; + + + CreateHighReliablePhysicalConnectionResult(); + explicit CreateHighReliablePhysicalConnectionResult(const std::string &payload); + ~CreateHighReliablePhysicalConnectionResult(); + std::vector getErrorInfoList()const; + std::vector getPhysicalConnectionList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector errorInfoList_; + std::vector physicalConnectionList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEHIGHRELIABLEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateIpv4GatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateIpv4GatewayRequest.h index 30c0ffef2..bec1f094e 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateIpv4GatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateIpv4GatewayRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateIpv4GatewayRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; CreateIpv4GatewayRequest(); ~CreateIpv4GatewayRequest(); std::string getIpv4GatewayDescription() const; @@ -42,6 +46,8 @@ public: void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); bool getDryRun() const; void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; @@ -60,6 +66,7 @@ private: std::string ipv4GatewayName_; std::string resourceGroupId_; std::string regionId_; + std::vector tag_; bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateIpv6GatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateIpv6GatewayRequest.h index 63b334839..a4d8bdd8a 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateIpv6GatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateIpv6GatewayRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateIpv6GatewayRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; CreateIpv6GatewayRequest(); ~CreateIpv6GatewayRequest(); long getResourceOwnerId() const; @@ -42,6 +46,8 @@ public: void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -60,6 +66,7 @@ private: std::string spec_; std::string resourceGroupId_; std::string regionId_; + std::vector tag_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateNatGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateNatGatewayRequest.h index a80e5c4c8..074d87997 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateNatGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateNatGatewayRequest.h @@ -39,6 +39,10 @@ public: std::string iSP; int ipCount; }; + struct AccessMode { + std::string modeValue; + std::string tunnelType; + }; CreateNatGatewayRequest(); ~CreateNatGatewayRequest(); long getResourceOwnerId() const; @@ -79,6 +83,8 @@ public: void setPrivateLinkMode(const std::string &privateLinkMode); long getOwnerId() const; void setOwnerId(long ownerId); + bool getIsCreateDefaultRoute() const; + void setIsCreateDefaultRoute(bool isCreateDefaultRoute); std::string getVSwitchId() const; void setVSwitchId(const std::string &vSwitchId); std::string getInternetChargeType() const; @@ -93,6 +99,8 @@ public: void setEipBindMode(const std::string &eipBindMode); std::string getPricingCycle() const; void setPricingCycle(const std::string &pricingCycle); + AccessMode getAccessMode() const; + void setAccessMode(const AccessMode &accessMode); private: long resourceOwnerId_; @@ -114,6 +122,7 @@ private: std::string ownerAccount_; std::string privateLinkMode_; long ownerId_; + bool isCreateDefaultRoute_; std::string vSwitchId_; std::string internetChargeType_; std::string vpcId_; @@ -121,6 +130,7 @@ private: bool privateLinkEnabled_; std::string eipBindMode_; std::string pricingCycle_; + AccessMode accessMode_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/CreateNatIpRequest.h b/vpc/include/alibabacloud/vpc/model/CreateNatIpRequest.h index 68127fae0..87e6d1727 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateNatIpRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateNatIpRequest.h @@ -30,8 +30,6 @@ class ALIBABACLOUD_VPC_EXPORT CreateNatIpRequest : public RpcServiceRequest { public: CreateNatIpRequest(); ~CreateNatIpRequest(); - std::string getNatIpCidrId() const; - void setNatIpCidrId(const std::string &natIpCidrId); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); std::string getNatIpName() const; @@ -58,7 +56,6 @@ public: void setNatIp(const std::string &natIp); private: - std::string natIpCidrId_; long resourceOwnerId_; std::string natIpName_; std::string clientToken_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateNetworkAclRequest.h b/vpc/include/alibabacloud/vpc/model/CreateNetworkAclRequest.h index de2ac9d4c..e96be9dfb 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateNetworkAclRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateNetworkAclRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateNetworkAclRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; CreateNetworkAclRequest(); ~CreateNetworkAclRequest(); long getResourceOwnerId() const; @@ -38,8 +42,14 @@ public: void setDescription(const std::string &description); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); std::string getNetworkAclName() const; void setNetworkAclName(const std::string &networkAclName); long getOwnerId() const; @@ -52,7 +62,10 @@ private: std::string clientToken_; std::string description_; std::string regionId_; + std::vector tag_; + bool dryRun_; std::string resourceOwnerAccount_; + std::string ownerAccount_; std::string networkAclName_; long ownerId_; std::string vpcId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h index 811f91e5a..c0f38ea23 100644 --- a/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreatePhysicalConnectionRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreatePhysicalConnectionRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; CreatePhysicalConnectionRequest(); ~CreatePhysicalConnectionRequest(); std::string getAccessPointId() const; @@ -50,6 +54,8 @@ public: void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getRedundantPhysicalConnectionId() const; void setRedundantPhysicalConnectionId(const std::string &redundantPhysicalConnectionId); std::string getPeerLocation() const; @@ -66,6 +72,8 @@ public: void setLineOperator(const std::string &lineOperator); std::string getName() const; void setName(const std::string &name); + std::vector getDeviceAdvancedCapacity() const; + void setDeviceAdvancedCapacity(const std::vector &deviceAdvancedCapacity); private: std::string accessPointId_; @@ -78,6 +86,7 @@ private: std::string type_; std::string resourceGroupId_; std::string regionId_; + std::vector tag_; std::string redundantPhysicalConnectionId_; std::string peerLocation_; int bandwidth_; @@ -86,6 +95,7 @@ private: long ownerId_; std::string lineOperator_; std::string name_; + std::vector deviceAdvancedCapacity_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolRequest.h b/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolRequest.h index 44c26386a..0753b6e03 100644 --- a/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreatePublicIpAddressPoolRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; CreatePublicIpAddressPoolRequest(); ~CreatePublicIpAddressPoolRequest(); long getResourceOwnerId() const; @@ -42,16 +46,24 @@ public: void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); bool getDryRun() const; void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + std::vector getZones() const; + void setZones(const std::vector &zones); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getBizType() const; + void setBizType(const std::string &bizType); std::string getName() const; void setName(const std::string &name); + std::vector getSecurityProtectionTypes() const; + void setSecurityProtectionTypes(const std::vector &securityProtectionTypes); private: long resourceOwnerId_; @@ -60,11 +72,15 @@ private: std::string description_; std::string resourceGroupId_; std::string regionId_; + std::vector tag_; bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; + std::vector zones_; long ownerId_; + std::string bizType_; std::string name_; + std::vector securityProtectionTypes_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolResult.h b/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolResult.h index fa395c6d6..8f2a156f4 100644 --- a/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreatePublicIpAddressPoolResult.h @@ -39,12 +39,14 @@ namespace AlibabaCloud ~CreatePublicIpAddressPoolResult(); std::string getResourceGroupId()const; std::string getPulbicIpAddressPoolId()const; + std::string getPublicIpAddressPoolId()const; protected: void parse(const std::string &payload); private: std::string resourceGroupId_; std::string pulbicIpAddressPoolId_; + std::string publicIpAddressPoolId_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/CreateRouteEntriesRequest.h index 76b6bb690..2e0e87221 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateRouteEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateRouteEntriesRequest.h @@ -35,7 +35,7 @@ public: std::string nextHop; std::string nextHopType; std::string name; - std::string describption; + std::string description; }; CreateRouteEntriesRequest(); ~CreateRouteEntriesRequest(); @@ -43,6 +43,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -55,6 +57,7 @@ public: private: long resourceOwnerId_; std::string regionId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateRouteEntryRequest.h index 664bcbe53..9f2299c9d 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateRouteEntryRequest.h @@ -51,6 +51,8 @@ public: void setNextHopType(const std::string &nextHopType); std::string getRouteTableId() const; void setRouteTableId(const std::string &routeTableId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getDestinationCidrBlock() const; @@ -73,6 +75,7 @@ private: std::string nextHopId_; std::string nextHopType_; std::string routeTableId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string destinationCidrBlock_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouteTableRequest.h b/vpc/include/alibabacloud/vpc/model/CreateRouteTableRequest.h index c31a5dd6d..3d107baed 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateRouteTableRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateRouteTableRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateRouteTableRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; CreateRouteTableRequest(); ~CreateRouteTableRequest(); long getResourceOwnerId() const; @@ -42,6 +46,8 @@ public: void setRegionId(const std::string ®ionId); std::string getAssociateType() const; void setAssociateType(const std::string &associateType); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -58,6 +64,7 @@ private: std::string routeTableName_; std::string regionId_; std::string associateType_; + std::vector tag_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouteTableResult.h b/vpc/include/alibabacloud/vpc/model/CreateRouteTableResult.h index 5b45f2966..f10e984d0 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateRouteTableResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateRouteTableResult.h @@ -38,13 +38,11 @@ namespace AlibabaCloud explicit CreateRouteTableResult(const std::string &payload); ~CreateRouteTableResult(); std::string getRouteTableId()const; - std::string getAssociateType()const; protected: void parse(const std::string &payload); private: std::string routeTableId_; - std::string associateType_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h b/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h index edb4dae4f..65ba02e49 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateRouterInterfaceRequest.h @@ -28,16 +28,42 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateRouterInterfaceRequest : public RpcServiceRequest { public: + struct Tags { + std::string value; + std::string key; + }; CreateRouterInterfaceRequest(); ~CreateRouterInterfaceRequest(); std::string getAccessPointId() const; void setAccessPointId(const std::string &accessPointId); - std::string getOppositeRouterId() const; - void setOppositeRouterId(const std::string &oppositeRouterId); std::string getOppositeAccessPointId() const; void setOppositeAccessPointId(const std::string &oppositeAccessPointId); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getSpec() const; + void setSpec(const std::string &spec); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + int getPeriod() const; + void setPeriod(int period); + std::string getOppositeRegionId() const; + void setOppositeRegionId(const std::string &oppositeRegionId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getOppositeInterfaceOwnerId() const; + void setOppositeInterfaceOwnerId(const std::string &oppositeInterfaceOwnerId); + std::vector getTags() const; + void setTags(const std::vector &tags); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + std::string getOppositeRouterType() const; + void setOppositeRouterType(const std::string &oppositeRouterType); + std::string getName() const; + void setName(const std::string &name); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + std::string getOppositeRouterId() const; + void setOppositeRouterId(const std::string &oppositeRouterId); std::string getRole() const; void setRole(const std::string &role); std::string getClientToken() const; @@ -46,8 +72,6 @@ public: void setHealthCheckTargetIp(const std::string &healthCheckTargetIp); std::string getDescription() const; void setDescription(const std::string &description); - std::string getSpec() const; - void setSpec(const std::string &spec); bool getFastLinkMode() const; void setFastLinkMode(bool fastLinkMode); std::string getRegionId() const; @@ -56,63 +80,55 @@ public: void setOppositeInterfaceId(const std::string &oppositeInterfaceId); std::string getInstanceChargeType() const; void setInstanceChargeType(const std::string &instanceChargeType); - int getPeriod() const; - void setPeriod(int period); bool getAutoPay() const; void setAutoPay(bool autoPay); + std::string getPromotionOptionNo() const; + void setPromotionOptionNo(const std::string &promotionOptionNo); std::string getAvailableZoneId() const; void setAvailableZoneId(const std::string &availableZoneId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); - std::string getOppositeRegionId() const; - void setOppositeRegionId(const std::string &oppositeRegionId); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); - long getOwnerId() const; - void setOwnerId(long ownerId); - std::string getOppositeInterfaceOwnerId() const; - void setOppositeInterfaceOwnerId(const std::string &oppositeInterfaceOwnerId); std::string getRouterType() const; void setRouterType(const std::string &routerType); std::string getHealthCheckSourceIp() const; void setHealthCheckSourceIp(const std::string &healthCheckSourceIp); std::string getRouterId() const; void setRouterId(const std::string &routerId); - std::string getOppositeRouterType() const; - void setOppositeRouterType(const std::string &oppositeRouterType); - std::string getName() const; - void setName(const std::string &name); - std::string getPricingCycle() const; - void setPricingCycle(const std::string &pricingCycle); private: std::string accessPointId_; - std::string oppositeRouterId_; std::string oppositeAccessPointId_; long resourceOwnerId_; + std::string spec_; + std::string resourceGroupId_; + int period_; + std::string oppositeRegionId_; + long ownerId_; + std::string oppositeInterfaceOwnerId_; + std::vector tags_; + bool autoRenew_; + std::string oppositeRouterType_; + std::string name_; + std::string pricingCycle_; + std::string oppositeRouterId_; std::string role_; std::string clientToken_; std::string healthCheckTargetIp_; std::string description_; - std::string spec_; bool fastLinkMode_; std::string regionId_; std::string oppositeInterfaceId_; std::string instanceChargeType_; - int period_; bool autoPay_; + std::string promotionOptionNo_; std::string availableZoneId_; std::string resourceOwnerAccount_; - std::string oppositeRegionId_; std::string ownerAccount_; - long ownerId_; - std::string oppositeInterfaceOwnerId_; std::string routerType_; std::string healthCheckSourceIp_; std::string routerId_; - std::string oppositeRouterType_; - std::string name_; - std::string pricingCycle_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/CreateSnatEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateSnatEntryRequest.h index 0383cebea..563b32d28 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateSnatEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateSnatEntryRequest.h @@ -44,6 +44,8 @@ public: void setRegionId(const std::string ®ionId); int getEipAffinity() const; void setEipAffinity(int eipAffinity); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -54,6 +56,8 @@ public: void setOwnerId(long ownerId); std::string getSnatEntryName() const; void setSnatEntryName(const std::string &snatEntryName); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); private: long resourceOwnerId_; @@ -63,11 +67,13 @@ private: std::string sourceVSwitchId_; std::string regionId_; int eipAffinity_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string snatTableId_; long ownerId_; std::string snatEntryName_; + std::string networkInterfaceId_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h b/vpc/include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h index c3b85ac56..f4f1ff3be 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateSslVpnServerRequest.h @@ -46,8 +46,12 @@ public: void setIDaaSInstanceId(const std::string &iDaaSInstanceId); std::string getCipher() const; void setCipher(const std::string &cipher); + std::string getIDaaSApplicationId() const; + void setIDaaSApplicationId(const std::string &iDaaSApplicationId); std::string getClientIpPool() const; void setClientIpPool(const std::string &clientIpPool); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); bool getCompress() const; @@ -74,7 +78,9 @@ private: bool enableMultiFactorAuth_; std::string iDaaSInstanceId_; std::string cipher_; + std::string iDaaSApplicationId_; std::string clientIpPool_; + bool dryRun_; std::string resourceOwnerAccount_; bool compress_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRequest.h b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRequest.h index 47cc06d35..29e6444f9 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRequest.h @@ -32,15 +32,21 @@ public: std::string action; std::string sourceCidrBlock; std::string protocol; + std::string ipVersion; std::string destinationPortRange; int priority; std::string destinationCidrBlock; std::string sourcePortRange; }; + struct Tag { + std::string key; + std::string value; + }; struct EgressRules { std::string action; std::string sourceCidrBlock; std::string protocol; + std::string ipVersion; std::string destinationPortRange; int priority; std::string destinationCidrBlock; @@ -60,6 +66,8 @@ public: void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); std::vector getEgressRules() const; void setEgressRules(const std::vector &egressRules); bool getDryRun() const; @@ -80,6 +88,7 @@ private: std::string trafficMirrorFilterName_; std::string resourceGroupId_; std::string regionId_; + std::vector tag_; std::vector egressRules_; bool dryRun_; std::string resourceOwnerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesRequest.h b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesRequest.h index 6b04a19a4..d0e0c247f 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorFilterRulesRequest.h @@ -32,6 +32,7 @@ public: std::string action; std::string sourceCidrBlock; std::string protocol; + std::string ipVersion; std::string destinationPortRange; int priority; std::string destinationCidrBlock; @@ -41,6 +42,7 @@ public: std::string action; std::string sourceCidrBlock; std::string protocol; + std::string ipVersion; std::string destinationPortRange; int priority; std::string destinationCidrBlock; diff --git a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionRequest.h index c65060de0..0e6388101 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateTrafficMirrorSessionRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateTrafficMirrorSessionRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; CreateTrafficMirrorSessionRequest(); ~CreateTrafficMirrorSessionRequest(); std::string getTrafficMirrorTargetType() const; @@ -48,6 +52,8 @@ public: void setTrafficMirrorSessionDescription(const std::string &trafficMirrorSessionDescription); std::vector getTrafficMirrorSourceIds() const; void setTrafficMirrorSourceIds(const std::vector &trafficMirrorSourceIds); + std::vector getTag() const; + void setTag(const std::vector &tag); bool getDryRun() const; void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; @@ -66,6 +72,8 @@ public: void setPacketLength(int packetLength); int getVirtualNetworkId() const; void setVirtualNetworkId(int virtualNetworkId); + int getTrafficMirrorSourceTruncateMode() const; + void setTrafficMirrorSourceTruncateMode(int trafficMirrorSourceTruncateMode); private: std::string trafficMirrorTargetType_; @@ -77,6 +85,7 @@ private: std::string regionId_; std::string trafficMirrorSessionDescription_; std::vector trafficMirrorSourceIds_; + std::vector tag_; bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; @@ -86,6 +95,7 @@ private: std::string trafficMirrorFilterId_; int packetLength_; int virtualNetworkId_; + int trafficMirrorSourceTruncateMode_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/CreateVSwitchCidrReservationRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVSwitchCidrReservationRequest.h new file mode 100644 index 000000000..cdb06d5dc --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVSwitchCidrReservationRequest.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_VPC_MODEL_CREATEVSWITCHCIDRRESERVATIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHCIDRRESERVATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT CreateVSwitchCidrReservationRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + CreateVSwitchCidrReservationRequest(); + ~CreateVSwitchCidrReservationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getVSwitchCidrReservationType() const; + void setVSwitchCidrReservationType(const std::string &vSwitchCidrReservationType); + std::string getVSwitchCidrReservationDescription() const; + void setVSwitchCidrReservationDescription(const std::string &vSwitchCidrReservationDescription); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getVSwitchCidrReservationName() const; + void setVSwitchCidrReservationName(const std::string &vSwitchCidrReservationName); + std::string getIpVersion() const; + void setIpVersion(const std::string &ipVersion); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getVSwitchCidrReservationMask() const; + void setVSwitchCidrReservationMask(const std::string &vSwitchCidrReservationMask); + std::string getVSwitchCidrReservationCidr() const; + void setVSwitchCidrReservationCidr(const std::string &vSwitchCidrReservationCidr); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string vSwitchCidrReservationType_; + std::string vSwitchCidrReservationDescription_; + std::string regionId_; + std::string vSwitchCidrReservationName_; + std::string ipVersion_; + std::vector tag_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; + std::string vSwitchCidrReservationMask_; + std::string vSwitchCidrReservationCidr_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHCIDRRESERVATIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/CreateVSwitchCidrReservationResult.h b/vpc/include/alibabacloud/vpc/model/CreateVSwitchCidrReservationResult.h new file mode 100644 index 000000000..9582f9fd3 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/CreateVSwitchCidrReservationResult.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_VPC_MODEL_CREATEVSWITCHCIDRRESERVATIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHCIDRRESERVATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT CreateVSwitchCidrReservationResult : public ServiceResult + { + public: + + + CreateVSwitchCidrReservationResult(); + explicit CreateVSwitchCidrReservationResult(const std::string &payload); + ~CreateVSwitchCidrReservationResult(); + std::string getVSwitchCidrReservationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string vSwitchCidrReservationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_CREATEVSWITCHCIDRRESERVATIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h index 3a2f6617c..952766c61 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVSwitchRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateVSwitchRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; CreateVSwitchRequest(); ~CreateVSwitchRequest(); long getResourceOwnerId() const; @@ -38,6 +42,8 @@ public: void setDescription(const std::string &description); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -62,6 +68,7 @@ private: std::string clientToken_; std::string description_; std::string regionId_; + std::vector tag_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVcoRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVcoRouteEntryRequest.h index 76f898eee..bd5c507d9 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVcoRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVcoRouteEntryRequest.h @@ -38,6 +38,8 @@ public: void setDescription(const std::string &description); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -58,6 +60,7 @@ private: std::string clientToken_; std::string description_; std::string regionId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; int weight_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h index 8cdca2a43..2b59d296b 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVirtualBorderRouterRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateVirtualBorderRouterRequest : public RpcServiceRequest { public: + struct Tags { + std::string value; + std::string key; + }; CreateVirtualBorderRouterRequest(); ~CreateVirtualBorderRouterRequest(); long getResourceOwnerId() const; @@ -46,6 +50,8 @@ public: void setPeerGatewayIp(const std::string &peerGatewayIp); std::string getPeerIpv6GatewayIp() const; void setPeerIpv6GatewayIp(const std::string &peerIpv6GatewayIp); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getPeeringSubnetMask() const; void setPeeringSubnetMask(const std::string &peeringSubnetMask); std::string getRegionId() const; @@ -62,6 +68,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::vector getTags() const; + void setTags(const std::vector &tags); std::string getPhysicalConnectionId() const; void setPhysicalConnectionId(const std::string &physicalConnectionId); std::string getLocalIpv6GatewayIp() const; @@ -80,6 +88,7 @@ private: std::string description_; std::string peerGatewayIp_; std::string peerIpv6GatewayIp_; + std::string resourceGroupId_; std::string peeringSubnetMask_; std::string regionId_; std::string localGatewayIp_; @@ -88,6 +97,7 @@ private: long bandwidth_; std::string ownerAccount_; long ownerId_; + std::vector tags_; std::string physicalConnectionId_; std::string localIpv6GatewayIp_; std::string name_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVirtualPhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVirtualPhysicalConnectionRequest.h index 8be1f7de4..ce7d00077 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVirtualPhysicalConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVirtualPhysicalConnectionRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateVirtualPhysicalConnectionRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; CreateVirtualPhysicalConnectionRequest(); ~CreateVirtualPhysicalConnectionRequest(); long getVpconnAliUid() const; @@ -46,6 +50,8 @@ public: void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); bool getDryRun() const; void setDryRun(bool dryRun); std::string getToken() const; @@ -64,6 +70,7 @@ private: std::string spec_; std::string resourceGroupId_; std::string regionId_; + std::vector tag_; bool dryRun_; std::string token_; std::string physicalConnectionId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointRequest.h index 7c1f66444..b3d1d2883 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointRequest.h @@ -28,16 +28,24 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateVpcGatewayEndpointRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; CreateVpcGatewayEndpointRequest(); ~CreateVpcGatewayEndpointRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken() const; void setClientToken(const std::string &clientToken); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getServiceName() const; void setServiceName(const std::string &serviceName); + std::vector getTag() const; + void setTag(const std::vector &tag); bool getDryRun() const; void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; @@ -58,8 +66,10 @@ public: private: long resourceOwnerId_; std::string clientToken_; + std::string resourceGroupId_; std::string regionId_; std::string serviceName_; + std::vector tag_; bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointResult.h b/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointResult.h index e5a1ad6c6..2156d7c19 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointResult.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpcGatewayEndpointResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud explicit CreateVpcGatewayEndpointResult(const std::string &payload); ~CreateVpcGatewayEndpointResult(); std::string getEndpointName()const; + std::string getResourceGroupId()const; std::string getServiceName()const; std::string getEndpointId()const; std::string getCreationTime()const; @@ -46,6 +47,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string endpointName_; + std::string resourceGroupId_; std::string serviceName_; std::string endpointId_; std::string creationTime_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpcPrefixListRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpcPrefixListRequest.h index b06a3fdf2..b7fec1d87 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpcPrefixListRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpcPrefixListRequest.h @@ -36,6 +36,10 @@ public: std::string cidr; std::string description; }; + struct Tag { + std::string key; + std::string value; + }; CreateVpcPrefixListRequest(); ~CreateVpcPrefixListRequest(); std::vector getPrefixListEntrys() const; @@ -54,6 +58,8 @@ public: void setIpVersion(const std::string &ipVersion); std::vector getPrefixListEntries() const; void setPrefixListEntries(const std::vector &prefixListEntries); + std::vector getTag() const; + void setTag(const std::vector &tag); bool getDryRun() const; void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; @@ -76,6 +82,7 @@ private: std::string regionId_; std::string ipVersion_; std::vector prefixListEntries_; + std::vector tag_; bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h index abf65fa9d..861dfa21b 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpcRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT CreateVpcRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; CreateVpcRequest(); ~CreateVpcRequest(); long getResourceOwnerId() const; @@ -38,18 +42,26 @@ public: void setEnableIpv6(bool enableIpv6); std::string getDescription() const; void setDescription(const std::string &description); + int getIpv4CidrMask() const; + void setIpv4CidrMask(int ipv4CidrMask); std::string getVpcName() const; void setVpcName(const std::string &vpcName); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getIpv4IpamPoolId() const; + void setIpv4IpamPoolId(const std::string &ipv4IpamPoolId); std::string getIpv6Isp() const; void setIpv6Isp(const std::string &ipv6Isp); std::string getUserCidr() const; void setUserCidr(const std::string &userCidr); + std::vector getTag() const; + void setTag(const std::vector &tag); bool getDryRun() const; void setDryRun(bool dryRun); + bool getEnableDnsHostname() const; + void setEnableDnsHostname(bool enableDnsHostname); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -66,12 +78,16 @@ private: std::string clientToken_; bool enableIpv6_; std::string description_; + int ipv4CidrMask_; std::string vpcName_; std::string resourceGroupId_; std::string regionId_; + std::string ipv4IpamPoolId_; std::string ipv6Isp_; std::string userCidr_; + std::vector tag_; bool dryRun_; + bool enableDnsHostname_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnAttachmentRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnAttachmentRequest.h index 144b974f8..11ed0bb97 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnAttachmentRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnAttachmentRequest.h @@ -32,38 +32,54 @@ public: std::string value; std::string key; }; + struct TunnelOptionsSpecification { + struct TunnelIpsecConfig { + std::string ipsecPfs; + long ipsecLifetime; + std::string ipsecAuthAlg; + std::string ipsecEncAlg; + }; + TunnelIpsecConfig tunnelIpsecConfig; + struct TunnelBgpConfig { + long localAsn; + std::string tunnelCidr; + std::string localBgpIp; + }; + TunnelBgpConfig tunnelBgpConfig; + std::string remoteCaCertificate; + struct TunnelIkeConfig { + std::string ikeVersion; + std::string ikeMode; + std::string ikeAuthAlg; + std::string psk; + std::string ikePfs; + long ikeLifetime; + std::string localId; + std::string ikeEncAlg; + std::string remoteId; + }; + TunnelIkeConfig tunnelIkeConfig; + bool enableNatTraversal; + bool enableDpd; + int tunnelIndex; + std::string customerGatewayId; + }; CreateVpnAttachmentRequest(); ~CreateVpnAttachmentRequest(); - std::string getIkeConfig() const; - void setIkeConfig(const std::string &ikeConfig); - bool getAutoConfigRoute() const; - void setAutoConfigRoute(bool autoConfigRoute); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getCenId() const; - void setCenId(const std::string &cenId); std::string getAttachType() const; void setAttachType(const std::string &attachType); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getIpsecConfig() const; - void setIpsecConfig(const std::string &ipsecConfig); std::string getBgpConfig() const; void setBgpConfig(const std::string &bgpConfig); bool getRouteTableAssociationEnabled() const; void setRouteTableAssociationEnabled(bool routeTableAssociationEnabled); std::string getNetworkType() const; void setNetworkType(const std::string &networkType); - std::string getHealthCheckConfig() const; - void setHealthCheckConfig(const std::string &healthCheckConfig); - std::string getCustomerGatewayId() const; - void setCustomerGatewayId(const std::string &customerGatewayId); std::string getLocalSubnet() const; void setLocalSubnet(const std::string &localSubnet); - std::string getRemoteCaCert() const; - void setRemoteCaCert(const std::string &remoteCaCert); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); bool getAutoPublishRouteEnabled() const; void setAutoPublishRouteEnabled(bool autoPublishRouteEnabled); bool getRouteTablePropagationEnabled() const; @@ -72,10 +88,8 @@ public: void setRemoteSubnet(const std::string &remoteSubnet); bool getEffectImmediately() const; void setEffectImmediately(bool effectImmediately); - std::string getResourceOwnerAccount() const; - void setResourceOwnerAccount(const std::string &resourceOwnerAccount); - std::string getOwnerAccount() const; - void setOwnerAccount(const std::string &ownerAccount); + bool getDryRun() const; + void setDryRun(bool dryRun); bool getEnableDpd() const; void setEnableDpd(bool enableDpd); std::vector getTags() const; @@ -86,34 +100,64 @@ public: void setZoneId(const std::string &zoneId); bool getEnableNatTraversal() const; void setEnableNatTraversal(bool enableNatTraversal); + std::string getIkeConfig() const; + void setIkeConfig(const std::string &ikeConfig); + bool getAutoConfigRoute() const; + void setAutoConfigRoute(bool autoConfigRoute); + std::string getCenId() const; + void setCenId(const std::string &cenId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getIpsecConfig() const; + void setIpsecConfig(const std::string &ipsecConfig); + std::string getHealthCheckConfig() const; + void setHealthCheckConfig(const std::string &healthCheckConfig); + std::string getCustomerGatewayId() const; + void setCustomerGatewayId(const std::string &customerGatewayId); + std::string getRemoteCaCert() const; + void setRemoteCaCert(const std::string &remoteCaCert); + bool getEnableTunnelsBgp() const; + void setEnableTunnelsBgp(bool enableTunnelsBgp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::vector getTunnelOptionsSpecification() const; + void setTunnelOptionsSpecification(const std::vector &tunnelOptionsSpecification); private: - std::string ikeConfig_; - bool autoConfigRoute_; long resourceOwnerId_; - std::string cenId_; std::string attachType_; - std::string clientToken_; - std::string ipsecConfig_; std::string bgpConfig_; bool routeTableAssociationEnabled_; std::string networkType_; - std::string healthCheckConfig_; - std::string customerGatewayId_; std::string localSubnet_; - std::string remoteCaCert_; - std::string regionId_; + std::string resourceGroupId_; bool autoPublishRouteEnabled_; bool routeTablePropagationEnabled_; std::string remoteSubnet_; bool effectImmediately_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; + bool dryRun_; bool enableDpd_; std::vector tags_; std::string name_; std::string zoneId_; bool enableNatTraversal_; + std::string ikeConfig_; + bool autoConfigRoute_; + std::string cenId_; + std::string clientToken_; + std::string ipsecConfig_; + std::string healthCheckConfig_; + std::string customerGatewayId_; + std::string remoteCaCert_; + bool enableTunnelsBgp_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector tunnelOptionsSpecification_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h index cf9a462fe..7648b85b3 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnConnectionRequest.h @@ -32,6 +32,38 @@ public: std::string value; std::string key; }; + struct TunnelOptionsSpecification { + struct TunnelIpsecConfig { + std::string ipsecPfs; + long ipsecLifetime; + std::string ipsecAuthAlg; + std::string ipsecEncAlg; + }; + TunnelIpsecConfig tunnelIpsecConfig; + std::string role; + struct TunnelBgpConfig { + long localAsn; + std::string tunnelCidr; + std::string localBgpIp; + }; + TunnelBgpConfig tunnelBgpConfig; + std::string remoteCaCertificate; + struct TunnelIkeConfig { + std::string ikeVersion; + std::string ikeMode; + std::string ikeAuthAlg; + std::string psk; + std::string ikePfs; + long ikeLifetime; + std::string localId; + std::string ikeEncAlg; + std::string remoteId; + }; + TunnelIkeConfig tunnelIkeConfig; + bool enableNatTraversal; + bool enableDpd; + std::string customerGatewayId; + }; CreateVpnConnectionRequest(); ~CreateVpnConnectionRequest(); std::string getIkeConfig() const; @@ -52,12 +84,16 @@ public: void setCustomerGatewayId(const std::string &customerGatewayId); std::string getLocalSubnet() const; void setLocalSubnet(const std::string &localSubnet); + bool getEnableTunnelsBgp() const; + void setEnableTunnelsBgp(bool enableTunnelsBgp); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getRemoteSubnet() const; void setRemoteSubnet(const std::string &remoteSubnet); bool getEffectImmediately() const; void setEffectImmediately(bool effectImmediately); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -70,6 +106,8 @@ public: void setEnableDpd(bool enableDpd); std::vector getTags() const; void setTags(const std::vector &tags); + std::vector getTunnelOptionsSpecification() const; + void setTunnelOptionsSpecification(const std::vector &tunnelOptionsSpecification); std::string getRemoteCaCertificate() const; void setRemoteCaCertificate(const std::string &remoteCaCertificate); std::string getName() const; @@ -87,15 +125,18 @@ private: std::string healthCheckConfig_; std::string customerGatewayId_; std::string localSubnet_; + bool enableTunnelsBgp_; std::string regionId_; std::string remoteSubnet_; bool effectImmediately_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string vpnGatewayId_; long ownerId_; bool enableDpd_; std::vector tags_; + std::vector tunnelOptionsSpecification_; std::string remoteCaCertificate_; std::string name_; bool enableNatTraversal_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h index a2d3e6ff2..ded0b8f39 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnGatewayRequest.h @@ -42,6 +42,8 @@ public: void setEnableIpsec(bool enableIpsec); std::string getNetworkType() const; void setNetworkType(const std::string &networkType); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getInstanceChargeType() const; @@ -56,6 +58,8 @@ public: void setBandwidth(int bandwidth); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + std::string getDisasterRecoveryVSwitchId() const; + void setDisasterRecoveryVSwitchId(const std::string &disasterRecoveryVSwitchId); long getOwnerId() const; void setOwnerId(long ownerId); std::string getVpnType() const; @@ -78,6 +82,7 @@ private: std::string clientToken_; bool enableIpsec_; std::string networkType_; + std::string resourceGroupId_; std::string regionId_; std::string instanceChargeType_; int period_; @@ -85,6 +90,7 @@ private: std::string resourceOwnerAccount_; int bandwidth_; std::string ownerAccount_; + std::string disasterRecoveryVSwitchId_; long ownerId_; std::string vpnType_; std::vector tags_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h index 36f32d054..02658039e 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnPbrRouteEntryRequest.h @@ -42,6 +42,8 @@ public: void setPublishVpc(bool publishVpc); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -68,6 +70,7 @@ private: std::string description_; bool publishVpc_; std::string regionId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; int weight_; diff --git a/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.h index c8df24ab0..caaa7d0e9 100644 --- a/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/CreateVpnRouteEntryRequest.h @@ -40,6 +40,8 @@ public: void setPublishVpc(bool publishVpc); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -63,6 +65,7 @@ private: std::string description_; bool publishVpc_; std::string regionId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; int weight_; diff --git a/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosQueueRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosQueueRequest.h new file mode 100644 index 000000000..170fc7dd8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosQueueRequest.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_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSQUEUEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSQUEUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteExpressConnectTrafficQosQueueRequest : public RpcServiceRequest { +public: + DeleteExpressConnectTrafficQosQueueRequest(); + ~DeleteExpressConnectTrafficQosQueueRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getQueueId() const; + void setQueueId(const std::string &queueId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string clientToken_; + std::string regionId_; + std::string qosId_; + std::string queueId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSQUEUEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceResult.h b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosQueueResult.h similarity index 66% rename from vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceResult.h rename to vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosQueueResult.h index 97ed240d8..4afc6b8a9 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceResult.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosQueueResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCERESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCERESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSQUEUERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSQUEUERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT AssociateGlobalAccelerationInstanceResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT DeleteExpressConnectTrafficQosQueueResult : public ServiceResult { public: - AssociateGlobalAccelerationInstanceResult(); - explicit AssociateGlobalAccelerationInstanceResult(const std::string &payload); - ~AssociateGlobalAccelerationInstanceResult(); + DeleteExpressConnectTrafficQosQueueResult(); + explicit DeleteExpressConnectTrafficQosQueueResult(const std::string &payload); + ~DeleteExpressConnectTrafficQosQueueResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSQUEUERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosRequest.h new file mode 100644 index 000000000..afbe8fb74 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosRequest.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_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteExpressConnectTrafficQosRequest : public RpcServiceRequest { +public: + DeleteExpressConnectTrafficQosRequest(); + ~DeleteExpressConnectTrafficQosRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string clientToken_; + std::string regionId_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosResult.h b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosResult.h new file mode 100644 index 000000000..ca7a2a569 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosResult.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_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteExpressConnectTrafficQosResult : public ServiceResult + { + public: + + + DeleteExpressConnectTrafficQosResult(); + explicit DeleteExpressConnectTrafficQosResult(const std::string &payload); + ~DeleteExpressConnectTrafficQosResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosRuleRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosRuleRequest.h new file mode 100644 index 000000000..e3a1650fc --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosRuleRequest.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_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSRULEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteExpressConnectTrafficQosRuleRequest : public RpcServiceRequest { +public: + DeleteExpressConnectTrafficQosRuleRequest(); + ~DeleteExpressConnectTrafficQosRuleRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getQueueId() const; + void setQueueId(const std::string &queueId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::string clientToken_; + std::string regionId_; + std::string qosId_; + std::string queueId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ruleId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSRULEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosRuleResult.h b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosRuleResult.h new file mode 100644 index 000000000..ea873a0cc --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteExpressConnectTrafficQosRuleResult.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_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSRULERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteExpressConnectTrafficQosRuleResult : public ServiceResult + { + public: + + + DeleteExpressConnectTrafficQosRuleResult(); + explicit DeleteExpressConnectTrafficQosRuleResult(const std::string &payload); + ~DeleteExpressConnectTrafficQosRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEEXPRESSCONNECTTRAFFICQOSRULERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteFailoverTestJobRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteFailoverTestJobRequest.h new file mode 100644 index 000000000..1b7ee24ea --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteFailoverTestJobRequest.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_VPC_MODEL_DELETEFAILOVERTESTJOBREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEFAILOVERTESTJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DeleteFailoverTestJobRequest : public RpcServiceRequest { +public: + DeleteFailoverTestJobRequest(); + ~DeleteFailoverTestJobRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string clientToken_; + std::string jobId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEFAILOVERTESTJOBREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecResult.h b/vpc/include/alibabacloud/vpc/model/DeleteFailoverTestJobResult.h similarity index 71% rename from vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecResult.h rename to vpc/include/alibabacloud/vpc/model/DeleteFailoverTestJobResult.h index 33ba0ca60..6d5cf2124 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecResult.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteFailoverTestJobResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYSPECRESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYSPECRESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEFAILOVERTESTJOBRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEFAILOVERTESTJOBRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT ModifyIpv6GatewaySpecResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT DeleteFailoverTestJobResult : public ServiceResult { public: - ModifyIpv6GatewaySpecResult(); - explicit ModifyIpv6GatewaySpecResult(const std::string &payload); - ~ModifyIpv6GatewaySpecResult(); + DeleteFailoverTestJobResult(); + explicit DeleteFailoverTestJobResult(const std::string &payload); + ~DeleteFailoverTestJobResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYSPECRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEFAILOVERTESTJOBRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIpv4GatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteIpv4GatewayRequest.h index 40add5c43..f2f013029 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteIpv4GatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteIpv4GatewayRequest.h @@ -46,6 +46,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getInternetMode() const; + void setInternetMode(const std::string &internetMode); private: long resourceOwnerId_; @@ -56,6 +58,7 @@ private: std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string internetMode_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIpv6GatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteIpv6GatewayRequest.h index 96aadf504..dfeb608fd 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteIpv6GatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteIpv6GatewayRequest.h @@ -32,23 +32,29 @@ public: ~DeleteIpv6GatewayRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getIpv6GatewayId() const; void setIpv6GatewayId(const std::string &ipv6GatewayId); private: long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string regionId_; std::string ipv6GatewayId_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/DeleteIpv6InternetBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteIpv6InternetBandwidthRequest.h index 7fe81e819..5db2b660b 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteIpv6InternetBandwidthRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteIpv6InternetBandwidthRequest.h @@ -32,10 +32,14 @@ public: ~DeleteIpv6InternetBandwidthRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); std::string getIpv6InternetBandwidthId() const; void setIpv6InternetBandwidthId(const std::string &ipv6InternetBandwidthId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -47,8 +51,10 @@ public: private: long resourceOwnerId_; + std::string clientToken_; std::string ipv6InternetBandwidthId_; std::string regionId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h index 2bb26c8b4..6e7d1a7fb 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteNetworkAclRequest.h @@ -38,8 +38,12 @@ public: void setRegionId(const std::string ®ionId); std::string getNetworkAclId() const; void setNetworkAclId(const std::string &networkAclId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); @@ -48,7 +52,9 @@ private: std::string clientToken_; std::string regionId_; std::string networkAclId_; + bool dryRun_; std::string resourceOwnerAccount_; + std::string ownerAccount_; long ownerId_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/DeleteRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntriesRequest.h index cf1805f25..a9d1b7250 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteRouteEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntriesRequest.h @@ -40,6 +40,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -52,6 +54,7 @@ public: private: long resourceOwnerId_; std::string regionId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h index 96394da3b..a0f1ac720 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteRouteEntryRequest.h @@ -42,6 +42,8 @@ public: void setNextHopId(const std::string &nextHopId); std::string getRouteTableId() const; void setRouteTableId(const std::string &routeTableId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getDestinationCidrBlock() const; @@ -60,6 +62,7 @@ private: std::string regionId_; std::string nextHopId_; std::string routeTableId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string destinationCidrBlock_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVSwitchCidrReservationRequest.h similarity index 57% rename from vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h rename to vpc/include/alibabacloud/vpc/model/DeleteVSwitchCidrReservationRequest.h index 2cb3a9f3d..728771580 100644 --- a/vpc/include/alibabacloud/vpc/model/AssociateGlobalAccelerationInstanceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteVSwitchCidrReservationRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHCIDRRESERVATIONREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHCIDRRESERVATIONREQUEST_H_ #include #include @@ -26,41 +26,38 @@ namespace AlibabaCloud { namespace Vpc { namespace Model { -class ALIBABACLOUD_VPC_EXPORT AssociateGlobalAccelerationInstanceRequest : public RpcServiceRequest { +class ALIBABACLOUD_VPC_EXPORT DeleteVSwitchCidrReservationRequest : public RpcServiceRequest { public: - AssociateGlobalAccelerationInstanceRequest(); - ~AssociateGlobalAccelerationInstanceRequest(); + DeleteVSwitchCidrReservationRequest(); + ~DeleteVSwitchCidrReservationRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getGlobalAccelerationInstanceId() const; - void setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); std::string getRegionId() const; void setRegionId(const std::string ®ionId); - std::string getBackendServerId() const; - void setBackendServerId(const std::string &backendServerId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getBackendServerRegionId() const; - void setBackendServerRegionId(const std::string &backendServerRegionId); - std::string getBackendServerType() const; - void setBackendServerType(const std::string &backendServerType); + std::string getVSwitchCidrReservationId() const; + void setVSwitchCidrReservationId(const std::string &vSwitchCidrReservationId); private: long resourceOwnerId_; - std::string globalAccelerationInstanceId_; + std::string clientToken_; std::string regionId_; - std::string backendServerId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string backendServerRegionId_; - std::string backendServerType_; + std::string vSwitchCidrReservationId_; }; } // namespace Model } // namespace Vpc } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_VPC_MODEL_ASSOCIATEGLOBALACCELERATIONINSTANCEREQUEST_H_ +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHCIDRRESERVATIONREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVSwitchCidrReservationResult.h b/vpc/include/alibabacloud/vpc/model/DeleteVSwitchCidrReservationResult.h new file mode 100644 index 000000000..817ef1153 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DeleteVSwitchCidrReservationResult.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_VPC_MODEL_DELETEVSWITCHCIDRRESERVATIONRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHCIDRRESERVATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DeleteVSwitchCidrReservationResult : public ServiceResult + { + public: + + + DeleteVSwitchCidrReservationResult(); + explicit DeleteVSwitchCidrReservationResult(const std::string &payload); + ~DeleteVSwitchCidrReservationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DELETEVSWITCHCIDRRESERVATIONRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVSwitchRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVSwitchRequest.h index d6c218169..762318216 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteVSwitchRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteVSwitchRequest.h @@ -34,6 +34,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -46,6 +48,7 @@ public: private: long resourceOwnerId_; std::string regionId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/DeleteVpcRequest.h b/vpc/include/alibabacloud/vpc/model/DeleteVpcRequest.h index ac073d21c..491856a62 100644 --- a/vpc/include/alibabacloud/vpc/model/DeleteVpcRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DeleteVpcRequest.h @@ -32,6 +32,8 @@ public: ~DeleteVpcRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); std::string getRegionId() const; void setRegionId(const std::string ®ionId); bool getForceDelete() const; @@ -49,6 +51,7 @@ public: private: long resourceOwnerId_; + std::string clientToken_; std::string regionId_; bool forceDelete_; bool dryRun_; diff --git a/vpc/include/alibabacloud/vpc/model/Describe95TrafficRequest.h b/vpc/include/alibabacloud/vpc/model/Describe95TrafficRequest.h new file mode 100644 index 000000000..21f6fd14c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/Describe95TrafficRequest.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_VPC_MODEL_DESCRIBE95TRAFFICREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBE95TRAFFICREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT Describe95TrafficRequest : public RpcServiceRequest { +public: + Describe95TrafficRequest(); + ~Describe95TrafficRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDay() const; + void setDay(const std::string &day); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string day_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBE95TRAFFICREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusResult.h b/vpc/include/alibabacloud/vpc/model/Describe95TrafficResult.h similarity index 51% rename from vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusResult.h rename to vpc/include/alibabacloud/vpc/model/Describe95TrafficResult.h index 92970a8c5..d7b2f40a8 100644 --- a/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusResult.h +++ b/vpc/include/alibabacloud/vpc/model/Describe95TrafficResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSRESULT_H_ -#define ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSRESULT_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBE95TRAFFICRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBE95TRAFFICRESULT_H_ #include #include @@ -29,37 +29,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VPC_EXPORT GetNatGatewayConvertStatusResult : public ServiceResult + class ALIBABACLOUD_VPC_EXPORT Describe95TrafficResult : public ServiceResult { public: - struct ConvertStep + struct Traffic95Summary { - std::string stepName; - std::string stepStatus; - std::string stepStartTime; + struct Traffic95Detail + { + std::string inBandwidth; + std::string outBandwidth; + std::string billBandwidth; + std::string time; + }; + std::vector traffic95DetailList; + std::string instanceId; + std::string fifthPeakBandwidth; + long bandwidth; + std::string minimumConsumeBandwidth; + std::string internetChargeType; }; - GetNatGatewayConvertStatusResult(); - explicit GetNatGatewayConvertStatusResult(const std::string &payload); - ~GetNatGatewayConvertStatusResult(); - std::string getDstNatType()const; - std::vector getConvertSteps()const; - std::string getBid()const; - std::string getNatGatewayId()const; - long getAliUid()const; + Describe95TrafficResult(); + explicit Describe95TrafficResult(const std::string &payload); + ~Describe95TrafficResult(); + Traffic95Summary getTraffic95Summary()const; protected: void parse(const std::string &payload); private: - std::string dstNatType_; - std::vector convertSteps_; - std::string bid_; - std::string natGatewayId_; - long aliUid_; + Traffic95Summary traffic95Summary_; }; } } } -#endif // !ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBE95TRAFFICRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h index a14b3cadf..4f8fc4511 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeAccessPointsRequest.h @@ -53,6 +53,8 @@ public: void setHostOperator(const std::string &hostOperator); std::string getName() const; void setName(const std::string &name); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: long resourceOwnerId_; @@ -65,6 +67,7 @@ private: std::vector filter_; std::string hostOperator_; std::string name_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h index 3f1009ccb..ff58868c7 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCommonBandwidthPackagesResult.h @@ -40,29 +40,37 @@ namespace AlibabaCloud std::string bandwidthPackageIpRelationStatus; std::string ipAddress; }; - std::string status; + struct Tag + { + std::string value; + std::string key; + }; std::string description; int serviceManaged; std::string resourceGroupId; std::string instanceChargeType; - std::string iSP; - std::string hasReservationData; - bool deletionProtection; std::string businessStatus; - std::string reservationInternetChargeType; - std::string internetChargeType; std::string name; std::string reservationOrderType; std::string bandwidth; std::string expiredTime; - std::string creationTime; - std::vector securityProtectionTypes; std::vector publicIpAddresses; std::string bandwidthPackageId; int ratio; - std::string regionId; std::string reservationActiveTime; std::string reservationBandwidth; + std::vector tags; + std::string status; + std::string zone; + std::string iSP; + std::string hasReservationData; + std::string bizType; + bool deletionProtection; + std::string reservationInternetChargeType; + std::string internetChargeType; + std::string creationTime; + std::vector securityProtectionTypes; + std::string regionId; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h index e935a5606..dee16ee94 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewayResult.h @@ -44,6 +44,7 @@ namespace AlibabaCloud ~DescribeCustomerGatewayResult(); std::string getDescription()const; std::string getCustomerGatewayId()const; + std::string getResourceGroupId()const; long getCreateTime()const; std::string getAuthKey()const; std::string getIpAddress()const; @@ -56,6 +57,7 @@ namespace AlibabaCloud private: std::string description_; std::string customerGatewayId_; + std::string resourceGroupId_; long createTime_; std::string authKey_; std::string ipAddress_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h index d7ac9d4b2..9630bce63 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysRequest.h @@ -40,6 +40,8 @@ public: void setCustomerGatewayId(const std::string &customerGatewayId); int getPageNumber() const; void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; @@ -57,6 +59,7 @@ private: long resourceOwnerId_; std::string customerGatewayId_; int pageNumber_; + std::string resourceGroupId_; std::string regionId_; int pageSize_; std::vector tag_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h index 70592a1c6..4380f3e82 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeCustomerGatewaysResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud }; std::string description; std::string customerGatewayId; + std::string resourceGroupId; long createTime; std::string authKey; std::string ipAddress; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h index f5d59364b..5dfb5a383 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesRequest.h @@ -40,86 +40,89 @@ public: void setPublicIpAddressPoolId(const std::string &publicIpAddressPoolId); std::string getFilter2Value() const; void setFilter2Value(const std::string &filter2Value); - bool getSecurityProtectionEnabled() const; - void setSecurityProtectionEnabled(bool securityProtectionEnabled); std::string getISP() const; void setISP(const std::string &iSP); std::string getEipName() const; void setEipName(const std::string &eipName); - std::string getAllocationId() const; - void setAllocationId(const std::string &allocationId); - bool getIncludeReservationData() const; - void setIncludeReservationData(bool includeReservationData); std::string getEipAddress() const; void setEipAddress(const std::string &eipAddress); - int getPageNumber() const; - void setPageNumber(int pageNumber); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); std::string getLockReason() const; void setLockReason(const std::string &lockReason); std::string getFilter1Key() const; void setFilter1Key(const std::string &filter1Key); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getAssociatedInstanceType() const; - void setAssociatedInstanceType(const std::string &associatedInstanceType); - int getPageSize() const; - void setPageSize(int pageSize); std::vector getTag() const; void setTag(const std::vector &tag); std::string getSegmentInstanceId() const; void setSegmentInstanceId(const std::string &segmentInstanceId); bool getDryRun() const; void setDryRun(bool dryRun); + std::string getFilter1Value() const; + void setFilter1Value(const std::string &filter1Value); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getStatus() const; + void setStatus(const std::string &status); + bool getSecurityProtectionEnabled() const; + void setSecurityProtectionEnabled(bool securityProtectionEnabled); + bool getServiceManaged() const; + void setServiceManaged(bool serviceManaged); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + bool getIncludeReservationData() const; + void setIncludeReservationData(bool includeReservationData); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAssociatedInstanceType() const; + void setAssociatedInstanceType(const std::string &associatedInstanceType); + int getPageSize() const; + void setPageSize(int pageSize); std::string getBandwidthPackageId() const; void setBandwidthPackageId(const std::string &bandwidthPackageId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); - std::string getFilter1Value() const; - void setFilter1Value(const std::string &filter1Value); std::string getFilter2Key() const; void setFilter2Key(const std::string &filter2Key); - long getOwnerId() const; - void setOwnerId(long ownerId); std::string getChargeType() const; void setChargeType(const std::string &chargeType); std::string getAssociatedInstanceId() const; void setAssociatedInstanceId(const std::string &associatedInstanceId); - std::string getStatus() const; - void setStatus(const std::string &status); private: long resourceOwnerId_; std::string publicIpAddressPoolId_; std::string filter2Value_; - bool securityProtectionEnabled_; std::string iSP_; std::string eipName_; - std::string allocationId_; - bool includeReservationData_; std::string eipAddress_; - int pageNumber_; std::string resourceGroupId_; std::string lockReason_; std::string filter1Key_; - std::string regionId_; - std::string associatedInstanceType_; - int pageSize_; std::vector tag_; std::string segmentInstanceId_; bool dryRun_; + std::string filter1Value_; + long ownerId_; + std::string status_; + bool securityProtectionEnabled_; + bool serviceManaged_; + std::string allocationId_; + bool includeReservationData_; + int pageNumber_; + std::string regionId_; + std::string associatedInstanceType_; + int pageSize_; std::string bandwidthPackageId_; std::string resourceOwnerAccount_; std::string ownerAccount_; - std::string filter1Value_; std::string filter2Key_; - long ownerId_; std::string chargeType_; std::string associatedInstanceId_; - std::string status_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h index 4d3675856..0cabab2df 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipAddressesResult.h @@ -70,12 +70,14 @@ namespace AlibabaCloud std::string iSP; std::string hasReservationData; std::string publicIpAddressPoolId; + std::string bizType; bool deletionProtection; std::string bandwidthPackageType; std::vector operationLocks; std::string bandwidthPackageBandwidth; std::string reservationInternetChargeType; std::string internetChargeType; + long serviceID; std::string allocationTime; std::string descritpion; std::string eipBandwidth; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h index 4d4c080ff..e2c0f7075 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipGatewayInfoRequest.h @@ -32,6 +32,8 @@ public: ~DescribeEipGatewayInfoRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -40,16 +42,14 @@ public: void setOwnerId(long ownerId); std::string getInstanceId() const; void setInstanceId(const std::string &instanceId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); private: long resourceOwnerId_; + std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; std::string instanceId_; - std::string regionId_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/DescribeEipSegmentResult.h b/vpc/include/alibabacloud/vpc/model/DescribeEipSegmentResult.h index 995b4739a..d11640119 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeEipSegmentResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeEipSegmentResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud std::string descritpion; std::string ipCount; std::string instanceId; + std::string zone; std::string creationTime; std::string regionId; std::string segment; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosQueueRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosQueueRequest.h new file mode 100644 index 000000000..1016e355f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosQueueRequest.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_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSQUEUEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSQUEUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeExpressConnectTrafficQosQueueRequest : public RpcServiceRequest { +public: + DescribeExpressConnectTrafficQosQueueRequest(); + ~DescribeExpressConnectTrafficQosQueueRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::vector getQueueIdList() const; + void setQueueIdList(const std::vector &queueIdList); + std::vector getQueueNameList() const; + void setQueueNameList(const std::vector &queueNameList); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string clientToken_; + std::string regionId_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector queueIdList_; + std::vector queueNameList_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSQUEUEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosQueueResult.h b/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosQueueResult.h new file mode 100644 index 000000000..8b69b09cc --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosQueueResult.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_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSQUEUERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSQUEUERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeExpressConnectTrafficQosQueueResult : public ServiceResult + { + public: + struct QueueListItem + { + struct RuleListItem + { + std::string status; + std::string ruleDescription; + int matchDscp; + int priority; + std::string ruleId; + std::string queueId; + std::string srcIPv6Cidr; + std::string dstPortRange; + int remarkingDscp; + std::string srcCidr; + std::string qosId; + std::string protocol; + std::string dstIPv6Cidr; + std::string srcPortRange; + std::string dstCidr; + std::string ruleName; + }; + std::string status; + std::vector ruleList; + std::string qosId; + std::string queueId; + std::string bandwidthPercent; + std::string queueName; + std::string queueDescription; + std::string queueType; + }; + + + DescribeExpressConnectTrafficQosQueueResult(); + explicit DescribeExpressConnectTrafficQosQueueResult(const std::string &payload); + ~DescribeExpressConnectTrafficQosQueueResult(); + std::vector getQueueList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector queueList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSQUEUERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosRequest.h new file mode 100644 index 000000000..151510c32 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosRequest.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_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeExpressConnectTrafficQosRequest : public RpcServiceRequest { +public: + struct Tags { + std::string key; + std::string value; + }; + DescribeExpressConnectTrafficQosRequest(); + ~DescribeExpressConnectTrafficQosRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::vector getQosIdList() const; + void setQosIdList(const std::vector &qosIdList); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getTags() const; + void setTags(const std::vector &tags); + std::vector getQosNameList() const; + void setQosNameList(const std::vector &qosNameList); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string clientToken_; + std::string resourceGroupId_; + std::string nextToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector qosIdList_; + long ownerId_; + std::vector tags_; + std::vector qosNameList_; + int maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosResult.h b/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosResult.h new file mode 100644 index 000000000..a0540cdba --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosResult.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_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeExpressConnectTrafficQosResult : public ServiceResult + { + public: + struct QosListItem + { + struct AssociatedInstanceListItem + { + std::string instanceId; + std::string instanceStatus; + int instanceProgressing; + std::string instanceType; + }; + struct QueueListItem + { + std::string status; + std::string qosId; + std::string queueId; + std::string bandwidthPercent; + std::string queueName; + std::string queueDescription; + std::string queueType; + }; + struct TagsItem + { + std::string value; + std::string key; + }; + std::string status; + std::string resourceGroupId; + std::string qosId; + std::string qosName; + std::vector associatedInstanceList; + std::vector tags; + std::string qosDescription; + int progressing; + std::vector queueList; + }; + + + DescribeExpressConnectTrafficQosResult(); + explicit DescribeExpressConnectTrafficQosResult(const std::string &payload); + ~DescribeExpressConnectTrafficQosResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getQosList()const; + std::string getCount()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + std::vector qosList_; + std::string count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosRuleRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosRuleRequest.h new file mode 100644 index 000000000..186dbcaaf --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosRuleRequest.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_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSRULEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeExpressConnectTrafficQosRuleRequest : public RpcServiceRequest { +public: + DescribeExpressConnectTrafficQosRuleRequest(); + ~DescribeExpressConnectTrafficQosRuleRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getRuleIdList() const; + void setRuleIdList(const std::vector &ruleIdList); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getQueueId() const; + void setQueueId(const std::string &queueId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getRuleNameList() const; + void setRuleNameList(const std::vector &ruleNameList); + +private: + std::string clientToken_; + std::vector ruleIdList_; + std::string regionId_; + std::string qosId_; + std::string queueId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector ruleNameList_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSRULEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosRuleResult.h b/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosRuleResult.h new file mode 100644 index 000000000..d58a1d0b2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeExpressConnectTrafficQosRuleResult.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_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSRULERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeExpressConnectTrafficQosRuleResult : public ServiceResult + { + public: + struct RuleListItem + { + std::string status; + std::string ruleDescription; + int matchDscp; + int priority; + std::string ruleId; + std::string queueId; + std::string srcIPv6Cidr; + std::string dstPortRange; + int remarkingDscp; + std::string srcCidr; + std::string qosId; + std::string protocol; + std::string dstIPv6Cidr; + std::string srcPortRange; + std::string dstCidr; + std::string ruleName; + }; + + + DescribeExpressConnectTrafficQosRuleResult(); + explicit DescribeExpressConnectTrafficQosRuleResult(const std::string &payload); + ~DescribeExpressConnectTrafficQosRuleResult(); + std::vector getRuleList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ruleList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEEXPRESSCONNECTTRAFFICQOSRULERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeFailoverTestJobRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeFailoverTestJobRequest.h new file mode 100644 index 000000000..fd8dc6d40 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeFailoverTestJobRequest.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_VPC_MODEL_DESCRIBEFAILOVERTESTJOBREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEFAILOVERTESTJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeFailoverTestJobRequest : public RpcServiceRequest { +public: + DescribeFailoverTestJobRequest(); + ~DescribeFailoverTestJobRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string clientToken_; + std::string jobId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEFAILOVERTESTJOBREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeFailoverTestJobResult.h b/vpc/include/alibabacloud/vpc/model/DescribeFailoverTestJobResult.h new file mode 100644 index 000000000..ae4e2ec2c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeFailoverTestJobResult.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_VPC_MODEL_DESCRIBEFAILOVERTESTJOBRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEFAILOVERTESTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeFailoverTestJobResult : public ServiceResult + { + public: + struct FailoverTestJobModel + { + std::string status; + std::string description; + std::string jobType; + std::string jobDuration; + std::vector resourceId; + std::string startTime; + std::string resourceType; + std::string jobId; + std::string name; + std::string stopTime; + }; + + + DescribeFailoverTestJobResult(); + explicit DescribeFailoverTestJobResult(const std::string &payload); + ~DescribeFailoverTestJobResult(); + FailoverTestJobModel getFailoverTestJobModel()const; + + protected: + void parse(const std::string &payload); + private: + FailoverTestJobModel failoverTestJobModel_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEFAILOVERTESTJOBRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeFailoverTestJobsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeFailoverTestJobsRequest.h new file mode 100644 index 000000000..9311119d9 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeFailoverTestJobsRequest.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_VPC_MODEL_DESCRIBEFAILOVERTESTJOBSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEFAILOVERTESTJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeFailoverTestJobsRequest : public RpcServiceRequest { +public: + struct Filter { + std::string key; + }; + DescribeFailoverTestJobsRequest(); + ~DescribeFailoverTestJobsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string clientToken_; + std::string nextToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector filter_; + int maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEFAILOVERTESTJOBSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeFailoverTestJobsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeFailoverTestJobsResult.h new file mode 100644 index 000000000..0483495d2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeFailoverTestJobsResult.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_VPC_MODEL_DESCRIBEFAILOVERTESTJOBSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEFAILOVERTESTJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeFailoverTestJobsResult : public ServiceResult + { + public: + struct FailoverTestJobListItem + { + std::string status; + std::string description; + std::string jobType; + std::string jobDuration; + std::vector resourceId; + std::string startTime; + std::string resourceType; + std::string jobId; + std::string name; + std::string stopTime; + }; + + + DescribeFailoverTestJobsResult(); + explicit DescribeFailoverTestJobsResult(const std::string &payload); + ~DescribeFailoverTestJobsResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + int getCount()const; + std::vector getFailoverTestJobList()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int maxResults_; + int count_; + std::vector failoverTestJobList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEFAILOVERTESTJOBSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsResult.h index 6a5716ddd..717be7cc4 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeFlowLogsResult.h @@ -44,17 +44,23 @@ namespace AlibabaCloud std::string resourceGroupId; std::vector trafficPath; std::string projectName; + std::string ipVersion; + bool enableLogDelivery; + std::string trafficAnalyzerId; std::string resourceType; std::string flowLogId; std::string businessStatus; std::string flowLogName; std::string logStoreName; std::string resourceId; + bool enableTrafficAnalyze; std::string serviceType; + std::string flowLogDeliverErrorMessage; std::string creationTime; std::string regionId; int aggregationInterval; std::vector tags; + std::string flowLogDeliverStatus; std::string trafficType; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesResult.h index 1e5e0cdbc..29133cd9b 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeForwardTableEntriesResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud std::string ipProtocol; std::string internalPort; std::string forwardEntryName; + std::string natGatewayId; std::string internalIp; std::string forwardTableId; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesRequest.h index f89fedfd4..9c33aa82d 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesRequest.h @@ -28,22 +28,36 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT DescribeIpv6AddressesRequest : public RpcServiceRequest { public: + struct Tag { + std::string key; + std::string value; + }; DescribeIpv6AddressesRequest(); ~DescribeIpv6AddressesRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + bool getServiceManaged() const; + void setServiceManaged(bool serviceManaged); std::string getIpv6InternetBandwidthId() const; void setIpv6InternetBandwidthId(const std::string &ipv6InternetBandwidthId); std::string getNetworkType() const; void setNetworkType(const std::string &networkType); + bool getIncludeReservationData() const; + void setIncludeReservationData(bool includeReservationData); int getPageNumber() const; void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getAssociatedInstanceType() const; void setAssociatedInstanceType(const std::string &associatedInstanceType); int getPageSize() const; void setPageSize(int pageSize); + std::string getAddressType() const; + void setAddressType(const std::string &addressType); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -65,12 +79,17 @@ public: private: long resourceOwnerId_; + bool serviceManaged_; std::string ipv6InternetBandwidthId_; std::string networkType_; + bool includeReservationData_; int pageNumber_; + std::string resourceGroupId_; std::string regionId_; std::string associatedInstanceType_; int pageSize_; + std::string addressType_; + std::vector tag_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesResult.h index 7e85251cd..a260d3083 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIpv6AddressesResult.h @@ -36,14 +36,26 @@ namespace AlibabaCloud { struct Ipv6InternetBandwidth { + std::string reservationOrderType; std::string instanceChargeType; int bandwidth; + bool hasReservationData; std::string ipv6InternetBandwidthId; + std::string reservationActiveTime; std::string businessStatus; + long reservationBandwidth; std::string internetChargeType; + std::string reservationInternetChargeType; + }; + struct Tag + { + std::string value; + std::string key; }; std::string status; std::string ipv6Isp; + std::string resourceGroupId; + int serviceManaged; std::string vSwitchId; std::string ipv6GatewayId; int realBandwidth; @@ -53,7 +65,10 @@ namespace AlibabaCloud std::string associatedInstanceId; std::string networkType; std::string ipv6AddressId; + std::string ipv6AddressDescription; + std::string addressType; std::string associatedInstanceType; + std::vector tags; std::string ipv6AddressName; std::string ipv6Address; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeResult.h index 569be2736..477b00baf 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewayAttributeResult.h @@ -43,6 +43,7 @@ namespace AlibabaCloud explicit DescribeIpv6GatewayAttributeResult(const std::string &payload); ~DescribeIpv6GatewayAttributeResult(); std::string getStatus()const; + std::string getGatewayRouteTableId()const; std::string getDescription()const; std::string getResourceGroupId()const; std::string getInstanceChargeType()const; @@ -50,6 +51,7 @@ namespace AlibabaCloud std::string getBusinessStatus()const; std::string getName()const; std::string getVpcId()const; + long getOwnerId()const; std::string getExpiredTime()const; std::string getCreationTime()const; std::string getRegionId()const; @@ -60,6 +62,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string status_; + std::string gatewayRouteTableId_; std::string description_; std::string resourceGroupId_; std::string instanceChargeType_; @@ -67,6 +70,7 @@ namespace AlibabaCloud std::string businessStatus_; std::string name_; std::string vpcId_; + long ownerId_; std::string expiredTime_; std::string creationTime_; std::string regionId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewaysResult.h index 7cd4badd8..1ee8dcd65 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewaysResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeIpv6GatewaysResult.h @@ -47,6 +47,7 @@ namespace AlibabaCloud std::string businessStatus; std::string name; std::string vpcId; + long ownerId; std::string expiredTime; std::string creationTime; std::string regionId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewayAssociateNetworkInterfacesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewayAssociateNetworkInterfacesRequest.h new file mode 100644 index 000000000..c1ae2ab10 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewayAssociateNetworkInterfacesRequest.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYASSOCIATENETWORKINTERFACESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYASSOCIATENETWORKINTERFACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeNatGatewayAssociateNetworkInterfacesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + struct Filter { + std::string key; + std::string value; + }; + DescribeNatGatewayAssociateNetworkInterfacesRequest(); + ~DescribeNatGatewayAssociateNetworkInterfacesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + std::string natGatewayId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector filter_; + int maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYASSOCIATENETWORKINTERFACESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewayAssociateNetworkInterfacesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewayAssociateNetworkInterfacesResult.h new file mode 100644 index 000000000..1c5e5e854 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewayAssociateNetworkInterfacesResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYASSOCIATENETWORKINTERFACESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYASSOCIATENETWORKINTERFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeNatGatewayAssociateNetworkInterfacesResult : public ServiceResult + { + public: + struct AssociateNetworkInterface + { + struct IPv4Set + { + bool primary; + std::string iPv4Address; + }; + std::string resourceId; + std::string tunnelIndex; + std::string resourceType; + std::string networkInterfaceId; + std::string resourceOwnerId; + std::vector iPv4Sets; + }; + + + DescribeNatGatewayAssociateNetworkInterfacesResult(); + explicit DescribeNatGatewayAssociateNetworkInterfacesResult(const std::string &payload); + ~DescribeNatGatewayAssociateNetworkInterfacesResult(); + int getTotalCount()const; + std::string getNextToken()const; + std::vector getAssociateNetworkInterfaces()const; + int getMaxResults()const; + int getCount()const; + std::string getNatGatewayId()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::vector associateNetworkInterfaces_; + int maxResults_; + int count_; + std::string natGatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBENATGATEWAYASSOCIATENETWORKINTERFACESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h index e9a2f6742..0b263811e 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNatGatewaysResult.h @@ -45,6 +45,11 @@ namespace AlibabaCloud std::string eniType; std::string vswitchId; }; + struct AccessMode + { + std::string tunnelType; + std::string modeValue; + }; struct IpList { std::string usingStatus; @@ -64,6 +69,7 @@ namespace AlibabaCloud std::string instanceChargeType; std::string eipBindMode; bool privateLinkEnabled; + std::string enableSessionLog; std::vector fullNatTableIds; std::vector bandwidthPackageIds; std::string businessStatus; @@ -86,6 +92,7 @@ namespace AlibabaCloud std::vector snatTableIds; std::string creationTime; bool icmpReplyEnabled; + AccessMode accessMode; std::string regionId; std::string spec; std::string natGatewayId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h index 293696a61..03cd3f3e1 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesRequest.h @@ -40,6 +40,8 @@ public: void setNetworkAclId(const std::string &networkAclId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); @@ -49,6 +51,7 @@ private: std::string regionId_; std::string networkAclId_; std::string resourceOwnerAccount_; + std::string ownerAccount_; long ownerId_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h index 3c647afce..56a0749d5 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclAttributesResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud std::string policy; std::string entryType; std::string description; + std::string ipVersion; std::string sourceCidrIp; std::string port; std::string networkAclEntryName; @@ -51,6 +52,7 @@ namespace AlibabaCloud std::string entryType; std::string description; std::string destinationCidrIp; + std::string ipVersion; std::string port; std::string networkAclEntryName; std::string protocol; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h index 00d806dbe..88418e492 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsRequest.h @@ -50,6 +50,8 @@ public: void setResourceId(const std::string &resourceId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); std::string getNetworkAclName() const; void setNetworkAclName(const std::string &networkAclName); long getOwnerId() const; @@ -70,6 +72,7 @@ private: std::string networkAclId_; std::string resourceId_; std::string resourceOwnerAccount_; + std::string ownerAccount_; std::string networkAclName_; long ownerId_; std::string resourceType_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h index 0b2690a64..1c24e0cd5 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeNetworkAclsResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud std::string policy; std::string entryType; std::string description; + std::string ipVersion; std::string sourceCidrIp; std::string port; std::string networkAclEntryName; @@ -51,6 +52,7 @@ namespace AlibabaCloud std::string entryType; std::string description; std::string destinationCidrIp; + std::string ipVersion; std::string port; std::string networkAclEntryName; std::string protocol; diff --git a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h index 146b29092..755285fe7 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionLOAResult.h @@ -43,16 +43,18 @@ namespace AlibabaCloud std::string pMName; }; std::string status; - std::string companyName; - std::string constructionTime; + std::string lineSPContactInfo; std::string instanceId; - std::string sI; std::string companyLocalizedName; std::vector pMInfo; std::string loaUrl; std::string lineCode; - std::string lineType; std::string lineLabel; + std::string companyName; + std::string constructionTime; + std::string lineServiceProvider; + std::string sI; + std::string lineType; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h index be3c90435..7e25e66c3 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribePhysicalConnectionsResult.h @@ -34,6 +34,11 @@ namespace AlibabaCloud public: struct PhysicalConnectionType { + struct TagsItem + { + std::string value; + std::string key; + }; std::string description; std::string endTime; int virtualPhysicalConnectionCount; @@ -50,9 +55,12 @@ namespace AlibabaCloud std::string loaStatus; std::string adLocation; long bandwidth; + std::string qosId; std::string reservationActiveTime; + std::vector tags; std::string vlanId; std::string status; + std::string adDetailLocation; std::string circuitCode; std::string orderMode; std::string expectSpec; diff --git a/vpc/include/alibabacloud/vpc/model/DescribePublicIpAddressRequest.h b/vpc/include/alibabacloud/vpc/model/DescribePublicIpAddressRequest.h index 53938492f..1e75cf534 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribePublicIpAddressRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribePublicIpAddressRequest.h @@ -40,6 +40,8 @@ public: void setResourceUid(long resourceUid); int getPageSize() const; void setPageSize(int pageSize); + std::string getIpVersion() const; + void setIpVersion(const std::string &ipVersion); std::string getBandwidth() const; void setBandwidth(const std::string &bandwidth); std::string getResourceOwnerAccount() const; @@ -59,6 +61,7 @@ private: std::string regionId_; long resourceUid_; int pageSize_; + std::string ipVersion_; std::string bandwidth_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h index 0ac51b405..f9d6f32e0 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteEntryListResult.h @@ -50,6 +50,7 @@ namespace AlibabaCloud int weight; }; std::string status; + std::string origin; std::string routeEntryId; std::string type; std::string description; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h index 178f256f2..dd0b94925 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListRequest.h @@ -62,6 +62,8 @@ public: void setRouterId(const std::string &routerId); std::string getVpcId() const; void setVpcId(const std::string &vpcId); + std::string getRouteTableType() const; + void setRouteTableType(const std::string &routeTableType); private: long resourceOwnerId_; @@ -78,6 +80,7 @@ private: std::string routerType_; std::string routerId_; std::string vpcId_; + std::string routeTableType_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h index 02ebdd268..34f50742e 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouteTableListResult.h @@ -45,6 +45,7 @@ namespace AlibabaCloud std::string resourceGroupId; std::vector vSwitchIds; std::string associateType; + bool routePropagationEnable; std::string routerId; std::string routeTableType; std::string vpcId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfaceAttributeResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfaceAttributeResult.h index 9ed653eb7..6b16139a8 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfaceAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfaceAttributeResult.h @@ -32,6 +32,11 @@ namespace AlibabaCloud class ALIBABACLOUD_VPC_EXPORT DescribeRouterInterfaceAttributeResult : public ServiceResult { public: + struct TagsItem + { + std::string value; + std::string key; + }; DescribeRouterInterfaceAttributeResult(); @@ -43,6 +48,7 @@ namespace AlibabaCloud std::string getOppositeRouterId()const; std::string getMessage()const; std::string getEndTime()const; + std::string getResourceGroupId()const; std::string getGmtModified()const; std::string getRouterId()const; std::string getBusinessStatus()const; @@ -53,9 +59,11 @@ namespace AlibabaCloud int getOppositeBandwidth()const; int getBandwidth()const; std::string getConnectedTime()const; + std::string getFastLinkMode()const; std::string getReservationActiveTime()const; int getHcThreshold()const; std::string getReservationBandwidth()const; + std::vector getTags()const; std::string getStatus()const; std::string getOppositeInterfaceOwnerId()const; std::string getOppositeRegionId()const; @@ -89,6 +97,7 @@ namespace AlibabaCloud std::string oppositeRouterId_; std::string message_; std::string endTime_; + std::string resourceGroupId_; std::string gmtModified_; std::string routerId_; std::string businessStatus_; @@ -99,9 +108,11 @@ namespace AlibabaCloud int oppositeBandwidth_; int bandwidth_; std::string connectedTime_; + std::string fastLinkMode_; std::string reservationActiveTime_; int hcThreshold_; std::string reservationBandwidth_; + std::vector tags_; std::string status_; std::string oppositeInterfaceOwnerId_; std::string oppositeRegionId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h index ac56b6f6f..f083ece0d 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT DescribeRouterInterfacesRequest : public RpcServiceRequest { public: + struct Tags { + std::string value; + std::string key; + }; struct Filter { std::string key; }; @@ -39,6 +43,8 @@ public: void setIncludeReservationData(bool includeReservationData); int getPageNumber() const; void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; @@ -47,6 +53,8 @@ public: void setResourceOwnerAccount(const std::string &resourceOwnerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::vector getTags() const; + void setTags(const std::vector &tags); std::vector getFilter() const; void setFilter(const std::vector &filter); @@ -54,10 +62,12 @@ private: long resourceOwnerId_; bool includeReservationData_; int pageNumber_; + std::string resourceGroupId_; std::string regionId_; int pageSize_; std::string resourceOwnerAccount_; long ownerId_; + std::vector tags_; std::vector filter_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h index e14c9080c..789c064ba 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeRouterInterfacesResult.h @@ -34,11 +34,17 @@ namespace AlibabaCloud public: struct RouterInterfaceType { + struct TagsItem + { + std::string value; + std::string key; + }; std::string oppositeInterfaceId; std::string oppositeInterfaceStatus; std::string description; std::string oppositeRouterId; std::string endTime; + std::string resourceGroupId; std::string routerId; std::string businessStatus; std::string name; @@ -51,6 +57,7 @@ namespace AlibabaCloud std::string reservationActiveTime; int hcThreshold; std::string reservationBandwidth; + std::vector tags; std::string status; std::string oppositeInterfaceOwnerId; std::string oppositeRegionId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h index a625efa17..ee5d611f3 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesRequest.h @@ -32,6 +32,8 @@ public: ~DescribeSnatTableEntriesRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::vector getNetworkInterfaceIds() const; + void setNetworkInterfaceIds(const std::vector &networkInterfaceIds); std::string getSourceCIDR() const; void setSourceCIDR(const std::string &sourceCIDR); std::string getSnatIp() const; @@ -61,6 +63,7 @@ public: private: long resourceOwnerId_; + std::vector networkInterfaceIds_; std::string sourceCIDR_; std::string snatIp_; int pageNumber_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesResult.h index 9a4cb6355..ad3e8de61 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSnatTableEntriesResult.h @@ -35,11 +35,14 @@ namespace AlibabaCloud struct SnatTableEntry { std::string status; + std::string eipAffinity; std::string sourceVSwitchId; std::string snatEntryName; std::string sourceCIDR; std::string snatEntryId; std::string snatIp; + std::string networkInterfaceId; + std::string natGatewayId; std::string snatTableId; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertResult.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertResult.h index 05d05cbbe..8d966e6db 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string getStatus()const; std::string getClientCert()const; long getEndTime()const; + std::string getResourceGroupId()const; long getCreateTime()const; std::string getClientKey()const; std::string getSslVpnClientCertId()const; @@ -55,6 +56,7 @@ namespace AlibabaCloud std::string status_; std::string clientCert_; long endTime_; + std::string resourceGroupId_; long createTime_; std::string clientKey_; std::string sslVpnClientCertId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsRequest.h index 9602a309c..31b5ba11c 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsRequest.h @@ -36,6 +36,8 @@ public: void setPageNumber(int pageNumber); std::string getSslVpnServerId() const; void setSslVpnServerId(const std::string &sslVpnServerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; @@ -55,6 +57,7 @@ private: long resourceOwnerId_; int pageNumber_; std::string sslVpnServerId_; + std::string resourceGroupId_; std::string regionId_; int pageSize_; std::string sslVpnClientCertId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsResult.h index d96d68e72..a1bdb0e9e 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientCertsResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string status; long endTime; + std::string resourceGroupId; long createTime; std::string sslVpnClientCertId; std::string sslVpnServerId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientsRequest.h new file mode 100644 index 000000000..ccb41b287 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientsRequest.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_VPC_MODEL_DESCRIBESSLVPNCLIENTSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeSslVpnClientsRequest : public RpcServiceRequest { +public: + DescribeSslVpnClientsRequest(); + ~DescribeSslVpnClientsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string vpnGatewayId_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientsResult.h new file mode 100644 index 000000000..a3d3ba089 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnClientsResult.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_VPC_MODEL_DESCRIBESSLVPNCLIENTSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeSslVpnClientsResult : public ServiceResult + { + public: + struct ClientInfo + { + std::string status; + long sendBytes; + std::string privateIp; + std::string ip; + std::string port; + long connectedTime; + std::string commonName; + long receiveBytes; + }; + + + DescribeSslVpnClientsResult(); + explicit DescribeSslVpnClientsResult(const std::string &payload); + ~DescribeSslVpnClientsResult(); + int getTotalCount()const; + int getPageSize()const; + std::string getVpnGatewayId()const; + int getPageNumber()const; + std::vector getClientInfoList()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::string vpnGatewayId_; + int pageNumber_; + std::vector clientInfoList_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBESSLVPNCLIENTSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersRequest.h index 2edd5f13a..4d3ff500d 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersRequest.h @@ -36,6 +36,8 @@ public: void setPageNumber(int pageNumber); std::string getSslVpnServerId() const; void setSslVpnServerId(const std::string &sslVpnServerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; @@ -55,6 +57,7 @@ private: long resourceOwnerId_; int pageNumber_; std::string sslVpnServerId_; + std::string resourceGroupId_; std::string regionId_; int pageSize_; std::string resourceOwnerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h index 7f094edac..7c14e02f0 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeSslVpnServersResult.h @@ -40,12 +40,15 @@ namespace AlibabaCloud std::string clientIpPool; std::string iDaaSInstanceId; int maxConnections; + std::string resourceGroupId; bool enableMultiFactorAuth; long createTime; int port; std::string sslVpnServerId; std::string iDaaSRegionId; + std::string iDaaSInstanceVersion; std::string name; + std::string iDaaSApplicationId; std::string internetIp; std::string proto; std::string vpnGatewayId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h index 5ccc5e564..cb37982a9 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchAttributesResult.h @@ -66,6 +66,7 @@ namespace AlibabaCloud long getOwnerId()const; std::string getCreationTime()const; std::string getVSwitchName()const; + bool getEnabledIpv6()const; std::string getIpv6CidrBlock()const; std::vector getCloudResources()const; std::vector getTags()const; @@ -88,6 +89,7 @@ namespace AlibabaCloud long ownerId_; std::string creationTime_; std::string vSwitchName_; + bool enabledIpv6_; std::string ipv6CidrBlock_; std::vector cloudResources_; std::vector tags_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h index c1ebf3c90..ece7bc1ad 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesRequest.h @@ -36,6 +36,8 @@ public: ~DescribeVSwitchesRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + bool getEnableIpv6() const; + void setEnableIpv6(bool enableIpv6); int getPageNumber() const; void setPageNumber(int pageNumber); std::string getResourceGroupId() const; @@ -71,6 +73,7 @@ public: private: long resourceOwnerId_; + bool enableIpv6_; int pageNumber_; std::string resourceGroupId_; std::string regionId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h index 2718d6b2b..5b8b8d32a 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVSwitchesResult.h @@ -58,6 +58,7 @@ namespace AlibabaCloud long ownerId; std::string creationTime; std::string vSwitchName; + bool enabledIpv6; std::string ipv6CidrBlock; std::vector tags; std::string shareType; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVcoRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVcoRouteEntriesResult.h index 1984dde0a..62b3b9d5d 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVcoRouteEntriesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVcoRouteEntriesResult.h @@ -44,6 +44,13 @@ namespace AlibabaCloud int weight; std::string community; std::string source; + std::vector nextHopTunnelIdList; + }; + struct VpnRouteCount + { + std::string routeEntryType; + int routeCount; + std::string source; }; @@ -54,6 +61,7 @@ namespace AlibabaCloud int getPageSize()const; int getPageNumber()const; std::vector getVcoRouteEntries()const; + std::vector getVpnRouteCounts()const; protected: void parse(const std::string &payload); @@ -62,6 +70,7 @@ namespace AlibabaCloud int pageSize_; int pageNumber_; std::vector vcoRouteEntries_; + std::vector vpnRouteCounts_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h index 87204b569..1a18a2b8d 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT DescribeVirtualBorderRoutersRequest : public RpcServiceRequest { public: + struct Tags { + std::string value; + std::string key; + }; struct Filter { std::string key; }; @@ -37,6 +41,8 @@ public: void setResourceOwnerId(long resourceOwnerId); int getPageNumber() const; void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; @@ -47,17 +53,21 @@ public: void setResourceOwnerAccount(const std::string &resourceOwnerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::vector getTags() const; + void setTags(const std::vector &tags); std::vector getFilter() const; void setFilter(const std::vector &filter); private: long resourceOwnerId_; int pageNumber_; + std::string resourceGroupId_; std::string regionId_; int pageSize_; bool includeCrossAccountVbr_; std::string resourceOwnerAccount_; long ownerId_; + std::vector tags_; std::vector filter_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h index a4634aaa8..77e52c489 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVirtualBorderRoutersResult.h @@ -58,10 +58,16 @@ namespace AlibabaCloud long cenOwnerId; std::string cenId; }; + struct TagsItem + { + std::string value; + std::string key; + }; long minRxInterval; std::string peerGatewayIp; std::string description; std::string routeTableId; + std::string resourceGroupId; std::vector associatedPhysicalConnections; std::string activationTime; std::string physicalConnectionId; @@ -75,13 +81,17 @@ namespace AlibabaCloud bool enableIpv6; std::string recoveryTime; std::string peeringIpv6SubnetMask; + std::string ecrAttatchStatus; + std::string ecrId; std::vector associatedCens; int bandwidth; std::string eccId; std::string localIpv6GatewayIp; + std::vector tags; int vlanId; std::string status; std::string circuitCode; + bool sitelinkEnable; long minTxInterval; std::string peerIpv6GatewayIp; long detectMultiplier; @@ -90,6 +100,7 @@ namespace AlibabaCloud std::string localGatewayIp; std::string creationTime; std::string accessPointId; + std::string ecrOwnerId; std::string pConnVbrExpireTime; std::string physicalConnectionBusinessStatus; std::string cloudBoxInstanceId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h index a0032a798..fb070fbc4 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcAttributeResult.h @@ -48,63 +48,84 @@ namespace AlibabaCloud std::string ipv6Isp; std::string ipv6CidrBlock; }; + struct Tag + { + std::string value; + std::string key; + }; + struct AssociatedPropagationSourcesItem + { + std::string status; + bool routePropagated; + std::string sourceType; + long sourceOwnerId; + std::string sourceInstanceId; + }; DescribeVpcAttributeResult(); explicit DescribeVpcAttributeResult(const std::string &payload); ~DescribeVpcAttributeResult(); - std::string getStatus()const; - bool getIsDefault()const; - std::string getDhcpOptionsSetStatus()const; + std::vector getAssociatedPropagationSources()const; std::string getDescription()const; bool getClassicLinkEnabled()const; std::string getResourceGroupId()const; - bool getSupportIpv4Gateway()const; - std::string getIpv4GatewayId()const; - std::vector getVSwitchIds()const; std::vector getSecondaryCidrBlocks()const; std::string getCidrBlock()const; std::vector getUserCidrs()const; std::string getNetworkAclNum()const; + std::string getDnsHostnameStatus()const; std::string getVRouterId()const; std::string getDhcpOptionsSetId()const; - std::string getVpcId()const; long getOwnerId()const; std::vector getAssociatedCens()const; + bool getEnabledIpv6()const; + std::vector getCloudResources()const; + std::vector getTags()const; + std::string getStatus()const; + bool getIsDefault()const; + std::string getDhcpOptionsSetStatus()const; + bool getSupportIpv4Gateway()const; + std::string getIpv4GatewayId()const; + std::vector getVSwitchIds()const; + std::string getVpcId()const; std::string getCreationTime()const; std::string getVpcName()const; std::string getRegionId()const; std::vector getIpv6CidrBlocks()const; std::string getIpv6CidrBlock()const; - std::vector getCloudResources()const; protected: void parse(const std::string &payload); private: - std::string status_; - bool isDefault_; - std::string dhcpOptionsSetStatus_; + std::vector associatedPropagationSources_; std::string description_; bool classicLinkEnabled_; std::string resourceGroupId_; - bool supportIpv4Gateway_; - std::string ipv4GatewayId_; - std::vector vSwitchIds_; std::vector secondaryCidrBlocks_; std::string cidrBlock_; std::vector userCidrs_; std::string networkAclNum_; + std::string dnsHostnameStatus_; std::string vRouterId_; std::string dhcpOptionsSetId_; - std::string vpcId_; long ownerId_; std::vector associatedCens_; + bool enabledIpv6_; + std::vector cloudResources_; + std::vector tags_; + std::string status_; + bool isDefault_; + std::string dhcpOptionsSetStatus_; + bool supportIpv4Gateway_; + std::string ipv4GatewayId_; + std::vector vSwitchIds_; + std::string vpcId_; std::string creationTime_; std::string vpcName_; std::string regionId_; std::vector ipv6CidrBlocks_; std::string ipv6CidrBlock_; - std::vector cloudResources_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h index 884327949..f62ee53cb 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcsRequest.h @@ -38,6 +38,8 @@ public: void setResourceOwnerId(long resourceOwnerId); long getVpcOwnerId() const; void setVpcOwnerId(long vpcOwnerId); + bool getEnableIpv6() const; + void setEnableIpv6(bool enableIpv6); int getPageNumber() const; void setPageNumber(int pageNumber); std::string getVpcName() const; @@ -70,6 +72,7 @@ public: private: long resourceOwnerId_; long vpcOwnerId_; + bool enableIpv6_; int pageNumber_; std::string vpcName_; std::string resourceGroupId_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h index cce2f92a5..2eb90140c 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpcsResult.h @@ -51,11 +51,13 @@ namespace AlibabaCloud std::vector routerTableIds; std::vector userCidrs; std::string networkAclNum; + std::string dnsHostnameStatus; bool advancedResource; std::string vRouterId; std::string dhcpOptionsSetId; std::vector natGatewayIds; long ownerId; + bool enabledIpv6; std::vector tags; std::string status; bool isDefault; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnAttachmentsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnAttachmentsResult.h index b03ed8077..23535daf1 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnAttachmentsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnAttachmentsResult.h @@ -44,6 +44,7 @@ namespace AlibabaCloud std::string instanceId; std::string transitRouterName; bool crossAccountAuthorized; + std::string tag; std::vector tags; std::string name; std::string transitRouterId; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionLogsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionLogsRequest.h index 18a5e3779..bb812d284 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionLogsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionLogsRequest.h @@ -50,6 +50,8 @@ public: void setOwnerId(long ownerId); std::string getVpnConnectionId() const; void setVpnConnectionId(const std::string &vpnConnectionId); + std::string getTunnelId() const; + void setTunnelId(const std::string &tunnelId); int getTo() const; void setTo(int to); @@ -64,6 +66,7 @@ private: std::string ownerAccount_; long ownerId_; std::string vpnConnectionId_; + std::string tunnelId_; int to_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h index d6a3c166e..d0e8b2799 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionResult.h @@ -77,12 +77,59 @@ namespace AlibabaCloud std::string value; std::string key; }; + struct TunnelOptions + { + struct TunnelBgpConfig + { + std::string localAsn; + std::string tunnelCidr; + std::string bgpStatus; + std::string peerBgpIp; + std::string peerAsn; + std::string localBgpIp; + }; + struct TunnelIkeConfig + { + std::string ikeAuthAlg; + std::string localId; + std::string ikeEncAlg; + std::string ikeVersion; + std::string ikeMode; + std::string ikeLifetime; + std::string psk; + std::string remoteId; + std::string ikePfs; + }; + struct TunnelIpsecConfig + { + std::string ipsecPfs; + std::string ipsecEncAlg; + std::string ipsecAuthAlg; + std::string ipsecLifetime; + }; + std::string status; + std::string customerGatewayId; + std::string tunnelId; + std::string zoneNo; + std::string role; + TunnelIkeConfig tunnelIkeConfig; + std::string internetIp; + TunnelBgpConfig tunnelBgpConfig; + std::string state; + std::string remoteCaCertificate; + int tunnelIndex; + std::string enableNatTraversal; + TunnelIpsecConfig tunnelIpsecConfig; + std::string enableDpd; + }; DescribeVpnConnectionResult(); explicit DescribeVpnConnectionResult(const std::string &payload); ~DescribeVpnConnectionResult(); std::string getAttachType()const; + std::string getResourceGroupId()const; + bool getEnableTunnelsBgp()const; bool getCrossAccountAuthorized()const; std::string getZoneNo()const; std::string getName()const; @@ -103,6 +150,7 @@ namespace AlibabaCloud std::string getCustomerGatewayId()const; long getCreateTime()const; std::string getTransitRouterName()const; + std::vector getTunnelOptionsSpecification()const; VcoHealthCheck getVcoHealthCheck()const; std::string getVpnGatewayId()const; std::string getState()const; @@ -114,6 +162,8 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string attachType_; + std::string resourceGroupId_; + bool enableTunnelsBgp_; bool crossAccountAuthorized_; std::string zoneNo_; std::string name_; @@ -134,6 +184,7 @@ namespace AlibabaCloud std::string customerGatewayId_; long createTime_; std::string transitRouterName_; + std::vector tunnelOptionsSpecification_; VcoHealthCheck vcoHealthCheck_; std::string vpnGatewayId_; std::string state_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h index dafcdf5f8..617be65d5 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsRequest.h @@ -40,6 +40,8 @@ public: void setCustomerGatewayId(const std::string &customerGatewayId); int getPageNumber() const; void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; @@ -61,6 +63,7 @@ private: long resourceOwnerId_; std::string customerGatewayId_; int pageNumber_; + std::string resourceGroupId_; std::string regionId_; int pageSize_; std::vector tag_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h index 2a695c450..880882940 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnConnectionsResult.h @@ -78,7 +78,54 @@ namespace AlibabaCloud std::string value; std::string key; }; + struct TunnelOptions + { + struct TunnelBgpConfig + { + std::string localAsn; + std::string tunnelCidr; + std::string bgpStatus; + std::string peerBgpIp; + std::string peerAsn; + std::string localBgpIp; + }; + struct TunnelIkeConfig + { + std::string ikeAuthAlg; + std::string localId; + std::string ikeEncAlg; + std::string ikeVersion; + std::string ikeMode; + std::string ikeLifetime; + std::string psk; + std::string remoteId; + std::string ikePfs; + }; + struct TunnelIpsecConfig + { + std::string ipsecPfs; + std::string ipsecEncAlg; + std::string ipsecAuthAlg; + std::string ipsecLifetime; + }; + std::string status; + std::string customerGatewayId; + std::string tunnelId; + std::string zoneNo; + std::string role; + TunnelIkeConfig tunnelIkeConfig; + std::string internetIp; + TunnelBgpConfig tunnelBgpConfig; + std::string state; + std::string remoteCaCertificate; + int tunnelIndex; + std::string enableNatTraversal; + TunnelIpsecConfig tunnelIpsecConfig; + std::string enableDpd; + }; std::string attachType; + std::string resourceGroupId; + bool enableTunnelsBgp; bool crossAccountAuthorized; std::string name; bool effectImmediately; @@ -97,6 +144,7 @@ namespace AlibabaCloud std::string customerGatewayId; long createTime; std::string transitRouterName; + std::vector tunnelOptionsSpecification; VcoHealthCheck vcoHealthCheck; std::string vpnGatewayId; std::string state; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayAvailableZonesRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayAvailableZonesRequest.h new file mode 100644 index 000000000..b36b18876 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayAvailableZonesRequest.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_VPC_MODEL_DESCRIBEVPNGATEWAYAVAILABLEZONESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYAVAILABLEZONESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DescribeVpnGatewayAvailableZonesRequest : public RpcServiceRequest { +public: + DescribeVpnGatewayAvailableZonesRequest(); + ~DescribeVpnGatewayAvailableZonesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSpec() const; + void setSpec(const std::string &spec); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + long resourceOwnerId_; + std::string spec_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYAVAILABLEZONESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayAvailableZonesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayAvailableZonesResult.h new file mode 100644 index 000000000..90c95d093 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayAvailableZonesResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYAVAILABLEZONESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYAVAILABLEZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DescribeVpnGatewayAvailableZonesResult : public ServiceResult + { + public: + struct AvailableZoneId + { + std::string zoneName; + std::string zoneId; + }; + + + DescribeVpnGatewayAvailableZonesResult(); + explicit DescribeVpnGatewayAvailableZonesResult(const std::string &payload); + ~DescribeVpnGatewayAvailableZonesResult(); + std::vector getAvailableZoneIdList()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector availableZoneIdList_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DESCRIBEVPNGATEWAYAVAILABLEZONESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h index 2a30a0586..cf61d21c2 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewayResult.h @@ -52,54 +52,64 @@ namespace AlibabaCloud DescribeVpnGatewayResult(); explicit DescribeVpnGatewayResult(const std::string &payload); ~DescribeVpnGatewayResult(); - std::string getStatus()const; std::string getIpsecVpn()const; std::string getSslVpn()const; std::string getVpnType()const; std::string getDescription()const; - bool getEnableBgp()const; + std::string getDisasterRecoveryVSwitchId()const; long getEndTime()const; - long getCreateTime()const; - std::string getVSwitchId()const; + std::string getResourceGroupId()const; bool getAutoPropagate()const; std::string getBusinessStatus()const; std::string getName()const; - std::string getVpcId()const; + std::vector getEniInstanceIds()const; std::string getInternetIp()const; - std::string getVpnGatewayId()const; - std::string getChargeType()const; + std::string getDisasterRecoveryInternetIp()const; std::string getNetworkType()const; - std::string getTag()const; - std::string getSpec()const; long getSslMaxConnections()const; std::vector getTags()const; ReservationData getReservationData()const; + std::string getStatus()const; + bool getEnableBgp()const; + long getCreateTime()const; + std::string getVSwitchId()const; + std::string getVpcId()const; + std::string getVpnGatewayId()const; + std::string getChargeType()const; + std::string getSslVpnInternetIp()const; + std::string getTag()const; + std::string getSpec()const; protected: void parse(const std::string &payload); private: - std::string status_; std::string ipsecVpn_; std::string sslVpn_; std::string vpnType_; std::string description_; - bool enableBgp_; + std::string disasterRecoveryVSwitchId_; long endTime_; - long createTime_; - std::string vSwitchId_; + std::string resourceGroupId_; bool autoPropagate_; std::string businessStatus_; std::string name_; - std::string vpcId_; + std::vector eniInstanceIds_; std::string internetIp_; - std::string vpnGatewayId_; - std::string chargeType_; + std::string disasterRecoveryInternetIp_; std::string networkType_; - std::string tag_; - std::string spec_; long sslMaxConnections_; std::vector tags_; ReservationData reservationData_; + std::string status_; + bool enableBgp_; + long createTime_; + std::string vSwitchId_; + std::string vpcId_; + std::string vpnGatewayId_; + std::string chargeType_; + std::string sslVpnInternetIp_; + std::string tag_; + std::string spec_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h index 7a0826e70..e618c1eab 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysRequest.h @@ -40,6 +40,8 @@ public: void setIncludeReservationData(bool includeReservationData); int getPageNumber() const; void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getPageSize() const; @@ -65,6 +67,7 @@ private: long resourceOwnerId_; bool includeReservationData_; int pageNumber_; + std::string resourceGroupId_; std::string regionId_; int pageSize_; std::vector tag_; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h index 767b37d64..16180f340 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnGatewaysResult.h @@ -49,28 +49,33 @@ namespace AlibabaCloud std::string value; std::string key; }; - std::string status; std::string ipsecVpn; std::string sslVpn; std::string vpnType; std::string description; - bool enableBgp; + std::string disasterRecoveryVSwitchId; long endTime; - long createTime; - std::string vSwitchId; + std::string resourceGroupId; bool autoPropagate; std::string businessStatus; std::string name; - std::string vpcId; + std::vector eniInstanceIds; std::string internetIp; - std::string vpnGatewayId; - std::string chargeType; + std::string disasterRecoveryInternetIp; std::string networkType; - std::string tag; - std::string spec; long sslMaxConnections; std::vector tags; ReservationData reservationData; + std::string status; + bool enableBgp; + long createTime; + std::string vSwitchId; + std::string vpcId; + std::string vpnGatewayId; + std::string chargeType; + std::string sslVpnInternetIp; + std::string tag; + std::string spec; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.h index 893ea6590..513d264dd 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnPbrRouteEntriesResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud int priority; long createTime; std::string routeSource; + std::string nextHopTunnelId; int weight; }; diff --git a/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h index db65841d8..7376a4b3c 100644 --- a/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h +++ b/vpc/include/alibabacloud/vpc/model/DescribeVpnRouteEntriesResult.h @@ -41,10 +41,17 @@ namespace AlibabaCloud std::string nextHop; std::string state; long createTime; + std::string nextHopTunnelId; int weight; std::string community; std::string source; }; + struct VpnRouteCount + { + std::string routeEntryType; + int routeCount; + std::string source; + }; DescribeVpnRouteEntriesResult(); @@ -54,6 +61,7 @@ namespace AlibabaCloud std::vector getVpnRouteEntries()const; int getPageSize()const; int getPageNumber()const; + std::vector getVpnRouteCounts()const; protected: void parse(const std::string &payload); @@ -62,6 +70,7 @@ namespace AlibabaCloud std::vector vpnRouteEntries_; int pageSize_; int pageNumber_; + std::vector vpnRouteCounts_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/DiagnoseVpnConnectionsRequest.h b/vpc/include/alibabacloud/vpc/model/DiagnoseVpnConnectionsRequest.h new file mode 100644 index 000000000..afeb4f0e5 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DiagnoseVpnConnectionsRequest.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_VPC_MODEL_DIAGNOSEVPNCONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_DIAGNOSEVPNCONNECTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT DiagnoseVpnConnectionsRequest : public RpcServiceRequest { +public: + DiagnoseVpnConnectionsRequest(); + ~DiagnoseVpnConnectionsRequest(); + std::vector getTunnelIds() const; + void setTunnelIds(const std::vector &tunnelIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVpnGatewayId() const; + void setVpnGatewayId(const std::string &vpnGatewayId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getVpnConnectionIds() const; + void setVpnConnectionIds(const std::vector &vpnConnectionIds); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::vector tunnelIds_; + long resourceOwnerId_; + std::string vpnGatewayId_; + int pageNumber_; + std::string regionId_; + std::vector vpnConnectionIds_; + int pageSize_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_DIAGNOSEVPNCONNECTIONSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/DiagnoseVpnConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/DiagnoseVpnConnectionsResult.h new file mode 100644 index 000000000..553ed3573 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/DiagnoseVpnConnectionsResult.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_VPC_MODEL_DIAGNOSEVPNCONNECTIONSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_DIAGNOSEVPNCONNECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT DiagnoseVpnConnectionsResult : public ServiceResult + { + public: + struct VpnConnection + { + std::string mismatchRemoteParam; + std::string failedReasonCode; + std::string failedReason; + std::string severity; + std::string vpnConnectionId; + long failedTime; + std::string tunnelId; + std::string mismatchLocalParam; + std::string sourceLog; + }; + + + DiagnoseVpnConnectionsResult(); + explicit DiagnoseVpnConnectionsResult(const std::string &payload); + ~DiagnoseVpnConnectionsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getVpnConnections()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector vpnConnections_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_DIAGNOSEVPNCONNECTIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/DissociateRouteTableFromGatewayRequest.h b/vpc/include/alibabacloud/vpc/model/DissociateRouteTableFromGatewayRequest.h index 5d5fe8c19..1277e6166 100644 --- a/vpc/include/alibabacloud/vpc/model/DissociateRouteTableFromGatewayRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DissociateRouteTableFromGatewayRequest.h @@ -40,6 +40,8 @@ public: void setGatewayId(const std::string &gatewayId); std::string getRouteTableId() const; void setRouteTableId(const std::string &routeTableId); + std::string getGatewayType() const; + void setGatewayType(const std::string &gatewayType); bool getDryRun() const; void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; @@ -55,6 +57,7 @@ private: std::string regionId_; std::string gatewayId_; std::string routeTableId_; + std::string gatewayType_; bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.h b/vpc/include/alibabacloud/vpc/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.h index ac2d7132f..bb3e6d1e1 100644 --- a/vpc/include/alibabacloud/vpc/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.h +++ b/vpc/include/alibabacloud/vpc/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.h @@ -32,32 +32,32 @@ public: ~DissociateRouteTablesFromVpcGatewayEndpointRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - bool getDryRun() const; - void setDryRun(bool dryRun); std::string getClientToken() const; void setClientToken(const std::string &clientToken); - std::string getResourceOwnerAccount() const; - void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getEndpointId() const; void setEndpointId(const std::string &endpointId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::vector getRouteTableIds() const; void setRouteTableIds(const std::vector &routeTableIds); private: long resourceOwnerId_; - bool dryRun_; std::string clientToken_; - std::string resourceOwnerAccount_; std::string endpointId_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string regionId_; std::vector routeTableIds_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h b/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h index 57c6f5efe..c6a0ff259 100644 --- a/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h +++ b/vpc/include/alibabacloud/vpc/model/DownloadVpnConnectionConfigResult.h @@ -53,11 +53,49 @@ namespace AlibabaCloud std::string ipsecAuthAlg; long ipsecLifetime; }; + struct TunnelConfig + { + struct IkeConfig1 + { + std::string ikeAuthAlg; + std::string localId; + std::string ikeEncAlg; + std::string ikeVersion; + std::string ikeMode; + long ikeLifetime; + std::string psk; + std::string remoteId; + std::string ikePfs; + }; + struct IpsecConfig2 + { + std::string ipsecPfs; + std::string ipsecEncAlg; + std::string ipsecAuthAlg; + long ipsecLifetime; + }; + IkeConfig1 ikeConfig1; + IpsecConfig2 ipsecConfig2; + std::string local; + std::string remote; + std::string tunnelId; + }; + struct BgpConfig + { + std::string localAsn; + std::string tunnelCidr; + std::string peerBgpIp; + std::string peerAsn; + std::string tunnelId; + std::string localBgpIp; + }; std::string localSubnet; + std::vector bgpConfigs; std::string remoteSubnet; IpsecConfig ipsecConfig; std::string remote; std::string local; + std::vector tunnelsConfig; IkeConfig ikeConfig; }; diff --git a/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h b/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h index ad342097b..65a111e3b 100644 --- a/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h +++ b/vpc/include/alibabacloud/vpc/model/EnablePhysicalConnectionRequest.h @@ -42,6 +42,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + bool getByPassSp() const; + void setByPassSp(bool byPassSp); std::string getPhysicalConnectionId() const; void setPhysicalConnectionId(const std::string &physicalConnectionId); @@ -52,6 +54,7 @@ private: std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + bool byPassSp_; std::string physicalConnectionId_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.h b/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.h index a03ae8020..2db7fdab7 100644 --- a/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.h +++ b/vpc/include/alibabacloud/vpc/model/GetDhcpOptionsSetResult.h @@ -46,6 +46,11 @@ namespace AlibabaCloud std::string vpcId; std::string associateStatus; }; + struct Tag + { + std::string value; + std::string key; + }; GetDhcpOptionsSetResult(); @@ -55,9 +60,12 @@ namespace AlibabaCloud std::string getDhcpOptionsSetId()const; DhcpOptions getDhcpOptions()const; long getOwnerId()const; + std::string getResourceGroupId()const; std::vector getAssociateVpcs()const; std::string getDhcpOptionsSetName()const; std::string getDhcpOptionsSetDescription()const; + std::string getCreationTime()const; + std::vector getTags()const; protected: void parse(const std::string &payload); @@ -66,9 +74,12 @@ namespace AlibabaCloud std::string dhcpOptionsSetId_; DhcpOptions dhcpOptions_; long ownerId_; + std::string resourceGroupId_; std::vector associateVpcs_; std::string dhcpOptionsSetName_; std::string dhcpOptionsSetDescription_; + std::string creationTime_; + std::vector tags_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h index bc5f0eb75..ec1b90957 100644 --- a/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/GetNatGatewayAttributeResult.h @@ -66,6 +66,18 @@ namespace AlibabaCloud { bool enabled; }; + struct LogDelivery + { + std::string deliverLogsErrorMessage; + std::string logDeliveryType; + std::string deliveryStatus; + std::string logDestination; + }; + struct AccessMode + { + std::string tunnelType; + std::string modeValue; + }; struct IpListItem { std::string usingStatus; @@ -77,52 +89,58 @@ namespace AlibabaCloud GetNatGatewayAttributeResult(); explicit GetNatGatewayAttributeResult(const std::string &payload); ~GetNatGatewayAttributeResult(); - std::string getStatus()const; - ForwardTable getForwardTable()const; std::string getDescription()const; std::string getResourceGroupId()const; - std::vector getIpList()const; bool getPrivateLinkEnabled()const; - std::string getPrivateLinkMode()const; + bool getEnableSessionLog()const; BillingConfig getBillingConfig()const; DeletionProtectionInfo getDeletionProtectionInfo()const; - SnatTable getSnatTable()const; - std::string getNatType()const; + LogDelivery getLogDelivery()const; std::string getBusinessStatus()const; std::string getName()const; - bool getEcsMetricEnabled()const; - std::string getVpcId()const; std::string getNetworkType()const; - FullNatTable getFullNatTable()const; std::string getExpiredTime()const; PrivateInfo getPrivateInfo()const; + std::string getStatus()const; + ForwardTable getForwardTable()const; + std::vector getIpList()const; + std::string getPrivateLinkMode()const; + SnatTable getSnatTable()const; + std::string getNatType()const; + bool getEcsMetricEnabled()const; + std::string getVpcId()const; + FullNatTable getFullNatTable()const; std::string getCreationTime()const; + AccessMode getAccessMode()const; std::string getRegionId()const; std::string getNatGatewayId()const; protected: void parse(const std::string &payload); private: - std::string status_; - ForwardTable forwardTable_; std::string description_; std::string resourceGroupId_; - std::vector ipList_; bool privateLinkEnabled_; - std::string privateLinkMode_; + bool enableSessionLog_; BillingConfig billingConfig_; DeletionProtectionInfo deletionProtectionInfo_; - SnatTable snatTable_; - std::string natType_; + LogDelivery logDelivery_; std::string businessStatus_; std::string name_; - bool ecsMetricEnabled_; - std::string vpcId_; std::string networkType_; - FullNatTable fullNatTable_; std::string expiredTime_; PrivateInfo privateInfo_; + std::string status_; + ForwardTable forwardTable_; + std::vector ipList_; + std::string privateLinkMode_; + SnatTable snatTable_; + std::string natType_; + bool ecsMetricEnabled_; + std::string vpcId_; + FullNatTable fullNatTable_; std::string creationTime_; + AccessMode accessMode_; std::string regionId_; std::string natGatewayId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecRequest.h b/vpc/include/alibabacloud/vpc/model/GetPublicIpAddressPoolServiceStatusRequest.h similarity index 72% rename from vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecRequest.h rename to vpc/include/alibabacloud/vpc/model/GetPublicIpAddressPoolServiceStatusRequest.h index cef3f177d..8b6495c11 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewaySpecRequest.h +++ b/vpc/include/alibabacloud/vpc/model/GetPublicIpAddressPoolServiceStatusRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYSPECREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYSPECREQUEST_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_GETPUBLICIPADDRESSPOOLSERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETPUBLICIPADDRESSPOOLSERVICESTATUSREQUEST_H_ #include #include @@ -26,16 +26,14 @@ namespace AlibabaCloud { namespace Vpc { namespace Model { -class ALIBABACLOUD_VPC_EXPORT ModifyIpv6GatewaySpecRequest : public RpcServiceRequest { +class ALIBABACLOUD_VPC_EXPORT GetPublicIpAddressPoolServiceStatusRequest : public RpcServiceRequest { public: - ModifyIpv6GatewaySpecRequest(); - ~ModifyIpv6GatewaySpecRequest(); + GetPublicIpAddressPoolServiceStatusRequest(); + ~GetPublicIpAddressPoolServiceStatusRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); std::string getClientToken() const; void setClientToken(const std::string &clientToken); - std::string getSpec() const; - void setSpec(const std::string &spec); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; @@ -44,20 +42,16 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getIpv6GatewayId() const; - void setIpv6GatewayId(const std::string &ipv6GatewayId); private: long resourceOwnerId_; std::string clientToken_; - std::string spec_; std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string ipv6GatewayId_; }; } // namespace Model } // namespace Vpc } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYIPV6GATEWAYSPECREQUEST_H_ +#endif // !ALIBABACLOUD_VPC_MODEL_GETPUBLICIPADDRESSPOOLSERVICESTATUSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetPublicIpAddressPoolServiceStatusResult.h b/vpc/include/alibabacloud/vpc/model/GetPublicIpAddressPoolServiceStatusResult.h new file mode 100644 index 000000000..d15a72e0d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetPublicIpAddressPoolServiceStatusResult.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_VPC_MODEL_GETPUBLICIPADDRESSPOOLSERVICESTATUSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETPUBLICIPADDRESSPOOLSERVICESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetPublicIpAddressPoolServiceStatusResult : public ServiceResult + { + public: + + + GetPublicIpAddressPoolServiceStatusResult(); + explicit GetPublicIpAddressPoolServiceStatusResult(const std::string &payload); + ~GetPublicIpAddressPoolServiceStatusResult(); + bool getEnabled()const; + + protected: + void parse(const std::string &payload); + private: + bool enabled_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETPUBLICIPADDRESSPOOLSERVICESTATUSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusRequest.h b/vpc/include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusRequest.h index 8f93802cf..609174ec6 100644 --- a/vpc/include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusRequest.h +++ b/vpc/include/alibabacloud/vpc/model/GetTrafficMirrorServiceStatusRequest.h @@ -30,10 +30,25 @@ class ALIBABACLOUD_VPC_EXPORT GetTrafficMirrorServiceStatusRequest : public RpcS public: GetTrafficMirrorServiceStatusRequest(); ~GetTrafficMirrorServiceStatusRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; long ownerId_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/GetVSwitchCidrReservationUsageRequest.h b/vpc/include/alibabacloud/vpc/model/GetVSwitchCidrReservationUsageRequest.h new file mode 100644 index 000000000..020c9d49f --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetVSwitchCidrReservationUsageRequest.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_VPC_MODEL_GETVSWITCHCIDRRESERVATIONUSAGEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_GETVSWITCHCIDRRESERVATIONUSAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT GetVSwitchCidrReservationUsageRequest : public RpcServiceRequest { +public: + GetVSwitchCidrReservationUsageRequest(); + ~GetVSwitchCidrReservationUsageRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getMaxResults() const; + void setMaxResults(long maxResults); + std::string getVSwitchCidrReservationId() const; + void setVSwitchCidrReservationId(const std::string &vSwitchCidrReservationId); + +private: + long resourceOwnerId_; + std::string nextToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + long maxResults_; + std::string vSwitchCidrReservationId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_GETVSWITCHCIDRRESERVATIONUSAGEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/GetVSwitchCidrReservationUsageResult.h b/vpc/include/alibabacloud/vpc/model/GetVSwitchCidrReservationUsageResult.h new file mode 100644 index 000000000..ed42a34da --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/GetVSwitchCidrReservationUsageResult.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_VPC_MODEL_GETVSWITCHCIDRRESERVATIONUSAGERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_GETVSWITCHCIDRRESERVATIONUSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT GetVSwitchCidrReservationUsageResult : public ServiceResult + { + public: + struct VSwitchCidrReservationUsage + { + std::string ipPrefixCidr; + std::string resourceId; + std::string vSwitchId; + std::string vSwitchCidrReservationId; + std::string resourceType; + std::string ipPrefixId; + }; + + + GetVSwitchCidrReservationUsageResult(); + explicit GetVSwitchCidrReservationUsageResult(const std::string &payload); + ~GetVSwitchCidrReservationUsageResult(); + long getTotalCount()const; + std::vector getCidrReservationUsages()const; + std::string getNextToken()const; + long getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector cidrReservationUsages_; + std::string nextToken_; + long maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_GETVSWITCHCIDRRESERVATIONUSAGERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeResult.h b/vpc/include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeResult.h index ad4317bd9..86a87f0d1 100644 --- a/vpc/include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/GetVpcGatewayEndpointAttributeResult.h @@ -32,6 +32,11 @@ namespace AlibabaCloud class ALIBABACLOUD_VPC_EXPORT GetVpcGatewayEndpointAttributeResult : public ServiceResult { public: + struct Tag + { + std::string value; + std::string key; + }; GetVpcGatewayEndpointAttributeResult(); @@ -40,12 +45,14 @@ namespace AlibabaCloud std::string getEndpointStatus()const; std::string getEndpointName()const; std::string getVpcId()const; + std::string getResourceGroupId()const; std::string getServiceName()const; std::vector getRouteTables()const; std::string getEndpointId()const; std::string getCreationTime()const; std::string getPolicyDocument()const; std::string getEndpointDescription()const; + std::vector getTags()const; protected: void parse(const std::string &payload); @@ -53,12 +60,14 @@ namespace AlibabaCloud std::string endpointStatus_; std::string endpointName_; std::string vpcId_; + std::string resourceGroupId_; std::string serviceName_; std::vector routeTables_; std::string endpointId_; std::string creationTime_; std::string policyDocument_; std::string endpointDescription_; + std::vector tags_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsRequest.h b/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsRequest.h index aa44f0c8a..0da870c18 100644 --- a/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListAssociationsRequest.h @@ -32,29 +32,29 @@ public: ~GetVpcPrefixListAssociationsRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount() const; - void setResourceOwnerAccount(const std::string &resourceOwnerAccount); - std::string getOwnerAccount() const; - void setOwnerAccount(const std::string &ownerAccount); - long getOwnerId() const; - void setOwnerId(long ownerId); std::string getPrefixListId() const; void setPrefixListId(const std::string &prefixListId); std::string getNextToken() const; void setNextToken(const std::string &nextToken); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); long getMaxResults() const; void setMaxResults(long maxResults); private: long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; std::string prefixListId_; std::string nextToken_; std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; long maxResults_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListEntriesRequest.h index c71997b0f..9308d43dc 100644 --- a/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/GetVpcPrefixListEntriesRequest.h @@ -32,29 +32,29 @@ public: ~GetVpcPrefixListEntriesRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount() const; - void setResourceOwnerAccount(const std::string &resourceOwnerAccount); - std::string getOwnerAccount() const; - void setOwnerAccount(const std::string &ownerAccount); - long getOwnerId() const; - void setOwnerId(long ownerId); std::string getPrefixListId() const; void setPrefixListId(const std::string &prefixListId); std::string getNextToken() const; void setNextToken(const std::string &nextToken); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); long getMaxResults() const; void setMaxResults(long maxResults); private: long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; std::string prefixListId_; std::string nextToken_; std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; long maxResults_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsRequest.h b/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsRequest.h index d90d5dc9c..782f060fa 100644 --- a/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsRequest.h @@ -28,10 +28,16 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT ListDhcpOptionsSetsRequest : public RpcServiceRequest { public: + struct Tags { + std::string key; + std::string value; + }; ListDhcpOptionsSetsRequest(); ~ListDhcpOptionsSetsRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getNextToken() const; @@ -46,6 +52,8 @@ public: void setDomainName(const std::string &domainName); long getOwnerId() const; void setOwnerId(long ownerId); + std::vector getTags() const; + void setTags(const std::vector &tags); std::string getDhcpOptionsSetName() const; void setDhcpOptionsSetName(const std::string &dhcpOptionsSetName); int getMaxResults() const; @@ -53,6 +61,7 @@ public: private: long resourceOwnerId_; + std::string resourceGroupId_; std::string regionId_; std::string nextToken_; std::vector dhcpOptionsSetId_; @@ -60,6 +69,7 @@ private: std::string ownerAccount_; std::string domainName_; long ownerId_; + std::vector tags_; std::string dhcpOptionsSetName_; int maxResults_; }; diff --git a/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsResult.h b/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsResult.h index 3e360c954..3c75e56d1 100644 --- a/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListDhcpOptionsSetsResult.h @@ -41,13 +41,21 @@ namespace AlibabaCloud std::string domainNameServers; std::string leaseTime; }; + struct Tag + { + std::string value; + std::string key; + }; std::string status; std::string dhcpOptionsSetId; DhcpOptions dhcpOptions; long ownerId; + std::string resourceGroupId; std::string dhcpOptionsSetName; std::string dhcpOptionsSetDescription; + std::string creationTime; int associateVpcCount; + std::vector tags; }; @@ -55,12 +63,14 @@ namespace AlibabaCloud explicit ListDhcpOptionsSetsResult(const std::string &payload); ~ListDhcpOptionsSetsResult(); std::vector getDhcpOptionsSets()const; + std::string getTotalCount()const; std::string getNextToken()const; protected: void parse(const std::string &payload); private: std::vector dhcpOptionsSets_; + std::string totalCount_; std::string nextToken_; }; diff --git a/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesRequest.h b/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesRequest.h index 8fbbda03e..e91d3a218 100644 --- a/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListEnhanhcedNatGatewayAvailableZonesRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT ListEnhanhcedNatGatewayAvailableZonesRequest : public RpcServiceRequest { public: + struct Filter { + std::string key; + std::string value; + }; ListEnhanhcedNatGatewayAvailableZonesRequest(); ~ListEnhanhcedNatGatewayAvailableZonesRequest(); long getResourceOwnerId() const; @@ -40,6 +44,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); std::string getAcceptLanguage() const; void setAcceptLanguage(const std::string &acceptLanguage); @@ -49,6 +55,7 @@ private: std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::vector filter_; std::string acceptLanguage_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/ListFullNatEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/ListFullNatEntriesRequest.h index 17f781a7b..bb33607e0 100644 --- a/vpc/include/alibabacloud/vpc/model/ListFullNatEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListFullNatEntriesRequest.h @@ -40,6 +40,8 @@ public: void setFullNatEntryStatus(const std::string &fullNatEntryStatus); std::string getFullNatEntryId() const; void setFullNatEntryId(const std::string &fullNatEntryId); + std::string getNatIpPort() const; + void setNatIpPort(const std::string &natIpPort); std::string getFullNatTableId() const; void setFullNatTableId(const std::string &fullNatTableId); std::string getNextToken() const; @@ -58,6 +60,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getNatIp() const; + void setNatIp(const std::string &natIp); long getMaxResults() const; void setMaxResults(long maxResults); @@ -67,6 +71,7 @@ private: std::vector networkInterfaceIds_; std::string fullNatEntryStatus_; std::string fullNatEntryId_; + std::string natIpPort_; std::string fullNatTableId_; std::string nextToken_; std::string regionId_; @@ -76,6 +81,7 @@ private: std::string ipProtocol_; std::string ownerAccount_; long ownerId_; + std::string natIp_; long maxResults_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/ListIpsecServersRequest.h b/vpc/include/alibabacloud/vpc/model/ListIpsecServersRequest.h index ea2de549c..bc81ca1c4 100644 --- a/vpc/include/alibabacloud/vpc/model/ListIpsecServersRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListIpsecServersRequest.h @@ -36,6 +36,8 @@ public: void setVpnGatewayId(const std::string &vpnGatewayId); std::string getCallerBid() const; void setCallerBid(const std::string &callerBid); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getNextToken() const; @@ -51,6 +53,7 @@ private: long resourceOwnerId_; std::string vpnGatewayId_; std::string callerBid_; + std::string resourceGroupId_; std::string regionId_; std::string nextToken_; std::string ipsecServerName_; diff --git a/vpc/include/alibabacloud/vpc/model/ListIpsecServersResult.h b/vpc/include/alibabacloud/vpc/model/ListIpsecServersResult.h index 656e144dd..ce91032f6 100644 --- a/vpc/include/alibabacloud/vpc/model/ListIpsecServersResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListIpsecServersResult.h @@ -57,6 +57,7 @@ namespace AlibabaCloud std::string iDaaSInstanceId; bool multiFactorAuthEnabled; int maxConnections; + std::string resourceGroupId; std::string ipsecServerId; std::string psk; std::string ipsecServerName; diff --git a/vpc/include/alibabacloud/vpc/model/ListPrefixListsResult.h b/vpc/include/alibabacloud/vpc/model/ListPrefixListsResult.h index d28d9a7c0..912cf1d6d 100644 --- a/vpc/include/alibabacloud/vpc/model/ListPrefixListsResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListPrefixListsResult.h @@ -45,6 +45,7 @@ namespace AlibabaCloud std::string prefixListId; std::string ipVersion; std::string prefixListName; + std::string prefixListType; std::vector cidrBlocks; std::string prefixListDescription; std::string ownerId; diff --git a/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsRequest.h b/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsRequest.h index d15baa6bb..a7b19f2ad 100644 --- a/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsRequest.h @@ -36,8 +36,12 @@ public: ~ListPublicIpAddressPoolsRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + bool getSecurityProtectionEnabled() const; + void setSecurityProtectionEnabled(bool securityProtectionEnabled); std::string getIsp() const; void setIsp(const std::string &isp); + int getSecurityProtectionEnabledForCommonBuy() const; + void setSecurityProtectionEnabledForCommonBuy(int securityProtectionEnabledForCommonBuy); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); std::string getNextToken() const; @@ -65,7 +69,9 @@ public: private: long resourceOwnerId_; + bool securityProtectionEnabled_; std::string isp_; + int securityProtectionEnabledForCommonBuy_; std::string resourceGroupId_; std::string nextToken_; std::string regionId_; diff --git a/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsResult.h b/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsResult.h index 2d04e816c..e2bf75197 100644 --- a/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListPublicIpAddressPoolsResult.h @@ -53,14 +53,18 @@ namespace AlibabaCloud std::string isp; bool ipAddressRemaining; std::string publicIpAddressPoolId; + std::string bizType; + std::string businessStatus; std::string name; + std::vector zones; std::vector publicIpCidrBlockList; int usedIpNum; long ownerId; int totalIpNum; std::string creationTime; + std::vector securityProtectionTypes; std::string regionId; - bool userType; + std::string userType; std::vector tags; std::string shareType; }; diff --git a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.h b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.h index 42a43f380..a2579dfd2 100644 --- a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorFiltersResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string trafficMirrorFilterRuleId; std::string action; std::string sourcePortRange; + std::string ipVersion; int priority; std::string trafficMirrorFilterRuleStatus; std::string sourceCidrBlock; @@ -54,6 +55,7 @@ namespace AlibabaCloud std::string trafficMirrorFilterRuleId; std::string action; std::string sourcePortRange; + std::string ipVersion; int priority; std::string trafficMirrorFilterRuleStatus; std::string sourceCidrBlock; @@ -70,6 +72,7 @@ namespace AlibabaCloud std::string trafficMirrorFilterDescription; std::string resourceGroupId; std::vector egressRules; + std::string creationTime; std::string trafficMirrorFilterStatus; std::string trafficMirrorFilterId; std::string trafficMirrorFilterName; @@ -84,6 +87,8 @@ namespace AlibabaCloud std::vector getTrafficMirrorFilters()const; std::string getTotalCount()const; std::string getNextToken()const; + int getMaxResults()const; + int getCount()const; protected: void parse(const std::string &payload); @@ -91,6 +96,8 @@ namespace AlibabaCloud std::vector trafficMirrorFilters_; std::string totalCount_; std::string nextToken_; + int maxResults_; + int count_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsResult.h b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsResult.h index 9ef44565d..9d4b50e0e 100644 --- a/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListTrafficMirrorSessionsResult.h @@ -50,6 +50,8 @@ namespace AlibabaCloud std::string trafficMirrorSessionId; std::string trafficMirrorFilterId; std::string trafficMirrorSessionStatus; + int trafficMirrorSourceTruncateMode; + std::string creationTime; std::string trafficMirrorSessionDescription; std::string trafficMirrorSessionName; std::vector tags; diff --git a/vpc/include/alibabacloud/vpc/model/ListVSwitchCidrReservationsRequest.h b/vpc/include/alibabacloud/vpc/model/ListVSwitchCidrReservationsRequest.h new file mode 100644 index 000000000..e0d70a236 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListVSwitchCidrReservationsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTVSWITCHCIDRRESERVATIONSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVSWITCHCIDRRESERVATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListVSwitchCidrReservationsRequest : public RpcServiceRequest { +public: + struct Tags { + std::string key; + std::string value; + }; + ListVSwitchCidrReservationsRequest(); + ~ListVSwitchCidrReservationsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVSwitchCidrReservationType() const; + void setVSwitchCidrReservationType(const std::string &vSwitchCidrReservationType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getVSwitchCidrReservationIds() const; + void setVSwitchCidrReservationIds(const std::vector &vSwitchCidrReservationIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpVersion() const; + void setIpVersion(const std::string &ipVersion); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getTags() const; + void setTags(const std::vector &tags); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + long resourceOwnerId_; + std::string vSwitchCidrReservationType_; + std::string nextToken_; + std::vector vSwitchCidrReservationIds_; + std::string regionId_; + std::string ipVersion_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector tags_; + std::string vSwitchId_; + long maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVSWITCHCIDRRESERVATIONSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListVSwitchCidrReservationsResult.h b/vpc/include/alibabacloud/vpc/model/ListVSwitchCidrReservationsResult.h new file mode 100644 index 000000000..bc0994a80 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListVSwitchCidrReservationsResult.h @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_LISTVSWITCHCIDRRESERVATIONSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVSWITCHCIDRRESERVATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListVSwitchCidrReservationsResult : public ServiceResult + { + public: + struct VSwitchCidrReservation + { + struct Tag + { + std::string value; + std::string key; + }; + std::string status; + std::string vSwitchCidrReservationCidr; + std::string vSwitchCidrReservationDescription; + std::string ipVersion; + int assignedCidrCount; + std::string vSwitchId; + std::string type; + std::string vpcId; + int availableCidrCount; + std::string creationTime; + std::string vSwitchCidrReservationId; + std::string vSwitchCidrReservationName; + std::vector tags; + }; + + + ListVSwitchCidrReservationsResult(); + explicit ListVSwitchCidrReservationsResult(const std::string &payload); + ~ListVSwitchCidrReservationsResult(); + long getTotalCount()const; + std::vector getVSwitchCidrReservations()const; + std::string getNextToken()const; + long getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector vSwitchCidrReservations_; + std::string nextToken_; + long maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVSWITCHCIDRRESERVATIONSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsResult.h b/vpc/include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsResult.h index b315c0c78..e51f92a20 100644 --- a/vpc/include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListVirtualPhysicalConnectionsResult.h @@ -34,6 +34,11 @@ namespace AlibabaCloud public: struct VirtualPhysicalConnection { + struct TagsItem + { + std::string value; + std::string key; + }; std::string description; std::string endTime; std::string resourceGroupId; @@ -49,6 +54,7 @@ namespace AlibabaCloud std::string adLocation; std::string virtualPhysicalConnectionStatus; long bandwidth; + std::vector tags; std::string vlanId; std::string status; std::string circuitCode; diff --git a/vpc/include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserResult.h b/vpc/include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserResult.h index 6693edcb8..9fac9a98d 100644 --- a/vpc/include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListVpcEndpointServicesByEndUserResult.h @@ -46,6 +46,7 @@ namespace AlibabaCloud explicit ListVpcEndpointServicesByEndUserResult(const std::string &payload); ~ListVpcEndpointServicesByEndUserResult(); std::vector getServices()const; + std::string getTotalCount()const; std::string getNextToken()const; long getMaxResults()const; @@ -53,6 +54,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::vector services_; + std::string totalCount_; std::string nextToken_; long maxResults_; diff --git a/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsRequest.h b/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsRequest.h index 66cd5507f..c9503b996 100644 --- a/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsRequest.h @@ -28,12 +28,18 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT ListVpcGatewayEndpointsRequest : public RpcServiceRequest { public: + struct Tags { + std::string key; + std::string value; + }; ListVpcGatewayEndpointsRequest(); ~ListVpcGatewayEndpointsRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); std::string getEndpointId() const; void setEndpointId(const std::string &endpointId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getNextToken() const; void setNextToken(const std::string &nextToken); std::string getRegionId() const; @@ -46,21 +52,28 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::vector getTags() const; + void setTags(const std::vector &tags); std::string getEndpointName() const; void setEndpointName(const std::string &endpointName); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); long getMaxResults() const; void setMaxResults(long maxResults); private: long resourceOwnerId_; std::string endpointId_; + std::string resourceGroupId_; std::string nextToken_; std::string regionId_; std::string serviceName_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::vector tags_; std::string endpointName_; + std::string vpcId_; long maxResults_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsResult.h b/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsResult.h index 4f993c55b..32fa34909 100644 --- a/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsResult.h +++ b/vpc/include/alibabacloud/vpc/model/ListVpcGatewayEndpointsResult.h @@ -34,15 +34,22 @@ namespace AlibabaCloud public: struct Endpoint { + struct Tag + { + std::string value; + std::string key; + }; std::string endpointStatus; std::string endpointName; std::string vpcId; + std::string resourceGroupId; std::vector associatedRouteTables; std::string serviceName; std::string endpointId; std::string creationTime; std::string policyDocument; std::string endpointDescription; + std::vector tags; }; diff --git a/vpc/include/alibabacloud/vpc/model/ListVpcPublishedRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/ListVpcPublishedRouteEntriesRequest.h new file mode 100644 index 000000000..aa928bc5a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListVpcPublishedRouteEntriesRequest.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_VPC_MODEL_LISTVPCPUBLISHEDROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVPCPUBLISHEDROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ListVpcPublishedRouteEntriesRequest : public RpcServiceRequest { +public: + ListVpcPublishedRouteEntriesRequest(); + ~ListVpcPublishedRouteEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDestinationCidrBlock() const; + void setDestinationCidrBlock(const std::string &destinationCidrBlock); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTargetInstanceId() const; + void setTargetInstanceId(const std::string &targetInstanceId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string targetType_; + std::string regionId_; + std::string nextToken_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + long ownerId_; + std::string targetInstanceId_; + int maxResults_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVPCPUBLISHEDROUTEENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ListVpcPublishedRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/ListVpcPublishedRouteEntriesResult.h new file mode 100644 index 000000000..ec0d660c8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ListVpcPublishedRouteEntriesResult.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_VPC_MODEL_LISTVPCPUBLISHEDROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_LISTVPCPUBLISHEDROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ListVpcPublishedRouteEntriesResult : public ServiceResult + { + public: + struct RouteEntry + { + struct RoutePublishTarget + { + std::string publishTargetInstanceId; + std::string publishTargetType; + std::string publishStatus; + }; + std::vector routePublishTargets; + std::string routeEntryId; + std::string routeTableId; + std::string destinationCidrBlock; + }; + + + ListVpcPublishedRouteEntriesResult(); + explicit ListVpcPublishedRouteEntriesResult(const std::string &payload); + ~ListVpcPublishedRouteEntriesResult(); + std::vector getRouteEntries()const; + std::string getNextToken()const; + + protected: + void parse(const std::string &payload); + private: + std::vector routeEntries_; + std::string nextToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_LISTVPCPUBLISHEDROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeResult.h index 22a11b3c5..d60878626 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyCustomerGatewayAttributeResult.h @@ -39,6 +39,7 @@ namespace AlibabaCloud ~ModifyCustomerGatewayAttributeResult(); std::string getDescription()const; std::string getCustomerGatewayId()const; + std::string getResourceGroupId()const; long getCreateTime()const; std::string getIpAddress()const; std::string getName()const; @@ -48,6 +49,7 @@ namespace AlibabaCloud private: std::string description_; std::string customerGatewayId_; + std::string resourceGroupId_; long createTime_; std::string ipAddress_; std::string name_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyEipForwardModeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyEipForwardModeRequest.h new file mode 100644 index 000000000..ce2250e2c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyEipForwardModeRequest.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_VPC_MODEL_MODIFYEIPFORWARDMODEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEIPFORWARDMODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyEipForwardModeRequest : public RpcServiceRequest { +public: + ModifyEipForwardModeRequest(); + ~ModifyEipForwardModeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getMode() const; + void setMode(const std::string &mode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string mode_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEIPFORWARDMODEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyEipForwardModeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyEipForwardModeResult.h new file mode 100644 index 000000000..41e6ef4ef --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyEipForwardModeResult.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_VPC_MODEL_MODIFYEIPFORWARDMODERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEIPFORWARDMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyEipForwardModeResult : public ServiceResult + { + public: + + + ModifyEipForwardModeResult(); + explicit ModifyEipForwardModeResult(const std::string &payload); + ~ModifyEipForwardModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEIPFORWARDMODERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosQueueRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosQueueRequest.h new file mode 100644 index 000000000..cbec7ba22 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosQueueRequest.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_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSQUEUEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSQUEUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyExpressConnectTrafficQosQueueRequest : public RpcServiceRequest { +public: + ModifyExpressConnectTrafficQosQueueRequest(); + ~ModifyExpressConnectTrafficQosQueueRequest(); + std::string getQueueName() const; + void setQueueName(const std::string &queueName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getQueueDescription() const; + void setQueueDescription(const std::string &queueDescription); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getQueueId() const; + void setQueueId(const std::string &queueId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getBandwidthPercent() const; + void setBandwidthPercent(const std::string &bandwidthPercent); + +private: + std::string queueName_; + std::string clientToken_; + std::string queueDescription_; + std::string regionId_; + std::string qosId_; + std::string queueId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string bandwidthPercent_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSQUEUEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosQueueResult.h b/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosQueueResult.h new file mode 100644 index 000000000..51f92cd2a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosQueueResult.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_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSQUEUERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSQUEUERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyExpressConnectTrafficQosQueueResult : public ServiceResult + { + public: + + + ModifyExpressConnectTrafficQosQueueResult(); + explicit ModifyExpressConnectTrafficQosQueueResult(const std::string &payload); + ~ModifyExpressConnectTrafficQosQueueResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSQUEUERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosRequest.h new file mode 100644 index 000000000..8158fbb3c --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyExpressConnectTrafficQosRequest : public RpcServiceRequest { +public: + struct RemoveInstanceList { + std::string instanceId; + std::string instanceType; + }; + struct AddInstanceList { + std::string instanceId; + std::string instanceType; + }; + ModifyExpressConnectTrafficQosRequest(); + ~ModifyExpressConnectTrafficQosRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getRemoveInstanceList() const; + void setRemoveInstanceList(const std::vector &removeInstanceList); + std::vector getAddInstanceList() const; + void setAddInstanceList(const std::vector &addInstanceList); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getQosName() const; + void setQosName(const std::string &qosName); + std::string getQosDescription() const; + void setQosDescription(const std::string &qosDescription); + +private: + std::string clientToken_; + std::vector removeInstanceList_; + std::vector addInstanceList_; + std::string regionId_; + std::string qosId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string qosName_; + std::string qosDescription_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosResult.h b/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosResult.h new file mode 100644 index 000000000..b52ab4af4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosResult.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_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyExpressConnectTrafficQosResult : public ServiceResult + { + public: + + + ModifyExpressConnectTrafficQosResult(); + explicit ModifyExpressConnectTrafficQosResult(const std::string &payload); + ~ModifyExpressConnectTrafficQosResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosRuleRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosRuleRequest.h new file mode 100644 index 000000000..10bae5c3e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosRuleRequest.h @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSRULEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyExpressConnectTrafficQosRuleRequest : public RpcServiceRequest { +public: + ModifyExpressConnectTrafficQosRuleRequest(); + ~ModifyExpressConnectTrafficQosRuleRequest(); + std::string getDstCidr() const; + void setDstCidr(const std::string &dstCidr); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getSrcCidr() const; + void setSrcCidr(const std::string &srcCidr); + std::string getDstIPv6Cidr() const; + void setDstIPv6Cidr(const std::string &dstIPv6Cidr); + std::string getDstPortRange() const; + void setDstPortRange(const std::string &dstPortRange); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getQosId() const; + void setQosId(const std::string &qosId); + std::string getQueueId() const; + void setQueueId(const std::string &queueId); + int getMatchDscp() const; + void setMatchDscp(int matchDscp); + std::string getRuleDescription() const; + void setRuleDescription(const std::string &ruleDescription); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getRemarkingDscp() const; + void setRemarkingDscp(int remarkingDscp); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getPriority() const; + void setPriority(int priority); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSrcPortRange() const; + void setSrcPortRange(const std::string &srcPortRange); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + std::string getSrcIPv6Cidr() const; + void setSrcIPv6Cidr(const std::string &srcIPv6Cidr); + +private: + std::string dstCidr_; + std::string clientToken_; + std::string ruleName_; + std::string srcCidr_; + std::string dstIPv6Cidr_; + std::string dstPortRange_; + std::string protocol_; + std::string regionId_; + std::string qosId_; + std::string queueId_; + int matchDscp_; + std::string ruleDescription_; + std::string resourceOwnerAccount_; + int remarkingDscp_; + std::string ownerAccount_; + int priority_; + long ownerId_; + std::string srcPortRange_; + std::string ruleId_; + std::string srcIPv6Cidr_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSRULEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosRuleResult.h b/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosRuleResult.h new file mode 100644 index 000000000..ec1c5e2fb --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyExpressConnectTrafficQosRuleResult.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_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSRULERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyExpressConnectTrafficQosRuleResult : public ServiceResult + { + public: + + + ModifyExpressConnectTrafficQosRuleResult(); + explicit ModifyExpressConnectTrafficQosRuleResult(const std::string &payload); + ~ModifyExpressConnectTrafficQosRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYEXPRESSCONNECTTRAFFICQOSRULERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyFlowLogAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyFlowLogAttributeRequest.h index 9b264eb23..35621e300 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyFlowLogAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyFlowLogAttributeRequest.h @@ -34,8 +34,16 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getDescription() const; void setDescription(const std::string &description); + bool getEnableTrafficAnalyze() const; + void setEnableTrafficAnalyze(bool enableTrafficAnalyze); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getDisableLogDelivery() const; + void setDisableLogDelivery(bool disableLogDelivery); + std::string getIpVersion() const; + void setIpVersion(const std::string &ipVersion); + bool getEnableLogDelivery() const; + void setEnableLogDelivery(bool enableLogDelivery); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -48,17 +56,24 @@ public: void setFlowLogId(const std::string &flowLogId); std::string getFlowLogName() const; void setFlowLogName(const std::string &flowLogName); + std::string getTrafficAnalyzerId() const; + void setTrafficAnalyzerId(const std::string &trafficAnalyzerId); private: long resourceOwnerId_; std::string description_; + bool enableTrafficAnalyze_; std::string regionId_; + bool disableLogDelivery_; + std::string ipVersion_; + bool enableLogDelivery_; std::string resourceOwnerAccount_; std::string ownerAccount_; int aggregationInterval_; long ownerId_; std::string flowLogId_; std::string flowLogName_; + std::string trafficAnalyzerId_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h index a38e00861..30614415e 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyForwardEntryRequest.h @@ -44,6 +44,8 @@ public: void setForwardEntryId(const std::string &forwardEntryId); std::string getExternalIp() const; void setExternalIp(const std::string &externalIp); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getIpProtocol() const; @@ -69,6 +71,7 @@ private: std::string regionId_; std::string forwardEntryId_; std::string externalIp_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ipProtocol_; std::string forwardEntryName_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIpv6AddressAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyIpv6AddressAttributeRequest.h index 18a032b12..269d212af 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIpv6AddressAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyIpv6AddressAttributeRequest.h @@ -32,10 +32,14 @@ public: ~ModifyIpv6AddressAttributeRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); std::string getDescription() const; void setDescription(const std::string &description); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -49,8 +53,10 @@ public: private: long resourceOwnerId_; + std::string clientToken_; std::string description_; std::string regionId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeRequest.h index 121a934be..7c097d709 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyIpv6GatewayAttributeRequest.h @@ -32,10 +32,14 @@ public: ~ModifyIpv6GatewayAttributeRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); std::string getDescription() const; void setDescription(const std::string &description); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -49,8 +53,10 @@ public: private: long resourceOwnerId_; + std::string clientToken_; std::string description_; std::string regionId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthRequest.h index 963c148fd..5a2217904 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyIpv6InternetBandwidthRequest.h @@ -38,6 +38,8 @@ public: void setIpv6InternetBandwidthId(const std::string &ipv6InternetBandwidthId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); long getBandwidth() const; void setBandwidth(long bandwidth); std::string getResourceOwnerAccount() const; @@ -54,6 +56,7 @@ private: std::string clientToken_; std::string ipv6InternetBandwidthId_; std::string regionId_; + bool dryRun_; long bandwidth_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h index 2f90c5d28..90e062617 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyNatGatewayAttributeRequest.h @@ -28,6 +28,10 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT ModifyNatGatewayAttributeRequest : public RpcServiceRequest { public: + struct LogDelivery { + std::string logDeliveryType; + std::string logDestination; + }; ModifyNatGatewayAttributeRequest(); ~ModifyNatGatewayAttributeRequest(); long getResourceOwnerId() const; @@ -36,6 +40,8 @@ public: void setSecurityProtectionEnabled(bool securityProtectionEnabled); std::string getDescription() const; void setDescription(const std::string &description); + LogDelivery getLogDelivery() const; + void setLogDelivery(const LogDelivery &logDelivery); bool getIcmpReplyEnabled() const; void setIcmpReplyEnabled(bool icmpReplyEnabled); std::string getRegionId() const; @@ -50,6 +56,8 @@ public: void setPrivateLinkMode(const std::string &privateLinkMode); long getOwnerId() const; void setOwnerId(long ownerId); + bool getEnableSessionLog() const; + void setEnableSessionLog(bool enableSessionLog); std::string getName() const; void setName(const std::string &name); std::string getEipBindMode() const; @@ -59,6 +67,7 @@ private: long resourceOwnerId_; bool securityProtectionEnabled_; std::string description_; + LogDelivery logDelivery_; bool icmpReplyEnabled_; std::string regionId_; std::string natGatewayId_; @@ -66,6 +75,7 @@ private: std::string ownerAccount_; std::string privateLinkMode_; long ownerId_; + bool enableSessionLog_; std::string name_; std::string eipBindMode_; }; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h index e573b8748..3edd22d1b 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyNetworkAclAttributesRequest.h @@ -40,8 +40,12 @@ public: void setRegionId(const std::string ®ionId); std::string getNetworkAclId() const; void setNetworkAclId(const std::string &networkAclId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); std::string getNetworkAclName() const; void setNetworkAclName(const std::string &networkAclName); long getOwnerId() const; @@ -53,7 +57,9 @@ private: std::string description_; std::string regionId_; std::string networkAclId_; + bool dryRun_; std::string resourceOwnerAccount_; + std::string ownerAccount_; std::string networkAclName_; long ownerId_; }; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h index 42989e431..fd79cb34c 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouteEntryRequest.h @@ -36,14 +36,24 @@ public: void setRouteEntryName(const std::string &routeEntryName); std::string getDescription() const; void setDescription(const std::string &description); + std::string getNewNextHopId() const; + void setNewNextHopId(const std::string &newNextHopId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + std::string getDestinationCidrBlock() const; + void setDestinationCidrBlock(const std::string &destinationCidrBlock); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getNewNextHopType() const; + void setNewNextHopType(const std::string &newNextHopType); std::string getRouteEntryId() const; void setRouteEntryId(const std::string &routeEntryId); @@ -51,10 +61,15 @@ private: long resourceOwnerId_; std::string routeEntryName_; std::string description_; + std::string newNextHopId_; std::string regionId_; + std::string routeTableId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; + std::string destinationCidrBlock_; long ownerId_; + std::string newNextHopType_; std::string routeEntryId_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h index 51135b987..b92381998 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyRouteTableAttributesRequest.h @@ -48,6 +48,8 @@ public: void setBandwidth(const std::string &bandwidth); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + bool getRoutePropagationEnable() const; + void setRoutePropagationEnable(bool routePropagationEnable); long getOwnerId() const; void setOwnerId(long ownerId); std::string getKbpsBandwidth() const; @@ -65,6 +67,7 @@ private: std::string resourceOwnerAccount_; std::string bandwidth_; std::string ownerAccount_; + bool routePropagationEnable_; long ownerId_; std::string kbpsBandwidth_; std::string resourceBid_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifySnatEntryRequest.h b/vpc/include/alibabacloud/vpc/model/ModifySnatEntryRequest.h index ded60fcee..94e617a10 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifySnatEntryRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifySnatEntryRequest.h @@ -38,8 +38,12 @@ public: void setSnatIp(const std::string &snatIp); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + int getEipAffinity() const; + void setEipAffinity(int eipAffinity); std::string getSnatEntryId() const; void setSnatEntryId(const std::string &snatEntryId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -50,18 +54,23 @@ public: void setOwnerId(long ownerId); std::string getSnatEntryName() const; void setSnatEntryName(const std::string &snatEntryName); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); private: long resourceOwnerId_; std::string clientToken_; std::string snatIp_; std::string regionId_; + int eipAffinity_; std::string snatEntryId_; + bool dryRun_; std::string resourceOwnerAccount_; std::string ownerAccount_; std::string snatTableId_; long ownerId_; std::string snatEntryName_; + std::string networkInterfaceId_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h b/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h index d492f0402..6efdab292 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerRequest.h @@ -48,8 +48,12 @@ public: void setIDaaSInstanceId(const std::string &iDaaSInstanceId); std::string getCipher() const; void setCipher(const std::string &cipher); + std::string getIDaaSApplicationId() const; + void setIDaaSApplicationId(const std::string &iDaaSApplicationId); std::string getClientIpPool() const; void setClientIpPool(const std::string &clientIpPool); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); bool getCompress() const; @@ -75,7 +79,9 @@ private: bool enableMultiFactorAuth_; std::string iDaaSInstanceId_; std::string cipher_; + std::string iDaaSApplicationId_; std::string clientIpPool_; + bool dryRun_; std::string resourceOwnerAccount_; bool compress_; std::string ownerAccount_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerResult.h b/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerResult.h index 3a251b2fd..c169a3af5 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerResult.h +++ b/vpc/include/alibabacloud/vpc/model/ModifySslVpnServerResult.h @@ -43,11 +43,14 @@ namespace AlibabaCloud std::string getClientIpPool()const; std::string getIDaaSInstanceId()const; int getMaxConnections()const; + std::string getResourceGroupId()const; bool getEnableMultiFactorAuth()const; long getCreateTime()const; int getPort()const; std::string getSslVpnServerId()const; + std::string getIDaaSInstanceVersion()const; std::string getName()const; + std::string getIDaaSApplicationId()const; std::string getInternetIp()const; std::string getProto()const; std::string getVpnGatewayId()const; @@ -63,11 +66,14 @@ namespace AlibabaCloud std::string clientIpPool_; std::string iDaaSInstanceId_; int maxConnections_; + std::string resourceGroupId_; bool enableMultiFactorAuth_; long createTime_; int port_; std::string sslVpnServerId_; + std::string iDaaSInstanceVersion_; std::string name_; + std::string iDaaSApplicationId_; std::string internetIp_; std::string proto_; std::string vpnGatewayId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyTunnelAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyTunnelAttributeRequest.h new file mode 100644 index 000000000..becbc8b7a --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyTunnelAttributeRequest.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_VPC_MODEL_MODIFYTUNNELATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYTUNNELATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyTunnelAttributeRequest : public RpcServiceRequest { +public: + struct TunnelOptionsSpecification { + struct TunnelIpsecConfig { + std::string ipsecPfs; + long ipsecLifetime; + std::string ipsecAuthAlg; + std::string ipsecEncAlg; + }; + TunnelIpsecConfig tunnelIpsecConfig; + struct TunnelBgpConfig { + long localAsn; + std::string tunnelCidr; + std::string localBgpIp; + }; + TunnelBgpConfig tunnelBgpConfig; + std::string remoteCaCertificate; + struct TunnelIkeConfig { + std::string ikeVersion; + std::string ikeMode; + std::string ikeAuthAlg; + std::string psk; + std::string ikePfs; + long ikeLifetime; + std::string localId; + std::string ikeEncAlg; + std::string remoteId; + }; + TunnelIkeConfig tunnelIkeConfig; + bool enableNatTraversal; + bool enableDpd; + std::string customerGatewayId; + }; + ModifyTunnelAttributeRequest(); + ~ModifyTunnelAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + TunnelOptionsSpecification getTunnelOptionsSpecification() const; + void setTunnelOptionsSpecification(const TunnelOptionsSpecification &tunnelOptionsSpecification); + std::string getVpnConnectionId() const; + void setVpnConnectionId(const std::string &vpnConnectionId); + std::string getTunnelId() const; + void setTunnelId(const std::string &tunnelId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + TunnelOptionsSpecification tunnelOptionsSpecification_; + std::string vpnConnectionId_; + std::string tunnelId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYTUNNELATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyTunnelAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyTunnelAttributeResult.h new file mode 100644 index 000000000..c9ee2c77d --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyTunnelAttributeResult.h @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VPC_MODEL_MODIFYTUNNELATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYTUNNELATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyTunnelAttributeResult : public ServiceResult + { + public: + struct TunnelIkeConfig + { + std::string ikeAuthAlg; + std::string localId; + std::string ikeEncAlg; + std::string ikeVersion; + std::string ikeMode; + long ikeLifetime; + std::string psk; + std::string remoteId; + std::string ikePfs; + }; + struct TunnelIpsecConfig + { + std::string ipsecPfs; + std::string ipsecEncAlg; + std::string ipsecAuthAlg; + long ipsecLifetime; + }; + struct TunnelBgpConfig + { + bool enableBgp; + long localAsn; + std::string tunnelCidr; + std::string peerBgpIp; + long peerAsn; + std::string localBgpIp; + }; + + + ModifyTunnelAttributeResult(); + explicit ModifyTunnelAttributeResult(const std::string &payload); + ~ModifyTunnelAttributeResult(); + std::string getRole()const; + TunnelIkeConfig getTunnelIkeConfig()const; + std::string getCustomerGatewayId()const; + std::string getInternetIp()const; + TunnelBgpConfig getTunnelBgpConfig()const; + std::string getState()const; + std::string getRemoteCaCertificate()const; + bool getEnableNatTraversal()const; + TunnelIpsecConfig getTunnelIpsecConfig()const; + std::string getTunnelId()const; + bool getEnableDpd()const; + std::string getZoneNo()const; + + protected: + void parse(const std::string &payload); + private: + std::string role_; + TunnelIkeConfig tunnelIkeConfig_; + std::string customerGatewayId_; + std::string internetIp_; + TunnelBgpConfig tunnelBgpConfig_; + std::string state_; + std::string remoteCaCertificate_; + bool enableNatTraversal_; + TunnelIpsecConfig tunnelIpsecConfig_; + std::string tunnelId_; + bool enableDpd_; + std::string zoneNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYTUNNELATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVSwitchCidrReservationAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVSwitchCidrReservationAttributeRequest.h new file mode 100644 index 000000000..9c1151f05 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVSwitchCidrReservationAttributeRequest.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_VPC_MODEL_MODIFYVSWITCHCIDRRESERVATIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHCIDRRESERVATIONATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ModifyVSwitchCidrReservationAttributeRequest : public RpcServiceRequest { +public: + ModifyVSwitchCidrReservationAttributeRequest(); + ~ModifyVSwitchCidrReservationAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getVSwitchCidrReservationDescription() const; + void setVSwitchCidrReservationDescription(const std::string &vSwitchCidrReservationDescription); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getVSwitchCidrReservationName() const; + void setVSwitchCidrReservationName(const std::string &vSwitchCidrReservationName); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchCidrReservationId() const; + void setVSwitchCidrReservationId(const std::string &vSwitchCidrReservationId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string vSwitchCidrReservationDescription_; + std::string regionId_; + std::string vSwitchCidrReservationName_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchCidrReservationId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHCIDRRESERVATIONATTRIBUTEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVSwitchCidrReservationAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVSwitchCidrReservationAttributeResult.h new file mode 100644 index 000000000..82e239863 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ModifyVSwitchCidrReservationAttributeResult.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_VPC_MODEL_MODIFYVSWITCHCIDRRESERVATIONATTRIBUTERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHCIDRRESERVATIONATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ModifyVSwitchCidrReservationAttributeResult : public ServiceResult + { + public: + + + ModifyVSwitchCidrReservationAttributeResult(); + explicit ModifyVSwitchCidrReservationAttributeResult(const std::string &payload); + ~ModifyVSwitchCidrReservationAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MODIFYVSWITCHCIDRRESERVATIONATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h index 222cad70e..effafb388 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVirtualBorderRouterAttributeRequest.h @@ -72,6 +72,8 @@ public: void setOwnerId(long ownerId); long getMinRxInterval() const; void setMinRxInterval(long minRxInterval); + bool getSitelinkEnable() const; + void setSitelinkEnable(bool sitelinkEnable); std::string getLocalIpv6GatewayIp() const; void setLocalIpv6GatewayIp(const std::string &localIpv6GatewayIp); std::string getName() const; @@ -99,6 +101,7 @@ private: std::string ownerAccount_; long ownerId_; long minRxInterval_; + bool sitelinkEnable_; std::string localIpv6GatewayIp_; std::string name_; }; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h index a3fcd93f3..3e47c915a 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpcAttributeRequest.h @@ -42,6 +42,8 @@ public: void setRegionId(const std::string ®ionId); std::string getIpv6Isp() const; void setIpv6Isp(const std::string &ipv6Isp); + bool getEnableDnsHostname() const; + void setEnableDnsHostname(bool enableDnsHostname); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -62,6 +64,7 @@ private: std::string vpcName_; std::string regionId_; std::string ipv6Isp_; + bool enableDnsHostname_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeRequest.h index 55c1c02c9..b8160be1b 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeRequest.h @@ -28,6 +28,39 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT ModifyVpnAttachmentAttributeRequest : public RpcServiceRequest { public: + struct TunnelOptionsSpecification { + struct TunnelIpsecConfig { + std::string ipsecPfs; + int ipsecLifetime; + std::string ipsecAuthAlg; + std::string ipsecEncAlg; + }; + TunnelIpsecConfig tunnelIpsecConfig; + struct TunnelBgpConfig { + long localAsn; + std::string tunnelCidr; + std::string localBgpIp; + }; + TunnelBgpConfig tunnelBgpConfig; + std::string remoteCaCertificate; + std::string tunnelId; + struct TunnelIkeConfig { + std::string ikeVersion; + std::string ikeMode; + std::string ikeAuthAlg; + std::string psk; + std::string ikePfs; + long ikeLifetime; + std::string localId; + std::string ikeEncAlg; + std::string remoteId; + }; + TunnelIkeConfig tunnelIkeConfig; + bool enableNatTraversal; + int tunnelIndex; + bool enableDpd; + std::string customerGatewayId; + }; ModifyVpnAttachmentAttributeRequest(); ~ModifyVpnAttachmentAttributeRequest(); std::string getIkeConfig() const; @@ -52,6 +85,8 @@ public: void setLocalSubnet(const std::string &localSubnet); std::string getRemoteCaCert() const; void setRemoteCaCert(const std::string &remoteCaCert); + bool getEnableTunnelsBgp() const; + void setEnableTunnelsBgp(bool enableTunnelsBgp); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getRemoteSubnet() const; @@ -64,6 +99,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); bool getEnableDpd() const; void setEnableDpd(bool enableDpd); + std::vector getTunnelOptionsSpecification() const; + void setTunnelOptionsSpecification(const std::vector &tunnelOptionsSpecification); std::string getVpnConnectionId() const; void setVpnConnectionId(const std::string &vpnConnectionId); std::string getName() const; @@ -83,12 +120,14 @@ private: std::string customerGatewayId_; std::string localSubnet_; std::string remoteCaCert_; + bool enableTunnelsBgp_; std::string regionId_; std::string remoteSubnet_; bool effectImmediately_; std::string resourceOwnerAccount_; std::string ownerAccount_; bool enableDpd_; + std::vector tunnelOptionsSpecification_; std::string vpnConnectionId_; std::string name_; bool enableNatTraversal_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeResult.h index 5eabaff10..0f6ca0f80 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnAttachmentAttributeResult.h @@ -70,6 +70,48 @@ namespace AlibabaCloud long peerAsn; std::string localBgpIp; }; + struct TunnelOptions + { + struct TunnelBgpConfig + { + long localAsn; + std::string tunnelCidr; + std::string peerBgpIp; + long peerAsn; + std::string localBgpIp; + }; + struct TunnelIkeConfig + { + std::string ikeAuthAlg; + std::string localId; + std::string ikeEncAlg; + std::string ikeVersion; + std::string ikeMode; + long ikeLifetime; + std::string psk; + std::string remoteId; + std::string ikePfs; + }; + struct TunnelIpsecConfig + { + std::string ipsecPfs; + std::string ipsecEncAlg; + std::string ipsecAuthAlg; + long ipsecLifetime; + }; + std::string role; + TunnelIkeConfig tunnelIkeConfig; + std::string customerGatewayId; + std::string internetIp; + TunnelBgpConfig tunnelBgpConfig; + std::string state; + std::string remoteCaCertificate; + int tunnelIndex; + bool enableNatTraversal; + TunnelIpsecConfig tunnelIpsecConfig; + std::string tunnelId; + bool enableDpd; + }; ModifyVpnAttachmentAttributeResult(); @@ -80,9 +122,12 @@ namespace AlibabaCloud std::string getAttachType()const; std::string getDescription()const; std::string getCustomerGatewayId()const; + std::string getResourceGroupId()const; + bool getEnableTunnelsBgp()const; long getCreateTime()const; std::string getName()const; bool getEffectImmediately()const; + std::vector getTunnelOptionsSpecification()const; VcoHealthCheck getVcoHealthCheck()const; std::string getRemoteSubnet()const; std::string getVpnGatewayId()const; @@ -104,9 +149,12 @@ namespace AlibabaCloud std::string attachType_; std::string description_; std::string customerGatewayId_; + std::string resourceGroupId_; + bool enableTunnelsBgp_; long createTime_; std::string name_; bool effectImmediately_; + std::vector tunnelOptionsSpecification_; VcoHealthCheck vcoHealthCheck_; std::string remoteSubnet_; std::string vpnGatewayId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h index 03ef02f21..a5327b7ca 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeRequest.h @@ -28,6 +28,39 @@ namespace Vpc { namespace Model { class ALIBABACLOUD_VPC_EXPORT ModifyVpnConnectionAttributeRequest : public RpcServiceRequest { public: + struct TunnelOptionsSpecification { + struct TunnelIpsecConfig { + std::string ipsecPfs; + int ipsecLifetime; + std::string ipsecAuthAlg; + std::string ipsecEncAlg; + }; + TunnelIpsecConfig tunnelIpsecConfig; + std::string role; + struct TunnelBgpConfig { + long localAsn; + std::string tunnelCidr; + std::string localBgpIp; + }; + TunnelBgpConfig tunnelBgpConfig; + std::string remoteCaCertificate; + std::string tunnelId; + struct TunnelIkeConfig { + std::string ikeVersion; + std::string ikeMode; + std::string ikeAuthAlg; + std::string psk; + std::string ikePfs; + long ikeLifetime; + std::string localId; + std::string ikeEncAlg; + std::string remoteId; + }; + TunnelIkeConfig tunnelIkeConfig; + bool enableNatTraversal; + bool enableDpd; + std::string customerGatewayId; + }; ModifyVpnConnectionAttributeRequest(); ~ModifyVpnConnectionAttributeRequest(); std::string getIkeConfig() const; @@ -46,6 +79,8 @@ public: void setHealthCheckConfig(const std::string &healthCheckConfig); std::string getLocalSubnet() const; void setLocalSubnet(const std::string &localSubnet); + bool getEnableTunnelsBgp() const; + void setEnableTunnelsBgp(bool enableTunnelsBgp); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getRemoteSubnet() const; @@ -60,6 +95,8 @@ public: void setOwnerId(long ownerId); bool getEnableDpd() const; void setEnableDpd(bool enableDpd); + std::vector getTunnelOptionsSpecification() const; + void setTunnelOptionsSpecification(const std::vector &tunnelOptionsSpecification); std::string getRemoteCaCertificate() const; void setRemoteCaCertificate(const std::string &remoteCaCertificate); std::string getVpnConnectionId() const; @@ -78,6 +115,7 @@ private: std::string bgpConfig_; std::string healthCheckConfig_; std::string localSubnet_; + bool enableTunnelsBgp_; std::string regionId_; std::string remoteSubnet_; bool effectImmediately_; @@ -85,6 +123,7 @@ private: std::string ownerAccount_; long ownerId_; bool enableDpd_; + std::vector tunnelOptionsSpecification_; std::string remoteCaCertificate_; std::string vpnConnectionId_; std::string name_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h index bf0523c4b..f8113f3ed 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnConnectionAttributeResult.h @@ -69,6 +69,48 @@ namespace AlibabaCloud int peerAsn; std::string localBgpIp; }; + struct TunnelOptions + { + struct TunnelBgpConfig + { + long localAsn; + std::string tunnelCidr; + std::string peerBgpIp; + long peerAsn; + std::string localBgpIp; + }; + struct TunnelIkeConfig + { + std::string ikeAuthAlg; + std::string localId; + std::string ikeEncAlg; + std::string ikeVersion; + std::string ikeMode; + long ikeLifetime; + std::string psk; + std::string remoteId; + std::string ikePfs; + }; + struct TunnelIpsecConfig + { + std::string ipsecPfs; + std::string ipsecEncAlg; + std::string ipsecAuthAlg; + long ipsecLifetime; + }; + std::string role; + TunnelIkeConfig tunnelIkeConfig; + std::string customerGatewayId; + std::string internetIp; + TunnelBgpConfig tunnelBgpConfig; + std::string state; + std::string remoteCaCertificate; + bool enableNatTraversal; + TunnelIpsecConfig tunnelIpsecConfig; + std::string tunnelId; + bool enableDpd; + std::string zoneNo; + }; ModifyVpnConnectionAttributeResult(); @@ -77,9 +119,12 @@ namespace AlibabaCloud std::string getLocalSubnet()const; std::string getDescription()const; std::string getCustomerGatewayId()const; + std::string getResourceGroupId()const; + bool getEnableTunnelsBgp()const; long getCreateTime()const; std::string getName()const; bool getEffectImmediately()const; + std::vector getTunnelOptionsSpecification()const; VcoHealthCheck getVcoHealthCheck()const; std::string getRemoteSubnet()const; std::string getVpnGatewayId()const; @@ -96,9 +141,12 @@ namespace AlibabaCloud std::string localSubnet_; std::string description_; std::string customerGatewayId_; + std::string resourceGroupId_; + bool enableTunnelsBgp_; long createTime_; std::string name_; bool effectImmediately_; + std::vector tunnelOptionsSpecification_; VcoHealthCheck vcoHealthCheck_; std::string remoteSubnet_; std::string vpnGatewayId_; diff --git a/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h index eeb799a07..92ed81f99 100644 --- a/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h +++ b/vpc/include/alibabacloud/vpc/model/ModifyVpnGatewayAttributeResult.h @@ -40,7 +40,9 @@ namespace AlibabaCloud std::string getStatus()const; std::string getDescription()const; bool getEnableBgp()const; + std::string getDisasterRecoveryVSwitchId()const; long getEndTime()const; + std::string getResourceGroupId()const; long getCreateTime()const; std::string getVSwitchId()const; bool getAutoPropagate()const; @@ -50,6 +52,8 @@ namespace AlibabaCloud std::string getVpcId()const; std::string getInternetIp()const; std::string getVpnGatewayId()const; + std::string getDisasterRecoveryInternetIp()const; + std::string getSslVpnInternetIp()const; std::string getSpec()const; protected: @@ -58,7 +62,9 @@ namespace AlibabaCloud std::string status_; std::string description_; bool enableBgp_; + std::string disasterRecoveryVSwitchId_; long endTime_; + std::string resourceGroupId_; long createTime_; std::string vSwitchId_; bool autoPropagate_; @@ -68,6 +74,8 @@ namespace AlibabaCloud std::string vpcId_; std::string internetIp_; std::string vpnGatewayId_; + std::string disasterRecoveryInternetIp_; + std::string sslVpnInternetIp_; std::string spec_; }; diff --git a/vpc/include/alibabacloud/vpc/model/MoveVpnResourceGroupRequest.h b/vpc/include/alibabacloud/vpc/model/MoveVpnResourceGroupRequest.h new file mode 100644 index 000000000..c6cfad173 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/MoveVpnResourceGroupRequest.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_VPC_MODEL_MOVEVPNRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_MOVEVPNRESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT MoveVpnResourceGroupRequest : public RpcServiceRequest { +public: + MoveVpnResourceGroupRequest(); + ~MoveVpnResourceGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::string instanceId_; + std::string newResourceGroupId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_MOVEVPNRESOURCEGROUPREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/MoveVpnResourceGroupResult.h b/vpc/include/alibabacloud/vpc/model/MoveVpnResourceGroupResult.h new file mode 100644 index 000000000..1d9511f28 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/MoveVpnResourceGroupResult.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_VPC_MODEL_MOVEVPNRESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_MOVEVPNRESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT MoveVpnResourceGroupResult : public ServiceResult + { + public: + + + MoveVpnResourceGroupResult(); + explicit MoveVpnResourceGroupResult(const std::string &payload); + ~MoveVpnResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_MOVEVPNRESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusRequest.h b/vpc/include/alibabacloud/vpc/model/OpenPublicIpAddressPoolServiceRequest.h similarity index 72% rename from vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusRequest.h rename to vpc/include/alibabacloud/vpc/model/OpenPublicIpAddressPoolServiceRequest.h index 0d315955c..b8ca50864 100644 --- a/vpc/include/alibabacloud/vpc/model/GetNatGatewayConvertStatusRequest.h +++ b/vpc/include/alibabacloud/vpc/model/OpenPublicIpAddressPoolServiceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSREQUEST_H_ -#define ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSREQUEST_H_ +#ifndef ALIBABACLOUD_VPC_MODEL_OPENPUBLICIPADDRESSPOOLSERVICEREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_OPENPUBLICIPADDRESSPOOLSERVICEREQUEST_H_ #include #include @@ -26,16 +26,16 @@ namespace AlibabaCloud { namespace Vpc { namespace Model { -class ALIBABACLOUD_VPC_EXPORT GetNatGatewayConvertStatusRequest : public RpcServiceRequest { +class ALIBABACLOUD_VPC_EXPORT OpenPublicIpAddressPoolServiceRequest : public RpcServiceRequest { public: - GetNatGatewayConvertStatusRequest(); - ~GetNatGatewayConvertStatusRequest(); + OpenPublicIpAddressPoolServiceRequest(); + ~OpenPublicIpAddressPoolServiceRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); std::string getRegionId() const; void setRegionId(const std::string ®ionId); - std::string getNatGatewayId() const; - void setNatGatewayId(const std::string &natGatewayId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -45,8 +45,8 @@ public: private: long resourceOwnerId_; + std::string clientToken_; std::string regionId_; - std::string natGatewayId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; @@ -54,4 +54,4 @@ private: } // namespace Model } // namespace Vpc } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_VPC_MODEL_GETNATGATEWAYCONVERTSTATUSREQUEST_H_ +#endif // !ALIBABACLOUD_VPC_MODEL_OPENPUBLICIPADDRESSPOOLSERVICEREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/OpenPublicIpAddressPoolServiceResult.h b/vpc/include/alibabacloud/vpc/model/OpenPublicIpAddressPoolServiceResult.h new file mode 100644 index 000000000..f8615ef8b --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/OpenPublicIpAddressPoolServiceResult.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_VPC_MODEL_OPENPUBLICIPADDRESSPOOLSERVICERESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_OPENPUBLICIPADDRESSPOOLSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT OpenPublicIpAddressPoolServiceResult : public ServiceResult + { + public: + + + OpenPublicIpAddressPoolServiceResult(); + explicit OpenPublicIpAddressPoolServiceResult(const std::string &payload); + ~OpenPublicIpAddressPoolServiceResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_OPENPUBLICIPADDRESSPOOLSERVICERESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h b/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h index 0665c3cfd..8a5567d2c 100644 --- a/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h +++ b/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceRequest.h @@ -30,10 +30,25 @@ class ALIBABACLOUD_VPC_EXPORT OpenTrafficMirrorServiceRequest : public RpcServic public: OpenTrafficMirrorServiceRequest(); ~OpenTrafficMirrorServiceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; long ownerId_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceResult.h b/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceResult.h index 50363cfa3..a9c123da3 100644 --- a/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceResult.h +++ b/vpc/include/alibabacloud/vpc/model/OpenTrafficMirrorServiceResult.h @@ -37,12 +37,14 @@ namespace AlibabaCloud OpenTrafficMirrorServiceResult(); explicit OpenTrafficMirrorServiceResult(const std::string &payload); ~OpenTrafficMirrorServiceResult(); - std::string getOrderId()const; + std::string getMessage()const; + std::string getCode()const; protected: void parse(const std::string &payload); private: - std::string orderId_; + std::string message_; + std::string code_; }; } diff --git a/vpc/include/alibabacloud/vpc/model/PublishVpcRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/PublishVpcRouteEntriesRequest.h new file mode 100644 index 000000000..96b384722 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/PublishVpcRouteEntriesRequest.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_VPC_MODEL_PUBLISHVPCROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_PUBLISHVPCROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT PublishVpcRouteEntriesRequest : public RpcServiceRequest { +public: + struct RouteEntries { + std::string routeTableId; + std::string destinationCidrBlock; + }; + PublishVpcRouteEntriesRequest(); + ~PublishVpcRouteEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTargetInstanceId() const; + void setTargetInstanceId(const std::string &targetInstanceId); + std::vector getRouteEntries() const; + void setRouteEntries(const std::vector &routeEntries); + +private: + long resourceOwnerId_; + std::string targetType_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string targetInstanceId_; + std::vector routeEntries_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_PUBLISHVPCROUTEENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/PublishVpcRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/PublishVpcRouteEntriesResult.h new file mode 100644 index 000000000..85b7dc36e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/PublishVpcRouteEntriesResult.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_VPC_MODEL_PUBLISHVPCROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_PUBLISHVPCROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT PublishVpcRouteEntriesResult : public ServiceResult + { + public: + + + PublishVpcRouteEntriesResult(); + explicit PublishVpcRouteEntriesResult(const std::string &payload); + ~PublishVpcRouteEntriesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_PUBLISHVPCROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/ReleaseIpv6AddressRequest.h b/vpc/include/alibabacloud/vpc/model/ReleaseIpv6AddressRequest.h new file mode 100644 index 000000000..4a7a196e4 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ReleaseIpv6AddressRequest.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_VPC_MODEL_RELEASEIPV6ADDRESSREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_RELEASEIPV6ADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT ReleaseIpv6AddressRequest : public RpcServiceRequest { +public: + ReleaseIpv6AddressRequest(); + ~ReleaseIpv6AddressRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getIpv6AddressId() const; + void setIpv6AddressId(const std::string &ipv6AddressId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipv6AddressId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_RELEASEIPV6ADDRESSREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/ReleaseIpv6AddressResult.h b/vpc/include/alibabacloud/vpc/model/ReleaseIpv6AddressResult.h new file mode 100644 index 000000000..f3a3b9737 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/ReleaseIpv6AddressResult.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_VPC_MODEL_RELEASEIPV6ADDRESSRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_RELEASEIPV6ADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT ReleaseIpv6AddressResult : public ServiceResult + { + public: + + + ReleaseIpv6AddressResult(); + explicit ReleaseIpv6AddressResult(const std::string &payload); + ~ReleaseIpv6AddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_RELEASEIPV6ADDRESSRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/SecondApplyPhysicalConnectionLOARequest.h b/vpc/include/alibabacloud/vpc/model/SecondApplyPhysicalConnectionLOARequest.h new file mode 100644 index 000000000..c430ab5d0 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/SecondApplyPhysicalConnectionLOARequest.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_VPC_MODEL_SECONDAPPLYPHYSICALCONNECTIONLOAREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_SECONDAPPLYPHYSICALCONNECTIONLOAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT SecondApplyPhysicalConnectionLOARequest : public RpcServiceRequest { +public: + struct PMInfo { + std::string pMCertificateNo; + std::string pMName; + std::string pMCertificateType; + std::string pMGender; + std::string pMContactInfo; + }; + SecondApplyPhysicalConnectionLOARequest(); + ~SecondApplyPhysicalConnectionLOARequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getLineType() const; + void setLineType(const std::string &lineType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSi() const; + void setSi(const std::string &si); + std::string getPeerLocation() const; + void setPeerLocation(const std::string &peerLocation); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getConstructionTime() const; + void setConstructionTime(const std::string &constructionTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getCompanyName() const; + void setCompanyName(const std::string &companyName); + std::vector getPMInfo() const; + void setPMInfo(const std::vector &pMInfo); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string lineType_; + std::string regionId_; + std::string si_; + std::string peerLocation_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + std::string constructionTime_; + long ownerId_; + std::string instanceId_; + std::string companyName_; + std::vector pMInfo_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_SECONDAPPLYPHYSICALCONNECTIONLOAREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/SecondApplyPhysicalConnectionLOAResult.h b/vpc/include/alibabacloud/vpc/model/SecondApplyPhysicalConnectionLOAResult.h new file mode 100644 index 000000000..532a858c2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/SecondApplyPhysicalConnectionLOAResult.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_VPC_MODEL_SECONDAPPLYPHYSICALCONNECTIONLOARESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_SECONDAPPLYPHYSICALCONNECTIONLOARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT SecondApplyPhysicalConnectionLOAResult : public ServiceResult + { + public: + + + SecondApplyPhysicalConnectionLOAResult(); + explicit SecondApplyPhysicalConnectionLOAResult(const std::string &payload); + ~SecondApplyPhysicalConnectionLOAResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_SECONDAPPLYPHYSICALCONNECTIONLOARESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/StartFailoverTestJobRequest.h b/vpc/include/alibabacloud/vpc/model/StartFailoverTestJobRequest.h new file mode 100644 index 000000000..d1a9212f2 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/StartFailoverTestJobRequest.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_VPC_MODEL_STARTFAILOVERTESTJOBREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_STARTFAILOVERTESTJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT StartFailoverTestJobRequest : public RpcServiceRequest { +public: + StartFailoverTestJobRequest(); + ~StartFailoverTestJobRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string clientToken_; + std::string jobId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_STARTFAILOVERTESTJOBREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/StartFailoverTestJobResult.h b/vpc/include/alibabacloud/vpc/model/StartFailoverTestJobResult.h new file mode 100644 index 000000000..7e0d587a8 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/StartFailoverTestJobResult.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_VPC_MODEL_STARTFAILOVERTESTJOBRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_STARTFAILOVERTESTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT StartFailoverTestJobResult : public ServiceResult + { + public: + + + StartFailoverTestJobResult(); + explicit StartFailoverTestJobResult(const std::string &payload); + ~StartFailoverTestJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_STARTFAILOVERTESTJOBRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/StopFailoverTestJobRequest.h b/vpc/include/alibabacloud/vpc/model/StopFailoverTestJobRequest.h new file mode 100644 index 000000000..226d75698 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/StopFailoverTestJobRequest.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_VPC_MODEL_STOPFAILOVERTESTJOBREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_STOPFAILOVERTESTJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT StopFailoverTestJobRequest : public RpcServiceRequest { +public: + StopFailoverTestJobRequest(); + ~StopFailoverTestJobRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string clientToken_; + std::string jobId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_STOPFAILOVERTESTJOBREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/StopFailoverTestJobResult.h b/vpc/include/alibabacloud/vpc/model/StopFailoverTestJobResult.h new file mode 100644 index 000000000..59951b116 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/StopFailoverTestJobResult.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_VPC_MODEL_STOPFAILOVERTESTJOBRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_STOPFAILOVERTESTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT StopFailoverTestJobResult : public ServiceResult + { + public: + + + StopFailoverTestJobResult(); + explicit StopFailoverTestJobResult(const std::string &payload); + ~StopFailoverTestJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_STOPFAILOVERTESTJOBRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/TransformEipSegmentToPublicIpAddressPoolRequest.h b/vpc/include/alibabacloud/vpc/model/TransformEipSegmentToPublicIpAddressPoolRequest.h new file mode 100644 index 000000000..e28733672 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/TransformEipSegmentToPublicIpAddressPoolRequest.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_VPC_MODEL_TRANSFORMEIPSEGMENTTOPUBLICIPADDRESSPOOLREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_TRANSFORMEIPSEGMENTTOPUBLICIPADDRESSPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT TransformEipSegmentToPublicIpAddressPoolRequest : public RpcServiceRequest { +public: + TransformEipSegmentToPublicIpAddressPoolRequest(); + ~TransformEipSegmentToPublicIpAddressPoolRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string clientToken_; + std::string description_; + std::string resourceGroupId_; + std::string regionId_; + std::string instanceId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_TRANSFORMEIPSEGMENTTOPUBLICIPADDRESSPOOLREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/TransformEipSegmentToPublicIpAddressPoolResult.h b/vpc/include/alibabacloud/vpc/model/TransformEipSegmentToPublicIpAddressPoolResult.h new file mode 100644 index 000000000..cc3219a62 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/TransformEipSegmentToPublicIpAddressPoolResult.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_VPC_MODEL_TRANSFORMEIPSEGMENTTOPUBLICIPADDRESSPOOLRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_TRANSFORMEIPSEGMENTTOPUBLICIPADDRESSPOOLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT TransformEipSegmentToPublicIpAddressPoolResult : public ServiceResult + { + public: + + + TransformEipSegmentToPublicIpAddressPoolResult(); + explicit TransformEipSegmentToPublicIpAddressPoolResult(const std::string &payload); + ~TransformEipSegmentToPublicIpAddressPoolResult(); + std::string getResourceGroupId()const; + std::string getPublicIpAddressPoolId()const; + + protected: + void parse(const std::string &payload); + private: + std::string resourceGroupId_; + std::string publicIpAddressPoolId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_TRANSFORMEIPSEGMENTTOPUBLICIPADDRESSPOOLRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h b/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h index 06b5ec6f3..26d85f138 100644 --- a/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UnassociateNetworkAclRequest.h @@ -42,10 +42,14 @@ public: void setRegionId(const std::string ®ionId); std::string getNetworkAclId() const; void setNetworkAclId(const std::string &networkAclId); + bool getDryRun() const; + void setDryRun(bool dryRun); std::vector getResource() const; void setResource(const std::vector &resource); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); @@ -54,8 +58,10 @@ private: std::string clientToken_; std::string regionId_; std::string networkAclId_; + bool dryRun_; std::vector resource_; std::string resourceOwnerAccount_; + std::string ownerAccount_; long ownerId_; }; } // namespace Model diff --git a/vpc/include/alibabacloud/vpc/model/UpdateFailoverTestJobRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateFailoverTestJobRequest.h new file mode 100644 index 000000000..4f155f604 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateFailoverTestJobRequest.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_VPC_MODEL_UPDATEFAILOVERTESTJOBREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEFAILOVERTESTJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT UpdateFailoverTestJobRequest : public RpcServiceRequest { +public: + UpdateFailoverTestJobRequest(); + ~UpdateFailoverTestJobRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + int getJobDuration() const; + void setJobDuration(int jobDuration); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string clientToken_; + std::string description_; + int jobDuration_; + std::string jobId_; + std::string regionId_; + std::vector resourceId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEFAILOVERTESTJOBREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/UpdateFailoverTestJobResult.h b/vpc/include/alibabacloud/vpc/model/UpdateFailoverTestJobResult.h new file mode 100644 index 000000000..e2a09f33e --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/UpdateFailoverTestJobResult.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_VPC_MODEL_UPDATEFAILOVERTESTJOBRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_UPDATEFAILOVERTESTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT UpdateFailoverTestJobResult : public ServiceResult + { + public: + + + UpdateFailoverTestJobResult(); + explicit UpdateFailoverTestJobResult(const std::string &payload); + ~UpdateFailoverTestJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_UPDATEFAILOVERTESTJOBRESULT_H_ \ No newline at end of file diff --git a/vpc/include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeRequest.h index 46d6588b4..1da6ee83a 100644 --- a/vpc/include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateGatewayRouteTableEntryAttributeRequest.h @@ -52,6 +52,8 @@ public: void setDestinationCidrBlock(const std::string &destinationCidrBlock); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + std::string getGatewayRouteTableId() const; + void setGatewayRouteTableId(const std::string &gatewayRouteTableId); long getOwnerId() const; void setOwnerId(long ownerId); std::string getName() const; @@ -69,6 +71,7 @@ private: std::string resourceOwnerAccount_; std::string destinationCidrBlock_; std::string ownerAccount_; + std::string gatewayRouteTableId_; long ownerId_; std::string name_; }; diff --git a/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h index 47a8d41a8..b2fef67be 100644 --- a/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateNetworkAclEntriesRequest.h @@ -36,6 +36,7 @@ public: std::string description; std::string protocol; std::string destinationCidrIp; + std::string ipVersion; std::string port; }; struct IngressAclEntries { @@ -44,6 +45,7 @@ public: std::string networkAclEntryName; std::string policy; std::string sourceCidrIp; + std::string ipVersion; std::string description; std::string protocol; std::string port; @@ -62,8 +64,12 @@ public: void setNetworkAclId(const std::string &networkAclId); bool getUpdateIngressAclEntries() const; void setUpdateIngressAclEntries(bool updateIngressAclEntries); + bool getDryRun() const; + void setDryRun(bool dryRun); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); bool getUpdateEgressAclEntries() const; void setUpdateEgressAclEntries(bool updateEgressAclEntries); long getOwnerId() const; @@ -78,7 +84,9 @@ private: std::string regionId_; std::string networkAclId_; bool updateIngressAclEntries_; + bool dryRun_; std::string resourceOwnerAccount_; + std::string ownerAccount_; bool updateEgressAclEntries_; long ownerId_; std::vector ingressAclEntries_; diff --git a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h index b8e91310a..b004dbe64 100644 --- a/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h +++ b/vpc/include/alibabacloud/vpc/model/UpdateTrafficMirrorSessionAttributeRequest.h @@ -60,8 +60,12 @@ public: void setTrafficMirrorTargetId(const std::string &trafficMirrorTargetId); std::string getTrafficMirrorFilterId() const; void setTrafficMirrorFilterId(const std::string &trafficMirrorFilterId); + int getPacketLength() const; + void setPacketLength(int packetLength); int getVirtualNetworkId() const; void setVirtualNetworkId(int virtualNetworkId); + int getTrafficMirrorSourceTruncateMode() const; + void setTrafficMirrorSourceTruncateMode(int trafficMirrorSourceTruncateMode); private: std::string trafficMirrorTargetType_; @@ -79,7 +83,9 @@ private: long ownerId_; std::string trafficMirrorTargetId_; std::string trafficMirrorFilterId_; + int packetLength_; int virtualNetworkId_; + int trafficMirrorSourceTruncateMode_; }; } // namespace Model } // namespace Vpc diff --git a/vpc/include/alibabacloud/vpc/model/WithdrawVpcPublishedRouteEntriesRequest.h b/vpc/include/alibabacloud/vpc/model/WithdrawVpcPublishedRouteEntriesRequest.h new file mode 100644 index 000000000..27830d869 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/WithdrawVpcPublishedRouteEntriesRequest.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_VPC_MODEL_WITHDRAWVPCPUBLISHEDROUTEENTRIESREQUEST_H_ +#define ALIBABACLOUD_VPC_MODEL_WITHDRAWVPCPUBLISHEDROUTEENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Vpc { +namespace Model { +class ALIBABACLOUD_VPC_EXPORT WithdrawVpcPublishedRouteEntriesRequest : public RpcServiceRequest { +public: + struct RouteEntries { + std::string routeTableId; + std::string destinationCidrBlock; + }; + WithdrawVpcPublishedRouteEntriesRequest(); + ~WithdrawVpcPublishedRouteEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTargetInstanceId() const; + void setTargetInstanceId(const std::string &targetInstanceId); + std::vector getRouteEntries() const; + void setRouteEntries(const std::vector &routeEntries); + +private: + long resourceOwnerId_; + std::string targetType_; + std::string regionId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string targetInstanceId_; + std::vector routeEntries_; +}; +} // namespace Model +} // namespace Vpc +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VPC_MODEL_WITHDRAWVPCPUBLISHEDROUTEENTRIESREQUEST_H_ diff --git a/vpc/include/alibabacloud/vpc/model/WithdrawVpcPublishedRouteEntriesResult.h b/vpc/include/alibabacloud/vpc/model/WithdrawVpcPublishedRouteEntriesResult.h new file mode 100644 index 000000000..764fde498 --- /dev/null +++ b/vpc/include/alibabacloud/vpc/model/WithdrawVpcPublishedRouteEntriesResult.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_VPC_MODEL_WITHDRAWVPCPUBLISHEDROUTEENTRIESRESULT_H_ +#define ALIBABACLOUD_VPC_MODEL_WITHDRAWVPCPUBLISHEDROUTEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vpc + { + namespace Model + { + class ALIBABACLOUD_VPC_EXPORT WithdrawVpcPublishedRouteEntriesResult : public ServiceResult + { + public: + + + WithdrawVpcPublishedRouteEntriesResult(); + explicit WithdrawVpcPublishedRouteEntriesResult(const std::string &payload); + ~WithdrawVpcPublishedRouteEntriesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_VPC_MODEL_WITHDRAWVPCPUBLISHEDROUTEENTRIESRESULT_H_ \ No newline at end of file diff --git a/vpc/src/VpcClient.cc b/vpc/src/VpcClient.cc index 1361ab6be..b56e3a98c 100644 --- a/vpc/src/VpcClient.cc +++ b/vpc/src/VpcClient.cc @@ -483,6 +483,42 @@ VpcClient::AllocateEipSegmentAddressOutcomeCallable VpcClient::allocateEipSegmen return task->get_future(); } +VpcClient::AllocateIpv6AddressOutcome VpcClient::allocateIpv6Address(const AllocateIpv6AddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateIpv6AddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateIpv6AddressOutcome(AllocateIpv6AddressResult(outcome.result())); + else + return AllocateIpv6AddressOutcome(outcome.error()); +} + +void VpcClient::allocateIpv6AddressAsync(const AllocateIpv6AddressRequest& request, const AllocateIpv6AddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateIpv6Address(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::AllocateIpv6AddressOutcomeCallable VpcClient::allocateIpv6AddressCallable(const AllocateIpv6AddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateIpv6Address(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::AllocateIpv6InternetBandwidthOutcome VpcClient::allocateIpv6InternetBandwidth(const AllocateIpv6InternetBandwidthRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,42 +699,6 @@ VpcClient::AssociateEipAddressBatchOutcomeCallable VpcClient::associateEipAddres return task->get_future(); } -VpcClient::AssociateGlobalAccelerationInstanceOutcome VpcClient::associateGlobalAccelerationInstance(const AssociateGlobalAccelerationInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AssociateGlobalAccelerationInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AssociateGlobalAccelerationInstanceOutcome(AssociateGlobalAccelerationInstanceResult(outcome.result())); - else - return AssociateGlobalAccelerationInstanceOutcome(outcome.error()); -} - -void VpcClient::associateGlobalAccelerationInstanceAsync(const AssociateGlobalAccelerationInstanceRequest& request, const AssociateGlobalAccelerationInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, associateGlobalAccelerationInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::AssociateGlobalAccelerationInstanceOutcomeCallable VpcClient::associateGlobalAccelerationInstanceCallable(const AssociateGlobalAccelerationInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->associateGlobalAccelerationInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::AssociateHaVipOutcome VpcClient::associateHaVip(const AssociateHaVipRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,6 +1707,150 @@ VpcClient::CreateExpressCloudConnectionOutcomeCallable VpcClient::createExpressC return task->get_future(); } +VpcClient::CreateExpressConnectTrafficQosOutcome VpcClient::createExpressConnectTrafficQos(const CreateExpressConnectTrafficQosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateExpressConnectTrafficQosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateExpressConnectTrafficQosOutcome(CreateExpressConnectTrafficQosResult(outcome.result())); + else + return CreateExpressConnectTrafficQosOutcome(outcome.error()); +} + +void VpcClient::createExpressConnectTrafficQosAsync(const CreateExpressConnectTrafficQosRequest& request, const CreateExpressConnectTrafficQosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createExpressConnectTrafficQos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateExpressConnectTrafficQosOutcomeCallable VpcClient::createExpressConnectTrafficQosCallable(const CreateExpressConnectTrafficQosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createExpressConnectTrafficQos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateExpressConnectTrafficQosQueueOutcome VpcClient::createExpressConnectTrafficQosQueue(const CreateExpressConnectTrafficQosQueueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateExpressConnectTrafficQosQueueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateExpressConnectTrafficQosQueueOutcome(CreateExpressConnectTrafficQosQueueResult(outcome.result())); + else + return CreateExpressConnectTrafficQosQueueOutcome(outcome.error()); +} + +void VpcClient::createExpressConnectTrafficQosQueueAsync(const CreateExpressConnectTrafficQosQueueRequest& request, const CreateExpressConnectTrafficQosQueueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createExpressConnectTrafficQosQueue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateExpressConnectTrafficQosQueueOutcomeCallable VpcClient::createExpressConnectTrafficQosQueueCallable(const CreateExpressConnectTrafficQosQueueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createExpressConnectTrafficQosQueue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateExpressConnectTrafficQosRuleOutcome VpcClient::createExpressConnectTrafficQosRule(const CreateExpressConnectTrafficQosRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateExpressConnectTrafficQosRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateExpressConnectTrafficQosRuleOutcome(CreateExpressConnectTrafficQosRuleResult(outcome.result())); + else + return CreateExpressConnectTrafficQosRuleOutcome(outcome.error()); +} + +void VpcClient::createExpressConnectTrafficQosRuleAsync(const CreateExpressConnectTrafficQosRuleRequest& request, const CreateExpressConnectTrafficQosRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createExpressConnectTrafficQosRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateExpressConnectTrafficQosRuleOutcomeCallable VpcClient::createExpressConnectTrafficQosRuleCallable(const CreateExpressConnectTrafficQosRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createExpressConnectTrafficQosRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::CreateFailoverTestJobOutcome VpcClient::createFailoverTestJob(const CreateFailoverTestJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFailoverTestJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFailoverTestJobOutcome(CreateFailoverTestJobResult(outcome.result())); + else + return CreateFailoverTestJobOutcome(outcome.error()); +} + +void VpcClient::createFailoverTestJobAsync(const CreateFailoverTestJobRequest& request, const CreateFailoverTestJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFailoverTestJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateFailoverTestJobOutcomeCallable VpcClient::createFailoverTestJobCallable(const CreateFailoverTestJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFailoverTestJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateFlowLogOutcome VpcClient::createFlowLog(const CreateFlowLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,6 +2031,42 @@ VpcClient::CreateHaVipOutcomeCallable VpcClient::createHaVipCallable(const Creat return task->get_future(); } +VpcClient::CreateHighReliablePhysicalConnectionOutcome VpcClient::createHighReliablePhysicalConnection(const CreateHighReliablePhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateHighReliablePhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateHighReliablePhysicalConnectionOutcome(CreateHighReliablePhysicalConnectionResult(outcome.result())); + else + return CreateHighReliablePhysicalConnectionOutcome(outcome.error()); +} + +void VpcClient::createHighReliablePhysicalConnectionAsync(const CreateHighReliablePhysicalConnectionRequest& request, const CreateHighReliablePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createHighReliablePhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateHighReliablePhysicalConnectionOutcomeCallable VpcClient::createHighReliablePhysicalConnectionCallable(const CreateHighReliablePhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createHighReliablePhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateIPv6TranslatorOutcome VpcClient::createIPv6Translator(const CreateIPv6TranslatorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2823,6 +3003,42 @@ VpcClient::CreateVSwitchOutcomeCallable VpcClient::createVSwitchCallable(const C return task->get_future(); } +VpcClient::CreateVSwitchCidrReservationOutcome VpcClient::createVSwitchCidrReservation(const CreateVSwitchCidrReservationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVSwitchCidrReservationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVSwitchCidrReservationOutcome(CreateVSwitchCidrReservationResult(outcome.result())); + else + return CreateVSwitchCidrReservationOutcome(outcome.error()); +} + +void VpcClient::createVSwitchCidrReservationAsync(const CreateVSwitchCidrReservationRequest& request, const CreateVSwitchCidrReservationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVSwitchCidrReservation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::CreateVSwitchCidrReservationOutcomeCallable VpcClient::createVSwitchCidrReservationCallable(const CreateVSwitchCidrReservationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVSwitchCidrReservation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::CreateVbrHaOutcome VpcClient::createVbrHa(const CreateVbrHaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3579,6 +3795,150 @@ VpcClient::DeleteDhcpOptionsSetOutcomeCallable VpcClient::deleteDhcpOptionsSetCa return task->get_future(); } +VpcClient::DeleteExpressConnectTrafficQosOutcome VpcClient::deleteExpressConnectTrafficQos(const DeleteExpressConnectTrafficQosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteExpressConnectTrafficQosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteExpressConnectTrafficQosOutcome(DeleteExpressConnectTrafficQosResult(outcome.result())); + else + return DeleteExpressConnectTrafficQosOutcome(outcome.error()); +} + +void VpcClient::deleteExpressConnectTrafficQosAsync(const DeleteExpressConnectTrafficQosRequest& request, const DeleteExpressConnectTrafficQosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteExpressConnectTrafficQos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteExpressConnectTrafficQosOutcomeCallable VpcClient::deleteExpressConnectTrafficQosCallable(const DeleteExpressConnectTrafficQosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteExpressConnectTrafficQos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteExpressConnectTrafficQosQueueOutcome VpcClient::deleteExpressConnectTrafficQosQueue(const DeleteExpressConnectTrafficQosQueueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteExpressConnectTrafficQosQueueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteExpressConnectTrafficQosQueueOutcome(DeleteExpressConnectTrafficQosQueueResult(outcome.result())); + else + return DeleteExpressConnectTrafficQosQueueOutcome(outcome.error()); +} + +void VpcClient::deleteExpressConnectTrafficQosQueueAsync(const DeleteExpressConnectTrafficQosQueueRequest& request, const DeleteExpressConnectTrafficQosQueueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteExpressConnectTrafficQosQueue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteExpressConnectTrafficQosQueueOutcomeCallable VpcClient::deleteExpressConnectTrafficQosQueueCallable(const DeleteExpressConnectTrafficQosQueueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteExpressConnectTrafficQosQueue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteExpressConnectTrafficQosRuleOutcome VpcClient::deleteExpressConnectTrafficQosRule(const DeleteExpressConnectTrafficQosRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteExpressConnectTrafficQosRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteExpressConnectTrafficQosRuleOutcome(DeleteExpressConnectTrafficQosRuleResult(outcome.result())); + else + return DeleteExpressConnectTrafficQosRuleOutcome(outcome.error()); +} + +void VpcClient::deleteExpressConnectTrafficQosRuleAsync(const DeleteExpressConnectTrafficQosRuleRequest& request, const DeleteExpressConnectTrafficQosRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteExpressConnectTrafficQosRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteExpressConnectTrafficQosRuleOutcomeCallable VpcClient::deleteExpressConnectTrafficQosRuleCallable(const DeleteExpressConnectTrafficQosRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteExpressConnectTrafficQosRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DeleteFailoverTestJobOutcome VpcClient::deleteFailoverTestJob(const DeleteFailoverTestJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFailoverTestJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFailoverTestJobOutcome(DeleteFailoverTestJobResult(outcome.result())); + else + return DeleteFailoverTestJobOutcome(outcome.error()); +} + +void VpcClient::deleteFailoverTestJobAsync(const DeleteFailoverTestJobRequest& request, const DeleteFailoverTestJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFailoverTestJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteFailoverTestJobOutcomeCallable VpcClient::deleteFailoverTestJobCallable(const DeleteFailoverTestJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFailoverTestJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteFlowLogOutcome VpcClient::deleteFlowLog(const DeleteFlowLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4695,6 +5055,42 @@ VpcClient::DeleteVSwitchOutcomeCallable VpcClient::deleteVSwitchCallable(const D return task->get_future(); } +VpcClient::DeleteVSwitchCidrReservationOutcome VpcClient::deleteVSwitchCidrReservation(const DeleteVSwitchCidrReservationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVSwitchCidrReservationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVSwitchCidrReservationOutcome(DeleteVSwitchCidrReservationResult(outcome.result())); + else + return DeleteVSwitchCidrReservationOutcome(outcome.error()); +} + +void VpcClient::deleteVSwitchCidrReservationAsync(const DeleteVSwitchCidrReservationRequest& request, const DeleteVSwitchCidrReservationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVSwitchCidrReservation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DeleteVSwitchCidrReservationOutcomeCallable VpcClient::deleteVSwitchCidrReservationCallable(const DeleteVSwitchCidrReservationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVSwitchCidrReservation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DeleteVbrHaOutcome VpcClient::deleteVbrHa(const DeleteVbrHaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5127,6 +5523,42 @@ VpcClient::DeletionProtectionOutcomeCallable VpcClient::deletionProtectionCallab return task->get_future(); } +VpcClient::Describe95TrafficOutcome VpcClient::describe95Traffic(const Describe95TrafficRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return Describe95TrafficOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return Describe95TrafficOutcome(Describe95TrafficResult(outcome.result())); + else + return Describe95TrafficOutcome(outcome.error()); +} + +void VpcClient::describe95TrafficAsync(const Describe95TrafficRequest& request, const Describe95TrafficAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describe95Traffic(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::Describe95TrafficOutcomeCallable VpcClient::describe95TrafficCallable(const Describe95TrafficRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describe95Traffic(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeAccessPointsOutcome VpcClient::describeAccessPoints(const DescribeAccessPointsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5559,6 +5991,186 @@ VpcClient::DescribeEipSegmentOutcomeCallable VpcClient::describeEipSegmentCallab return task->get_future(); } +VpcClient::DescribeExpressConnectTrafficQosOutcome VpcClient::describeExpressConnectTrafficQos(const DescribeExpressConnectTrafficQosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeExpressConnectTrafficQosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeExpressConnectTrafficQosOutcome(DescribeExpressConnectTrafficQosResult(outcome.result())); + else + return DescribeExpressConnectTrafficQosOutcome(outcome.error()); +} + +void VpcClient::describeExpressConnectTrafficQosAsync(const DescribeExpressConnectTrafficQosRequest& request, const DescribeExpressConnectTrafficQosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeExpressConnectTrafficQos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeExpressConnectTrafficQosOutcomeCallable VpcClient::describeExpressConnectTrafficQosCallable(const DescribeExpressConnectTrafficQosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeExpressConnectTrafficQos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeExpressConnectTrafficQosQueueOutcome VpcClient::describeExpressConnectTrafficQosQueue(const DescribeExpressConnectTrafficQosQueueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeExpressConnectTrafficQosQueueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeExpressConnectTrafficQosQueueOutcome(DescribeExpressConnectTrafficQosQueueResult(outcome.result())); + else + return DescribeExpressConnectTrafficQosQueueOutcome(outcome.error()); +} + +void VpcClient::describeExpressConnectTrafficQosQueueAsync(const DescribeExpressConnectTrafficQosQueueRequest& request, const DescribeExpressConnectTrafficQosQueueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeExpressConnectTrafficQosQueue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeExpressConnectTrafficQosQueueOutcomeCallable VpcClient::describeExpressConnectTrafficQosQueueCallable(const DescribeExpressConnectTrafficQosQueueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeExpressConnectTrafficQosQueue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeExpressConnectTrafficQosRuleOutcome VpcClient::describeExpressConnectTrafficQosRule(const DescribeExpressConnectTrafficQosRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeExpressConnectTrafficQosRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeExpressConnectTrafficQosRuleOutcome(DescribeExpressConnectTrafficQosRuleResult(outcome.result())); + else + return DescribeExpressConnectTrafficQosRuleOutcome(outcome.error()); +} + +void VpcClient::describeExpressConnectTrafficQosRuleAsync(const DescribeExpressConnectTrafficQosRuleRequest& request, const DescribeExpressConnectTrafficQosRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeExpressConnectTrafficQosRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeExpressConnectTrafficQosRuleOutcomeCallable VpcClient::describeExpressConnectTrafficQosRuleCallable(const DescribeExpressConnectTrafficQosRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeExpressConnectTrafficQosRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeFailoverTestJobOutcome VpcClient::describeFailoverTestJob(const DescribeFailoverTestJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFailoverTestJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFailoverTestJobOutcome(DescribeFailoverTestJobResult(outcome.result())); + else + return DescribeFailoverTestJobOutcome(outcome.error()); +} + +void VpcClient::describeFailoverTestJobAsync(const DescribeFailoverTestJobRequest& request, const DescribeFailoverTestJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFailoverTestJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeFailoverTestJobOutcomeCallable VpcClient::describeFailoverTestJobCallable(const DescribeFailoverTestJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFailoverTestJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::DescribeFailoverTestJobsOutcome VpcClient::describeFailoverTestJobs(const DescribeFailoverTestJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFailoverTestJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFailoverTestJobsOutcome(DescribeFailoverTestJobsResult(outcome.result())); + else + return DescribeFailoverTestJobsOutcome(outcome.error()); +} + +void VpcClient::describeFailoverTestJobsAsync(const DescribeFailoverTestJobsRequest& request, const DescribeFailoverTestJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFailoverTestJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeFailoverTestJobsOutcomeCallable VpcClient::describeFailoverTestJobsCallable(const DescribeFailoverTestJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFailoverTestJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeFlowLogsOutcome VpcClient::describeFlowLogs(const DescribeFlowLogsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6063,6 +6675,42 @@ VpcClient::DescribeIpv6GatewaysOutcomeCallable VpcClient::describeIpv6GatewaysCa return task->get_future(); } +VpcClient::DescribeNatGatewayAssociateNetworkInterfacesOutcome VpcClient::describeNatGatewayAssociateNetworkInterfaces(const DescribeNatGatewayAssociateNetworkInterfacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNatGatewayAssociateNetworkInterfacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNatGatewayAssociateNetworkInterfacesOutcome(DescribeNatGatewayAssociateNetworkInterfacesResult(outcome.result())); + else + return DescribeNatGatewayAssociateNetworkInterfacesOutcome(outcome.error()); +} + +void VpcClient::describeNatGatewayAssociateNetworkInterfacesAsync(const DescribeNatGatewayAssociateNetworkInterfacesRequest& request, const DescribeNatGatewayAssociateNetworkInterfacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNatGatewayAssociateNetworkInterfaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeNatGatewayAssociateNetworkInterfacesOutcomeCallable VpcClient::describeNatGatewayAssociateNetworkInterfacesCallable(const DescribeNatGatewayAssociateNetworkInterfacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNatGatewayAssociateNetworkInterfaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeNatGatewaysOutcome VpcClient::describeNatGateways(const DescribeNatGatewaysRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6639,6 +7287,42 @@ VpcClient::DescribeSslVpnClientCertsOutcomeCallable VpcClient::describeSslVpnCli return task->get_future(); } +VpcClient::DescribeSslVpnClientsOutcome VpcClient::describeSslVpnClients(const DescribeSslVpnClientsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSslVpnClientsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSslVpnClientsOutcome(DescribeSslVpnClientsResult(outcome.result())); + else + return DescribeSslVpnClientsOutcome(outcome.error()); +} + +void VpcClient::describeSslVpnClientsAsync(const DescribeSslVpnClientsRequest& request, const DescribeSslVpnClientsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSslVpnClients(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeSslVpnClientsOutcomeCallable VpcClient::describeSslVpnClientsCallable(const DescribeSslVpnClientsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSslVpnClients(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeSslVpnServersOutcome VpcClient::describeSslVpnServers(const DescribeSslVpnServersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7323,6 +8007,42 @@ VpcClient::DescribeVpnGatewayOutcomeCallable VpcClient::describeVpnGatewayCallab return task->get_future(); } +VpcClient::DescribeVpnGatewayAvailableZonesOutcome VpcClient::describeVpnGatewayAvailableZones(const DescribeVpnGatewayAvailableZonesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpnGatewayAvailableZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpnGatewayAvailableZonesOutcome(DescribeVpnGatewayAvailableZonesResult(outcome.result())); + else + return DescribeVpnGatewayAvailableZonesOutcome(outcome.error()); +} + +void VpcClient::describeVpnGatewayAvailableZonesAsync(const DescribeVpnGatewayAvailableZonesRequest& request, const DescribeVpnGatewayAvailableZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpnGatewayAvailableZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DescribeVpnGatewayAvailableZonesOutcomeCallable VpcClient::describeVpnGatewayAvailableZonesCallable(const DescribeVpnGatewayAvailableZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpnGatewayAvailableZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DescribeVpnGatewaysOutcome VpcClient::describeVpnGateways(const DescribeVpnGatewaysRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -7539,6 +8259,42 @@ VpcClient::DetachDhcpOptionsSetFromVpcOutcomeCallable VpcClient::detachDhcpOptio return task->get_future(); } +VpcClient::DiagnoseVpnConnectionsOutcome VpcClient::diagnoseVpnConnections(const DiagnoseVpnConnectionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DiagnoseVpnConnectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DiagnoseVpnConnectionsOutcome(DiagnoseVpnConnectionsResult(outcome.result())); + else + return DiagnoseVpnConnectionsOutcome(outcome.error()); +} + +void VpcClient::diagnoseVpnConnectionsAsync(const DiagnoseVpnConnectionsRequest& request, const DiagnoseVpnConnectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, diagnoseVpnConnections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::DiagnoseVpnConnectionsOutcomeCallable VpcClient::diagnoseVpnConnectionsCallable(const DiagnoseVpnConnectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->diagnoseVpnConnections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::DiagnoseVpnGatewayOutcome VpcClient::diagnoseVpnGateway(const DiagnoseVpnGatewayRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8079,42 +8835,6 @@ VpcClient::GetNatGatewayAttributeOutcomeCallable VpcClient::getNatGatewayAttribu return task->get_future(); } -VpcClient::GetNatGatewayConvertStatusOutcome VpcClient::getNatGatewayConvertStatus(const GetNatGatewayConvertStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetNatGatewayConvertStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetNatGatewayConvertStatusOutcome(GetNatGatewayConvertStatusResult(outcome.result())); - else - return GetNatGatewayConvertStatusOutcome(outcome.error()); -} - -void VpcClient::getNatGatewayConvertStatusAsync(const GetNatGatewayConvertStatusRequest& request, const GetNatGatewayConvertStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getNatGatewayConvertStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::GetNatGatewayConvertStatusOutcomeCallable VpcClient::getNatGatewayConvertStatusCallable(const GetNatGatewayConvertStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getNatGatewayConvertStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::GetPhysicalConnectionServiceStatusOutcome VpcClient::getPhysicalConnectionServiceStatus(const GetPhysicalConnectionServiceStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8151,6 +8871,42 @@ VpcClient::GetPhysicalConnectionServiceStatusOutcomeCallable VpcClient::getPhysi return task->get_future(); } +VpcClient::GetPublicIpAddressPoolServiceStatusOutcome VpcClient::getPublicIpAddressPoolServiceStatus(const GetPublicIpAddressPoolServiceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPublicIpAddressPoolServiceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPublicIpAddressPoolServiceStatusOutcome(GetPublicIpAddressPoolServiceStatusResult(outcome.result())); + else + return GetPublicIpAddressPoolServiceStatusOutcome(outcome.error()); +} + +void VpcClient::getPublicIpAddressPoolServiceStatusAsync(const GetPublicIpAddressPoolServiceStatusRequest& request, const GetPublicIpAddressPoolServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPublicIpAddressPoolServiceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetPublicIpAddressPoolServiceStatusOutcomeCallable VpcClient::getPublicIpAddressPoolServiceStatusCallable(const GetPublicIpAddressPoolServiceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPublicIpAddressPoolServiceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::GetTrafficMirrorServiceStatusOutcome VpcClient::getTrafficMirrorServiceStatus(const GetTrafficMirrorServiceStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8187,6 +8943,42 @@ VpcClient::GetTrafficMirrorServiceStatusOutcomeCallable VpcClient::getTrafficMir return task->get_future(); } +VpcClient::GetVSwitchCidrReservationUsageOutcome VpcClient::getVSwitchCidrReservationUsage(const GetVSwitchCidrReservationUsageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVSwitchCidrReservationUsageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVSwitchCidrReservationUsageOutcome(GetVSwitchCidrReservationUsageResult(outcome.result())); + else + return GetVSwitchCidrReservationUsageOutcome(outcome.error()); +} + +void VpcClient::getVSwitchCidrReservationUsageAsync(const GetVSwitchCidrReservationUsageRequest& request, const GetVSwitchCidrReservationUsageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVSwitchCidrReservationUsage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::GetVSwitchCidrReservationUsageOutcomeCallable VpcClient::getVSwitchCidrReservationUsageCallable(const GetVSwitchCidrReservationUsageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVSwitchCidrReservationUsage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::GetVpcGatewayEndpointAttributeOutcome VpcClient::getVpcGatewayEndpointAttribute(const GetVpcGatewayEndpointAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9087,6 +9879,42 @@ VpcClient::ListTrafficMirrorSessionsOutcomeCallable VpcClient::listTrafficMirror return task->get_future(); } +VpcClient::ListVSwitchCidrReservationsOutcome VpcClient::listVSwitchCidrReservations(const ListVSwitchCidrReservationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVSwitchCidrReservationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVSwitchCidrReservationsOutcome(ListVSwitchCidrReservationsResult(outcome.result())); + else + return ListVSwitchCidrReservationsOutcome(outcome.error()); +} + +void VpcClient::listVSwitchCidrReservationsAsync(const ListVSwitchCidrReservationsRequest& request, const ListVSwitchCidrReservationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVSwitchCidrReservations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListVSwitchCidrReservationsOutcomeCallable VpcClient::listVSwitchCidrReservationsCallable(const ListVSwitchCidrReservationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVSwitchCidrReservations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ListVirtualPhysicalConnectionsOutcome VpcClient::listVirtualPhysicalConnections(const ListVirtualPhysicalConnectionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9195,6 +10023,42 @@ VpcClient::ListVpcGatewayEndpointsOutcomeCallable VpcClient::listVpcGatewayEndpo return task->get_future(); } +VpcClient::ListVpcPublishedRouteEntriesOutcome VpcClient::listVpcPublishedRouteEntries(const ListVpcPublishedRouteEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVpcPublishedRouteEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVpcPublishedRouteEntriesOutcome(ListVpcPublishedRouteEntriesResult(outcome.result())); + else + return ListVpcPublishedRouteEntriesOutcome(outcome.error()); +} + +void VpcClient::listVpcPublishedRouteEntriesAsync(const ListVpcPublishedRouteEntriesRequest& request, const ListVpcPublishedRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVpcPublishedRouteEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ListVpcPublishedRouteEntriesOutcomeCallable VpcClient::listVpcPublishedRouteEntriesCallable(const ListVpcPublishedRouteEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVpcPublishedRouteEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ListVpnCertificateAssociationsOutcome VpcClient::listVpnCertificateAssociations(const ListVpnCertificateAssociationsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9483,6 +10347,42 @@ VpcClient::ModifyEipAddressAttributeOutcomeCallable VpcClient::modifyEipAddressA return task->get_future(); } +VpcClient::ModifyEipForwardModeOutcome VpcClient::modifyEipForwardMode(const ModifyEipForwardModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEipForwardModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEipForwardModeOutcome(ModifyEipForwardModeResult(outcome.result())); + else + return ModifyEipForwardModeOutcome(outcome.error()); +} + +void VpcClient::modifyEipForwardModeAsync(const ModifyEipForwardModeRequest& request, const ModifyEipForwardModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEipForwardMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyEipForwardModeOutcomeCallable VpcClient::modifyEipForwardModeCallable(const ModifyEipForwardModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEipForwardMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ModifyExpressCloudConnectionAttributeOutcome VpcClient::modifyExpressCloudConnectionAttribute(const ModifyExpressCloudConnectionAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -9555,6 +10455,114 @@ VpcClient::ModifyExpressCloudConnectionBandwidthOutcomeCallable VpcClient::modif return task->get_future(); } +VpcClient::ModifyExpressConnectTrafficQosOutcome VpcClient::modifyExpressConnectTrafficQos(const ModifyExpressConnectTrafficQosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyExpressConnectTrafficQosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyExpressConnectTrafficQosOutcome(ModifyExpressConnectTrafficQosResult(outcome.result())); + else + return ModifyExpressConnectTrafficQosOutcome(outcome.error()); +} + +void VpcClient::modifyExpressConnectTrafficQosAsync(const ModifyExpressConnectTrafficQosRequest& request, const ModifyExpressConnectTrafficQosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyExpressConnectTrafficQos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyExpressConnectTrafficQosOutcomeCallable VpcClient::modifyExpressConnectTrafficQosCallable(const ModifyExpressConnectTrafficQosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyExpressConnectTrafficQos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyExpressConnectTrafficQosQueueOutcome VpcClient::modifyExpressConnectTrafficQosQueue(const ModifyExpressConnectTrafficQosQueueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyExpressConnectTrafficQosQueueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyExpressConnectTrafficQosQueueOutcome(ModifyExpressConnectTrafficQosQueueResult(outcome.result())); + else + return ModifyExpressConnectTrafficQosQueueOutcome(outcome.error()); +} + +void VpcClient::modifyExpressConnectTrafficQosQueueAsync(const ModifyExpressConnectTrafficQosQueueRequest& request, const ModifyExpressConnectTrafficQosQueueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyExpressConnectTrafficQosQueue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyExpressConnectTrafficQosQueueOutcomeCallable VpcClient::modifyExpressConnectTrafficQosQueueCallable(const ModifyExpressConnectTrafficQosQueueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyExpressConnectTrafficQosQueue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::ModifyExpressConnectTrafficQosRuleOutcome VpcClient::modifyExpressConnectTrafficQosRule(const ModifyExpressConnectTrafficQosRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyExpressConnectTrafficQosRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyExpressConnectTrafficQosRuleOutcome(ModifyExpressConnectTrafficQosRuleResult(outcome.result())); + else + return ModifyExpressConnectTrafficQosRuleOutcome(outcome.error()); +} + +void VpcClient::modifyExpressConnectTrafficQosRuleAsync(const ModifyExpressConnectTrafficQosRuleRequest& request, const ModifyExpressConnectTrafficQosRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyExpressConnectTrafficQosRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyExpressConnectTrafficQosRuleOutcomeCallable VpcClient::modifyExpressConnectTrafficQosRuleCallable(const ModifyExpressConnectTrafficQosRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyExpressConnectTrafficQosRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ModifyFlowLogAttributeOutcome VpcClient::modifyFlowLogAttribute(const ModifyFlowLogAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10023,42 +11031,6 @@ VpcClient::ModifyIpv6GatewayAttributeOutcomeCallable VpcClient::modifyIpv6Gatewa return task->get_future(); } -VpcClient::ModifyIpv6GatewaySpecOutcome VpcClient::modifyIpv6GatewaySpec(const ModifyIpv6GatewaySpecRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyIpv6GatewaySpecOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyIpv6GatewaySpecOutcome(ModifyIpv6GatewaySpecResult(outcome.result())); - else - return ModifyIpv6GatewaySpecOutcome(outcome.error()); -} - -void VpcClient::modifyIpv6GatewaySpecAsync(const ModifyIpv6GatewaySpecRequest& request, const ModifyIpv6GatewaySpecAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyIpv6GatewaySpec(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VpcClient::ModifyIpv6GatewaySpecOutcomeCallable VpcClient::modifyIpv6GatewaySpecCallable(const ModifyIpv6GatewaySpecRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyIpv6GatewaySpec(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VpcClient::ModifyIpv6InternetBandwidthOutcome VpcClient::modifyIpv6InternetBandwidth(const ModifyIpv6InternetBandwidthRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10563,6 +11535,42 @@ VpcClient::ModifySslVpnServerOutcomeCallable VpcClient::modifySslVpnServerCallab return task->get_future(); } +VpcClient::ModifyTunnelAttributeOutcome VpcClient::modifyTunnelAttribute(const ModifyTunnelAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyTunnelAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyTunnelAttributeOutcome(ModifyTunnelAttributeResult(outcome.result())); + else + return ModifyTunnelAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyTunnelAttributeAsync(const ModifyTunnelAttributeRequest& request, const ModifyTunnelAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyTunnelAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyTunnelAttributeOutcomeCallable VpcClient::modifyTunnelAttributeCallable(const ModifyTunnelAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyTunnelAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ModifyVRouterAttributeOutcome VpcClient::modifyVRouterAttribute(const ModifyVRouterAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10635,6 +11643,42 @@ VpcClient::ModifyVSwitchAttributeOutcomeCallable VpcClient::modifyVSwitchAttribu return task->get_future(); } +VpcClient::ModifyVSwitchCidrReservationAttributeOutcome VpcClient::modifyVSwitchCidrReservationAttribute(const ModifyVSwitchCidrReservationAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVSwitchCidrReservationAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVSwitchCidrReservationAttributeOutcome(ModifyVSwitchCidrReservationAttributeResult(outcome.result())); + else + return ModifyVSwitchCidrReservationAttributeOutcome(outcome.error()); +} + +void VpcClient::modifyVSwitchCidrReservationAttributeAsync(const ModifyVSwitchCidrReservationAttributeRequest& request, const ModifyVSwitchCidrReservationAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVSwitchCidrReservationAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ModifyVSwitchCidrReservationAttributeOutcomeCallable VpcClient::modifyVSwitchCidrReservationAttributeCallable(const ModifyVSwitchCidrReservationAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVSwitchCidrReservationAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::ModifyVcoRouteEntryWeightOutcome VpcClient::modifyVcoRouteEntryWeight(const ModifyVcoRouteEntryWeightRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11067,6 +12111,42 @@ VpcClient::MoveResourceGroupOutcomeCallable VpcClient::moveResourceGroupCallable return task->get_future(); } +VpcClient::MoveVpnResourceGroupOutcome VpcClient::moveVpnResourceGroup(const MoveVpnResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MoveVpnResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MoveVpnResourceGroupOutcome(MoveVpnResourceGroupResult(outcome.result())); + else + return MoveVpnResourceGroupOutcome(outcome.error()); +} + +void VpcClient::moveVpnResourceGroupAsync(const MoveVpnResourceGroupRequest& request, const MoveVpnResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, moveVpnResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::MoveVpnResourceGroupOutcomeCallable VpcClient::moveVpnResourceGroupCallable(const MoveVpnResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->moveVpnResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::OpenFlowLogServiceOutcome VpcClient::openFlowLogService(const OpenFlowLogServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11139,6 +12219,42 @@ VpcClient::OpenPhysicalConnectionServiceOutcomeCallable VpcClient::openPhysicalC return task->get_future(); } +VpcClient::OpenPublicIpAddressPoolServiceOutcome VpcClient::openPublicIpAddressPoolService(const OpenPublicIpAddressPoolServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OpenPublicIpAddressPoolServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OpenPublicIpAddressPoolServiceOutcome(OpenPublicIpAddressPoolServiceResult(outcome.result())); + else + return OpenPublicIpAddressPoolServiceOutcome(outcome.error()); +} + +void VpcClient::openPublicIpAddressPoolServiceAsync(const OpenPublicIpAddressPoolServiceRequest& request, const OpenPublicIpAddressPoolServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, openPublicIpAddressPoolService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::OpenPublicIpAddressPoolServiceOutcomeCallable VpcClient::openPublicIpAddressPoolServiceCallable(const OpenPublicIpAddressPoolServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->openPublicIpAddressPoolService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::OpenTrafficMirrorServiceOutcome VpcClient::openTrafficMirrorService(const OpenTrafficMirrorServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11175,6 +12291,42 @@ VpcClient::OpenTrafficMirrorServiceOutcomeCallable VpcClient::openTrafficMirrorS return task->get_future(); } +VpcClient::PublishVpcRouteEntriesOutcome VpcClient::publishVpcRouteEntries(const PublishVpcRouteEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PublishVpcRouteEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PublishVpcRouteEntriesOutcome(PublishVpcRouteEntriesResult(outcome.result())); + else + return PublishVpcRouteEntriesOutcome(outcome.error()); +} + +void VpcClient::publishVpcRouteEntriesAsync(const PublishVpcRouteEntriesRequest& request, const PublishVpcRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, publishVpcRouteEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::PublishVpcRouteEntriesOutcomeCallable VpcClient::publishVpcRouteEntriesCallable(const PublishVpcRouteEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->publishVpcRouteEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::PublishVpnRouteEntryOutcome VpcClient::publishVpnRouteEntry(const PublishVpnRouteEntryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11355,6 +12507,42 @@ VpcClient::ReleaseEipSegmentAddressOutcomeCallable VpcClient::releaseEipSegmentA return task->get_future(); } +VpcClient::ReleaseIpv6AddressOutcome VpcClient::releaseIpv6Address(const ReleaseIpv6AddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseIpv6AddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseIpv6AddressOutcome(ReleaseIpv6AddressResult(outcome.result())); + else + return ReleaseIpv6AddressOutcome(outcome.error()); +} + +void VpcClient::releaseIpv6AddressAsync(const ReleaseIpv6AddressRequest& request, const ReleaseIpv6AddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseIpv6Address(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::ReleaseIpv6AddressOutcomeCallable VpcClient::releaseIpv6AddressCallable(const ReleaseIpv6AddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseIpv6Address(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::RemoveCommonBandwidthPackageIpOutcome VpcClient::removeCommonBandwidthPackageIp(const RemoveCommonBandwidthPackageIpRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11643,6 +12831,42 @@ VpcClient::RevokeInstanceFromVbrOutcomeCallable VpcClient::revokeInstanceFromVbr return task->get_future(); } +VpcClient::SecondApplyPhysicalConnectionLOAOutcome VpcClient::secondApplyPhysicalConnectionLOA(const SecondApplyPhysicalConnectionLOARequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SecondApplyPhysicalConnectionLOAOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SecondApplyPhysicalConnectionLOAOutcome(SecondApplyPhysicalConnectionLOAResult(outcome.result())); + else + return SecondApplyPhysicalConnectionLOAOutcome(outcome.error()); +} + +void VpcClient::secondApplyPhysicalConnectionLOAAsync(const SecondApplyPhysicalConnectionLOARequest& request, const SecondApplyPhysicalConnectionLOAAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, secondApplyPhysicalConnectionLOA(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::SecondApplyPhysicalConnectionLOAOutcomeCallable VpcClient::secondApplyPhysicalConnectionLOACallable(const SecondApplyPhysicalConnectionLOARequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->secondApplyPhysicalConnectionLOA(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::SetHighDefinitionMonitorLogStatusOutcome VpcClient::setHighDefinitionMonitorLogStatus(const SetHighDefinitionMonitorLogStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11679,6 +12903,78 @@ VpcClient::SetHighDefinitionMonitorLogStatusOutcomeCallable VpcClient::setHighDe return task->get_future(); } +VpcClient::StartFailoverTestJobOutcome VpcClient::startFailoverTestJob(const StartFailoverTestJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartFailoverTestJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartFailoverTestJobOutcome(StartFailoverTestJobResult(outcome.result())); + else + return StartFailoverTestJobOutcome(outcome.error()); +} + +void VpcClient::startFailoverTestJobAsync(const StartFailoverTestJobRequest& request, const StartFailoverTestJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startFailoverTestJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::StartFailoverTestJobOutcomeCallable VpcClient::startFailoverTestJobCallable(const StartFailoverTestJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startFailoverTestJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +VpcClient::StopFailoverTestJobOutcome VpcClient::stopFailoverTestJob(const StopFailoverTestJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopFailoverTestJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopFailoverTestJobOutcome(StopFailoverTestJobResult(outcome.result())); + else + return StopFailoverTestJobOutcome(outcome.error()); +} + +void VpcClient::stopFailoverTestJobAsync(const StopFailoverTestJobRequest& request, const StopFailoverTestJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopFailoverTestJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::StopFailoverTestJobOutcomeCallable VpcClient::stopFailoverTestJobCallable(const StopFailoverTestJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopFailoverTestJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::TagResourcesOutcome VpcClient::tagResources(const TagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11823,6 +13119,42 @@ VpcClient::TerminateVirtualBorderRouterOutcomeCallable VpcClient::terminateVirtu return task->get_future(); } +VpcClient::TransformEipSegmentToPublicIpAddressPoolOutcome VpcClient::transformEipSegmentToPublicIpAddressPool(const TransformEipSegmentToPublicIpAddressPoolRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TransformEipSegmentToPublicIpAddressPoolOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TransformEipSegmentToPublicIpAddressPoolOutcome(TransformEipSegmentToPublicIpAddressPoolResult(outcome.result())); + else + return TransformEipSegmentToPublicIpAddressPoolOutcome(outcome.error()); +} + +void VpcClient::transformEipSegmentToPublicIpAddressPoolAsync(const TransformEipSegmentToPublicIpAddressPoolRequest& request, const TransformEipSegmentToPublicIpAddressPoolAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, transformEipSegmentToPublicIpAddressPool(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::TransformEipSegmentToPublicIpAddressPoolOutcomeCallable VpcClient::transformEipSegmentToPublicIpAddressPoolCallable(const TransformEipSegmentToPublicIpAddressPoolRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->transformEipSegmentToPublicIpAddressPool(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::UnTagResourcesOutcome VpcClient::unTagResources(const UnTagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -12183,6 +13515,42 @@ VpcClient::UpdateDhcpOptionsSetAttributeOutcomeCallable VpcClient::updateDhcpOpt return task->get_future(); } +VpcClient::UpdateFailoverTestJobOutcome VpcClient::updateFailoverTestJob(const UpdateFailoverTestJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateFailoverTestJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateFailoverTestJobOutcome(UpdateFailoverTestJobResult(outcome.result())); + else + return UpdateFailoverTestJobOutcome(outcome.error()); +} + +void VpcClient::updateFailoverTestJobAsync(const UpdateFailoverTestJobRequest& request, const UpdateFailoverTestJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateFailoverTestJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::UpdateFailoverTestJobOutcomeCallable VpcClient::updateFailoverTestJobCallable(const UpdateFailoverTestJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateFailoverTestJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VpcClient::UpdateGatewayRouteTableEntryAttributeOutcome VpcClient::updateGatewayRouteTableEntryAttribute(const UpdateGatewayRouteTableEntryAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -12651,3 +14019,39 @@ VpcClient::VpcDescribeVpcNatGatewayNetworkInterfaceQuotaOutcomeCallable VpcClien return task->get_future(); } +VpcClient::WithdrawVpcPublishedRouteEntriesOutcome VpcClient::withdrawVpcPublishedRouteEntries(const WithdrawVpcPublishedRouteEntriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return WithdrawVpcPublishedRouteEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return WithdrawVpcPublishedRouteEntriesOutcome(WithdrawVpcPublishedRouteEntriesResult(outcome.result())); + else + return WithdrawVpcPublishedRouteEntriesOutcome(outcome.error()); +} + +void VpcClient::withdrawVpcPublishedRouteEntriesAsync(const WithdrawVpcPublishedRouteEntriesRequest& request, const WithdrawVpcPublishedRouteEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, withdrawVpcPublishedRouteEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VpcClient::WithdrawVpcPublishedRouteEntriesOutcomeCallable VpcClient::withdrawVpcPublishedRouteEntriesCallable(const WithdrawVpcPublishedRouteEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->withdrawVpcPublishedRouteEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/vpc/src/model/AddPublicIpAddressPoolCidrBlockResult.cc b/vpc/src/model/AddPublicIpAddressPoolCidrBlockResult.cc index 9179eb61f..e02be3d23 100644 --- a/vpc/src/model/AddPublicIpAddressPoolCidrBlockResult.cc +++ b/vpc/src/model/AddPublicIpAddressPoolCidrBlockResult.cc @@ -39,6 +39,13 @@ void AddPublicIpAddressPoolCidrBlockResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["CidrBlock"].isNull()) + cidrBlock_ = value["CidrBlock"].asString(); } +std::string AddPublicIpAddressPoolCidrBlockResult::getCidrBlock()const +{ + return cidrBlock_; +} + diff --git a/vpc/src/model/AllocateEipAddressProRequest.cc b/vpc/src/model/AllocateEipAddressProRequest.cc index c59268f2a..3b7bc152f 100644 --- a/vpc/src/model/AllocateEipAddressProRequest.cc +++ b/vpc/src/model/AllocateEipAddressProRequest.cc @@ -88,6 +88,20 @@ void AllocateEipAddressProRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::vector AllocateEipAddressProRequest::getTag() const { + return tag_; +} + +void AllocateEipAddressProRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string AllocateEipAddressProRequest::getNetmode() const { return netmode_; } diff --git a/vpc/src/model/AllocateEipAddressRequest.cc b/vpc/src/model/AllocateEipAddressRequest.cc index c4f799a3d..0401041fe 100644 --- a/vpc/src/model/AllocateEipAddressRequest.cc +++ b/vpc/src/model/AllocateEipAddressRequest.cc @@ -25,6 +25,15 @@ AllocateEipAddressRequest::AllocateEipAddressRequest() AllocateEipAddressRequest::~AllocateEipAddressRequest() {} +std::string AllocateEipAddressRequest::getIpAddress() const { + return ipAddress_; +} + +void AllocateEipAddressRequest::setIpAddress(const std::string &ipAddress) { + ipAddress_ = ipAddress; + setParameter(std::string("IpAddress"), ipAddress); +} + long AllocateEipAddressRequest::getResourceOwnerId() const { return resourceOwnerId_; } @@ -88,6 +97,29 @@ void AllocateEipAddressRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string AllocateEipAddressRequest::getZone() const { + return zone_; +} + +void AllocateEipAddressRequest::setZone(const std::string &zone) { + zone_ = zone; + setParameter(std::string("Zone"), zone); +} + +std::vector AllocateEipAddressRequest::getTag() const { + return tag_; +} + +void AllocateEipAddressRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string AllocateEipAddressRequest::getNetmode() const { return netmode_; } @@ -169,6 +201,15 @@ void AllocateEipAddressRequest::setActivityId(long activityId) { setParameter(std::string("ActivityId"), std::to_string(activityId)); } +std::string AllocateEipAddressRequest::getInstanceId() const { + return instanceId_; +} + +void AllocateEipAddressRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + std::string AllocateEipAddressRequest::getInternetChargeType() const { return internetChargeType_; } diff --git a/vpc/src/model/AllocateEipSegmentAddressRequest.cc b/vpc/src/model/AllocateEipSegmentAddressRequest.cc index d997ed85b..eb2fed5df 100644 --- a/vpc/src/model/AllocateEipSegmentAddressRequest.cc +++ b/vpc/src/model/AllocateEipSegmentAddressRequest.cc @@ -70,6 +70,15 @@ void AllocateEipSegmentAddressRequest::setRegionId(const std::string ®ionId) setParameter(std::string("RegionId"), regionId); } +std::string AllocateEipSegmentAddressRequest::getZone() const { + return zone_; +} + +void AllocateEipSegmentAddressRequest::setZone(const std::string &zone) { + zone_ = zone; + setParameter(std::string("Zone"), zone); +} + std::string AllocateEipSegmentAddressRequest::getNetmode() const { return netmode_; } diff --git a/vpc/src/model/AllocateIpv6AddressRequest.cc b/vpc/src/model/AllocateIpv6AddressRequest.cc new file mode 100644 index 000000000..8b56d9a6a --- /dev/null +++ b/vpc/src/model/AllocateIpv6AddressRequest.cc @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::AllocateIpv6AddressRequest; + +AllocateIpv6AddressRequest::AllocateIpv6AddressRequest() + : RpcServiceRequest("vpc", "2016-04-28", "AllocateIpv6Address") { + setMethod(HttpRequest::Method::Post); +} + +AllocateIpv6AddressRequest::~AllocateIpv6AddressRequest() {} + +long AllocateIpv6AddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AllocateIpv6AddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AllocateIpv6AddressRequest::getClientToken() const { + return clientToken_; +} + +void AllocateIpv6AddressRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string AllocateIpv6AddressRequest::getIpv6AddressDescription() const { + return ipv6AddressDescription_; +} + +void AllocateIpv6AddressRequest::setIpv6AddressDescription(const std::string &ipv6AddressDescription) { + ipv6AddressDescription_ = ipv6AddressDescription; + setParameter(std::string("Ipv6AddressDescription"), ipv6AddressDescription); +} + +std::string AllocateIpv6AddressRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void AllocateIpv6AddressRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string AllocateIpv6AddressRequest::getRegionId() const { + return regionId_; +} + +void AllocateIpv6AddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string AllocateIpv6AddressRequest::getAddressType() const { + return addressType_; +} + +void AllocateIpv6AddressRequest::setAddressType(const std::string &addressType) { + addressType_ = addressType; + setParameter(std::string("AddressType"), addressType); +} + +std::vector AllocateIpv6AddressRequest::getTag() const { + return tag_; +} + +void AllocateIpv6AddressRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +std::string AllocateIpv6AddressRequest::getIpv6AddressName() const { + return ipv6AddressName_; +} + +void AllocateIpv6AddressRequest::setIpv6AddressName(const std::string &ipv6AddressName) { + ipv6AddressName_ = ipv6AddressName; + setParameter(std::string("Ipv6AddressName"), ipv6AddressName); +} + +bool AllocateIpv6AddressRequest::getDryRun() const { + return dryRun_; +} + +void AllocateIpv6AddressRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string AllocateIpv6AddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AllocateIpv6AddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AllocateIpv6AddressRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AllocateIpv6AddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AllocateIpv6AddressRequest::getOwnerId() const { + return ownerId_; +} + +void AllocateIpv6AddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string AllocateIpv6AddressRequest::getVSwitchId() const { + return vSwitchId_; +} + +void AllocateIpv6AddressRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string AllocateIpv6AddressRequest::getIpv6Address() const { + return ipv6Address_; +} + +void AllocateIpv6AddressRequest::setIpv6Address(const std::string &ipv6Address) { + ipv6Address_ = ipv6Address; + setParameter(std::string("Ipv6Address"), ipv6Address); +} + diff --git a/vpc/src/model/AllocateIpv6AddressResult.cc b/vpc/src/model/AllocateIpv6AddressResult.cc new file mode 100644 index 000000000..691d73696 --- /dev/null +++ b/vpc/src/model/AllocateIpv6AddressResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +AllocateIpv6AddressResult::AllocateIpv6AddressResult() : + ServiceResult() +{} + +AllocateIpv6AddressResult::AllocateIpv6AddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateIpv6AddressResult::~AllocateIpv6AddressResult() +{} + +void AllocateIpv6AddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Ipv6AddressId"].isNull()) + ipv6AddressId_ = value["Ipv6AddressId"].asString(); + if(!value["Ipv6Address"].isNull()) + ipv6Address_ = value["Ipv6Address"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + +} + +std::string AllocateIpv6AddressResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +std::string AllocateIpv6AddressResult::getIpv6AddressId()const +{ + return ipv6AddressId_; +} + +std::string AllocateIpv6AddressResult::getIpv6Address()const +{ + return ipv6Address_; +} + diff --git a/vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc b/vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc index 0fe208468..d8d282186 100644 --- a/vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc +++ b/vpc/src/model/AllocateIpv6InternetBandwidthRequest.cc @@ -52,6 +52,15 @@ void AllocateIpv6InternetBandwidthRequest::setRegionId(const std::string ®ion setParameter(std::string("RegionId"), regionId); } +bool AllocateIpv6InternetBandwidthRequest::getDryRun() const { + return dryRun_; +} + +void AllocateIpv6InternetBandwidthRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + int AllocateIpv6InternetBandwidthRequest::getBandwidth() const { return bandwidth_; } diff --git a/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc b/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc deleted file mode 100644 index 5f83bcb1c..000000000 --- a/vpc/src/model/AssociateGlobalAccelerationInstanceRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::AssociateGlobalAccelerationInstanceRequest; - -AssociateGlobalAccelerationInstanceRequest::AssociateGlobalAccelerationInstanceRequest() - : RpcServiceRequest("vpc", "2016-04-28", "AssociateGlobalAccelerationInstance") { - setMethod(HttpRequest::Method::Post); -} - -AssociateGlobalAccelerationInstanceRequest::~AssociateGlobalAccelerationInstanceRequest() {} - -long AssociateGlobalAccelerationInstanceRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string AssociateGlobalAccelerationInstanceRequest::getGlobalAccelerationInstanceId() const { - return globalAccelerationInstanceId_; -} - -void AssociateGlobalAccelerationInstanceRequest::setGlobalAccelerationInstanceId(const std::string &globalAccelerationInstanceId) { - globalAccelerationInstanceId_ = globalAccelerationInstanceId; - setParameter(std::string("GlobalAccelerationInstanceId"), globalAccelerationInstanceId); -} - -std::string AssociateGlobalAccelerationInstanceRequest::getRegionId() const { - return regionId_; -} - -void AssociateGlobalAccelerationInstanceRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerId() const { - return backendServerId_; -} - -void AssociateGlobalAccelerationInstanceRequest::setBackendServerId(const std::string &backendServerId) { - backendServerId_ = backendServerId; - setParameter(std::string("BackendServerId"), backendServerId); -} - -std::string AssociateGlobalAccelerationInstanceRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void AssociateGlobalAccelerationInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string AssociateGlobalAccelerationInstanceRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void AssociateGlobalAccelerationInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long AssociateGlobalAccelerationInstanceRequest::getOwnerId() const { - return ownerId_; -} - -void AssociateGlobalAccelerationInstanceRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerRegionId() const { - return backendServerRegionId_; -} - -void AssociateGlobalAccelerationInstanceRequest::setBackendServerRegionId(const std::string &backendServerRegionId) { - backendServerRegionId_ = backendServerRegionId; - setParameter(std::string("BackendServerRegionId"), backendServerRegionId); -} - -std::string AssociateGlobalAccelerationInstanceRequest::getBackendServerType() const { - return backendServerType_; -} - -void AssociateGlobalAccelerationInstanceRequest::setBackendServerType(const std::string &backendServerType) { - backendServerType_ = backendServerType; - setParameter(std::string("BackendServerType"), backendServerType); -} - diff --git a/vpc/src/model/AssociateNetworkAclRequest.cc b/vpc/src/model/AssociateNetworkAclRequest.cc index 54d72f9d9..a25befc1a 100644 --- a/vpc/src/model/AssociateNetworkAclRequest.cc +++ b/vpc/src/model/AssociateNetworkAclRequest.cc @@ -61,6 +61,15 @@ void AssociateNetworkAclRequest::setNetworkAclId(const std::string &networkAclId setParameter(std::string("NetworkAclId"), networkAclId); } +bool AssociateNetworkAclRequest::getDryRun() const { + return dryRun_; +} + +void AssociateNetworkAclRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::vector AssociateNetworkAclRequest::getResource() const { return resource_; } @@ -84,6 +93,15 @@ void AssociateNetworkAclRequest::setResourceOwnerAccount(const std::string &reso setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } +std::string AssociateNetworkAclRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AssociateNetworkAclRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + long AssociateNetworkAclRequest::getOwnerId() const { return ownerId_; } diff --git a/vpc/src/model/AssociateRouteTableWithGatewayRequest.cc b/vpc/src/model/AssociateRouteTableWithGatewayRequest.cc index b71e551b4..dc8b32790 100644 --- a/vpc/src/model/AssociateRouteTableWithGatewayRequest.cc +++ b/vpc/src/model/AssociateRouteTableWithGatewayRequest.cc @@ -70,6 +70,15 @@ void AssociateRouteTableWithGatewayRequest::setRouteTableId(const std::string &r setParameter(std::string("RouteTableId"), routeTableId); } +std::string AssociateRouteTableWithGatewayRequest::getGatewayType() const { + return gatewayType_; +} + +void AssociateRouteTableWithGatewayRequest::setGatewayType(const std::string &gatewayType) { + gatewayType_ = gatewayType; + setParameter(std::string("GatewayType"), gatewayType); +} + bool AssociateRouteTableWithGatewayRequest::getDryRun() const { return dryRun_; } diff --git a/vpc/src/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.cc b/vpc/src/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.cc index 7d8bd2b10..e549e0963 100644 --- a/vpc/src/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.cc +++ b/vpc/src/model/AssociateRouteTablesWithVpcGatewayEndpointRequest.cc @@ -34,15 +34,6 @@ void AssociateRouteTablesWithVpcGatewayEndpointRequest::setResourceOwnerId(long setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -bool AssociateRouteTablesWithVpcGatewayEndpointRequest::getDryRun() const { - return dryRun_; -} - -void AssociateRouteTablesWithVpcGatewayEndpointRequest::setDryRun(bool dryRun) { - dryRun_ = dryRun; - setParameter(std::string("DryRun"), dryRun ? "true" : "false"); -} - std::string AssociateRouteTablesWithVpcGatewayEndpointRequest::getClientToken() const { return clientToken_; } @@ -52,15 +43,6 @@ void AssociateRouteTablesWithVpcGatewayEndpointRequest::setClientToken(const std setParameter(std::string("ClientToken"), clientToken); } -std::string AssociateRouteTablesWithVpcGatewayEndpointRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void AssociateRouteTablesWithVpcGatewayEndpointRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - std::string AssociateRouteTablesWithVpcGatewayEndpointRequest::getEndpointId() const { return endpointId_; } @@ -70,6 +52,33 @@ void AssociateRouteTablesWithVpcGatewayEndpointRequest::setEndpointId(const std: setParameter(std::string("EndpointId"), endpointId); } +std::string AssociateRouteTablesWithVpcGatewayEndpointRequest::getRegionId() const { + return regionId_; +} + +void AssociateRouteTablesWithVpcGatewayEndpointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool AssociateRouteTablesWithVpcGatewayEndpointRequest::getDryRun() const { + return dryRun_; +} + +void AssociateRouteTablesWithVpcGatewayEndpointRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string AssociateRouteTablesWithVpcGatewayEndpointRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AssociateRouteTablesWithVpcGatewayEndpointRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + std::string AssociateRouteTablesWithVpcGatewayEndpointRequest::getOwnerAccount() const { return ownerAccount_; } @@ -88,15 +97,6 @@ void AssociateRouteTablesWithVpcGatewayEndpointRequest::setOwnerId(long ownerId) setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string AssociateRouteTablesWithVpcGatewayEndpointRequest::getRegionId() const { - return regionId_; -} - -void AssociateRouteTablesWithVpcGatewayEndpointRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::vector AssociateRouteTablesWithVpcGatewayEndpointRequest::getRouteTableIds() const { return routeTableIds_; } diff --git a/vpc/src/model/AssociateVpcCidrBlockRequest.cc b/vpc/src/model/AssociateVpcCidrBlockRequest.cc index cf2f614e7..ff6c1baa9 100644 --- a/vpc/src/model/AssociateVpcCidrBlockRequest.cc +++ b/vpc/src/model/AssociateVpcCidrBlockRequest.cc @@ -43,6 +43,15 @@ void AssociateVpcCidrBlockRequest::setIPv6CidrType(const std::string &iPv6CidrTy setParameter(std::string("IPv6CidrType"), iPv6CidrType); } +std::string AssociateVpcCidrBlockRequest::getIpamPoolId() const { + return ipamPoolId_; +} + +void AssociateVpcCidrBlockRequest::setIpamPoolId(const std::string &ipamPoolId) { + ipamPoolId_ = ipamPoolId; + setParameter(std::string("IpamPoolId"), ipamPoolId); +} + std::string AssociateVpcCidrBlockRequest::getRegionId() const { return regionId_; } @@ -106,6 +115,15 @@ void AssociateVpcCidrBlockRequest::setIPv6CidrBlock(const std::string &iPv6CidrB setParameter(std::string("IPv6CidrBlock"), iPv6CidrBlock); } +int AssociateVpcCidrBlockRequest::getSecondaryCidrMask() const { + return secondaryCidrMask_; +} + +void AssociateVpcCidrBlockRequest::setSecondaryCidrMask(int secondaryCidrMask) { + secondaryCidrMask_ = secondaryCidrMask; + setParameter(std::string("SecondaryCidrMask"), std::to_string(secondaryCidrMask)); +} + std::string AssociateVpcCidrBlockRequest::getSecondaryCidrBlock() const { return secondaryCidrBlock_; } diff --git a/vpc/src/model/AssociateVpcCidrBlockResult.cc b/vpc/src/model/AssociateVpcCidrBlockResult.cc index f1247fad6..37fbbd4c7 100644 --- a/vpc/src/model/AssociateVpcCidrBlockResult.cc +++ b/vpc/src/model/AssociateVpcCidrBlockResult.cc @@ -39,6 +39,20 @@ void AssociateVpcCidrBlockResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["CidrBlock"].isNull()) + cidrBlock_ = value["CidrBlock"].asString(); + if(!value["IpVersion"].isNull()) + ipVersion_ = value["IpVersion"].asString(); } +std::string AssociateVpcCidrBlockResult::getIpVersion()const +{ + return ipVersion_; +} + +std::string AssociateVpcCidrBlockResult::getCidrBlock()const +{ + return cidrBlock_; +} + diff --git a/vpc/src/model/CompletePhysicalConnectionLOARequest.cc b/vpc/src/model/CompletePhysicalConnectionLOARequest.cc index a568a6a96..3f1c9dd94 100644 --- a/vpc/src/model/CompletePhysicalConnectionLOARequest.cc +++ b/vpc/src/model/CompletePhysicalConnectionLOARequest.cc @@ -52,6 +52,15 @@ void CompletePhysicalConnectionLOARequest::setClientToken(const std::string &cli setParameter(std::string("ClientToken"), clientToken); } +std::string CompletePhysicalConnectionLOARequest::getLineSPContactInfo() const { + return lineSPContactInfo_; +} + +void CompletePhysicalConnectionLOARequest::setLineSPContactInfo(const std::string &lineSPContactInfo) { + lineSPContactInfo_ = lineSPContactInfo; + setParameter(std::string("LineSPContactInfo"), lineSPContactInfo); +} + std::string CompletePhysicalConnectionLOARequest::getRegionId() const { return regionId_; } @@ -61,6 +70,24 @@ void CompletePhysicalConnectionLOARequest::setRegionId(const std::string ®ion setParameter(std::string("RegionId"), regionId); } +bool CompletePhysicalConnectionLOARequest::getFinishWork() const { + return finishWork_; +} + +void CompletePhysicalConnectionLOARequest::setFinishWork(bool finishWork) { + finishWork_ = finishWork; + setParameter(std::string("FinishWork"), finishWork ? "true" : "false"); +} + +std::string CompletePhysicalConnectionLOARequest::getLineServiceProvider() const { + return lineServiceProvider_; +} + +void CompletePhysicalConnectionLOARequest::setLineServiceProvider(const std::string &lineServiceProvider) { + lineServiceProvider_ = lineServiceProvider; + setParameter(std::string("LineServiceProvider"), lineServiceProvider); +} + std::string CompletePhysicalConnectionLOARequest::getLineLabel() const { return lineLabel_; } diff --git a/vpc/src/model/CopyNetworkAclEntriesRequest.cc b/vpc/src/model/CopyNetworkAclEntriesRequest.cc index 2ec24a98e..3039c5f02 100644 --- a/vpc/src/model/CopyNetworkAclEntriesRequest.cc +++ b/vpc/src/model/CopyNetworkAclEntriesRequest.cc @@ -70,6 +70,15 @@ void CopyNetworkAclEntriesRequest::setSourceNetworkAclId(const std::string &sour setParameter(std::string("SourceNetworkAclId"), sourceNetworkAclId); } +bool CopyNetworkAclEntriesRequest::getDryRun() const { + return dryRun_; +} + +void CopyNetworkAclEntriesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string CopyNetworkAclEntriesRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -79,6 +88,15 @@ void CopyNetworkAclEntriesRequest::setResourceOwnerAccount(const std::string &re setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } +std::string CopyNetworkAclEntriesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CopyNetworkAclEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + long CopyNetworkAclEntriesRequest::getOwnerId() const { return ownerId_; } diff --git a/vpc/src/model/CreateCommonBandwidthPackageRequest.cc b/vpc/src/model/CreateCommonBandwidthPackageRequest.cc index 9b1c7ec70..7f489d94d 100644 --- a/vpc/src/model/CreateCommonBandwidthPackageRequest.cc +++ b/vpc/src/model/CreateCommonBandwidthPackageRequest.cc @@ -88,6 +88,20 @@ void CreateCommonBandwidthPackageRequest::setZone(const std::string &zone) { setParameter(std::string("Zone"), zone); } +std::vector CreateCommonBandwidthPackageRequest::getTag() const { + return tag_; +} + +void CreateCommonBandwidthPackageRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string CreateCommonBandwidthPackageRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/CreateCustomerGatewayRequest.cc b/vpc/src/model/CreateCustomerGatewayRequest.cc index fbe5e61aa..a27afd7eb 100644 --- a/vpc/src/model/CreateCustomerGatewayRequest.cc +++ b/vpc/src/model/CreateCustomerGatewayRequest.cc @@ -70,6 +70,15 @@ void CreateCustomerGatewayRequest::setDescription(const std::string &description setParameter(std::string("Description"), description); } +std::string CreateCustomerGatewayRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateCustomerGatewayRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string CreateCustomerGatewayRequest::getRegionId() const { return regionId_; } diff --git a/vpc/src/model/CreateDhcpOptionsSetRequest.cc b/vpc/src/model/CreateDhcpOptionsSetRequest.cc index 63dd3df1d..cc751dff9 100644 --- a/vpc/src/model/CreateDhcpOptionsSetRequest.cc +++ b/vpc/src/model/CreateDhcpOptionsSetRequest.cc @@ -61,6 +61,15 @@ void CreateDhcpOptionsSetRequest::setTFTPServerName(const std::string &tFTPServe setParameter(std::string("TFTPServerName"), tFTPServerName); } +std::string CreateDhcpOptionsSetRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateDhcpOptionsSetRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string CreateDhcpOptionsSetRequest::getLeaseTime() const { return leaseTime_; } @@ -88,6 +97,20 @@ void CreateDhcpOptionsSetRequest::setDomainNameServers(const std::string &domain setParameter(std::string("DomainNameServers"), domainNameServers); } +std::vector CreateDhcpOptionsSetRequest::getTag() const { + return tag_; +} + +void CreateDhcpOptionsSetRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + std::string CreateDhcpOptionsSetRequest::getDhcpOptionsSetDescription() const { return dhcpOptionsSetDescription_; } diff --git a/vpc/src/model/CreateDhcpOptionsSetResult.cc b/vpc/src/model/CreateDhcpOptionsSetResult.cc index 770f2a39c..ac78bd8aa 100644 --- a/vpc/src/model/CreateDhcpOptionsSetResult.cc +++ b/vpc/src/model/CreateDhcpOptionsSetResult.cc @@ -41,6 +41,8 @@ void CreateDhcpOptionsSetResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["DhcpOptionsSetId"].isNull()) dhcpOptionsSetId_ = value["DhcpOptionsSetId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -49,3 +51,8 @@ std::string CreateDhcpOptionsSetResult::getDhcpOptionsSetId()const return dhcpOptionsSetId_; } +std::string CreateDhcpOptionsSetResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + diff --git a/vpc/src/model/CreateExpressConnectTrafficQosQueueRequest.cc b/vpc/src/model/CreateExpressConnectTrafficQosQueueRequest.cc new file mode 100644 index 000000000..a7def92b5 --- /dev/null +++ b/vpc/src/model/CreateExpressConnectTrafficQosQueueRequest.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::Vpc::Model::CreateExpressConnectTrafficQosQueueRequest; + +CreateExpressConnectTrafficQosQueueRequest::CreateExpressConnectTrafficQosQueueRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateExpressConnectTrafficQosQueue") { + setMethod(HttpRequest::Method::Post); +} + +CreateExpressConnectTrafficQosQueueRequest::~CreateExpressConnectTrafficQosQueueRequest() {} + +std::string CreateExpressConnectTrafficQosQueueRequest::getQueueName() const { + return queueName_; +} + +void CreateExpressConnectTrafficQosQueueRequest::setQueueName(const std::string &queueName) { + queueName_ = queueName; + setParameter(std::string("QueueName"), queueName); +} + +std::string CreateExpressConnectTrafficQosQueueRequest::getClientToken() const { + return clientToken_; +} + +void CreateExpressConnectTrafficQosQueueRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateExpressConnectTrafficQosQueueRequest::getQueueDescription() const { + return queueDescription_; +} + +void CreateExpressConnectTrafficQosQueueRequest::setQueueDescription(const std::string &queueDescription) { + queueDescription_ = queueDescription; + setParameter(std::string("QueueDescription"), queueDescription); +} + +std::string CreateExpressConnectTrafficQosQueueRequest::getRegionId() const { + return regionId_; +} + +void CreateExpressConnectTrafficQosQueueRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateExpressConnectTrafficQosQueueRequest::getQosId() const { + return qosId_; +} + +void CreateExpressConnectTrafficQosQueueRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); +} + +std::string CreateExpressConnectTrafficQosQueueRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateExpressConnectTrafficQosQueueRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateExpressConnectTrafficQosQueueRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateExpressConnectTrafficQosQueueRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string CreateExpressConnectTrafficQosQueueRequest::getQueueType() const { + return queueType_; +} + +void CreateExpressConnectTrafficQosQueueRequest::setQueueType(const std::string &queueType) { + queueType_ = queueType; + setParameter(std::string("QueueType"), queueType); +} + +long CreateExpressConnectTrafficQosQueueRequest::getOwnerId() const { + return ownerId_; +} + +void CreateExpressConnectTrafficQosQueueRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateExpressConnectTrafficQosQueueRequest::getBandwidthPercent() const { + return bandwidthPercent_; +} + +void CreateExpressConnectTrafficQosQueueRequest::setBandwidthPercent(const std::string &bandwidthPercent) { + bandwidthPercent_ = bandwidthPercent; + setParameter(std::string("BandwidthPercent"), bandwidthPercent); +} + diff --git a/vpc/src/model/CreateExpressConnectTrafficQosQueueResult.cc b/vpc/src/model/CreateExpressConnectTrafficQosQueueResult.cc new file mode 100644 index 000000000..7052bd945 --- /dev/null +++ b/vpc/src/model/CreateExpressConnectTrafficQosQueueResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateExpressConnectTrafficQosQueueResult::CreateExpressConnectTrafficQosQueueResult() : + ServiceResult() +{} + +CreateExpressConnectTrafficQosQueueResult::CreateExpressConnectTrafficQosQueueResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateExpressConnectTrafficQosQueueResult::~CreateExpressConnectTrafficQosQueueResult() +{} + +void CreateExpressConnectTrafficQosQueueResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["QosId"].isNull()) + qosId_ = value["QosId"].asString(); + if(!value["QueueId"].isNull()) + queueId_ = value["QueueId"].asString(); + +} + +std::string CreateExpressConnectTrafficQosQueueResult::getQosId()const +{ + return qosId_; +} + +std::string CreateExpressConnectTrafficQosQueueResult::getQueueId()const +{ + return queueId_; +} + diff --git a/vpc/src/model/CreateExpressConnectTrafficQosRequest.cc b/vpc/src/model/CreateExpressConnectTrafficQosRequest.cc new file mode 100644 index 000000000..c6468545d --- /dev/null +++ b/vpc/src/model/CreateExpressConnectTrafficQosRequest.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateExpressConnectTrafficQosRequest; + +CreateExpressConnectTrafficQosRequest::CreateExpressConnectTrafficQosRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateExpressConnectTrafficQos") { + setMethod(HttpRequest::Method::Post); +} + +CreateExpressConnectTrafficQosRequest::~CreateExpressConnectTrafficQosRequest() {} + +std::string CreateExpressConnectTrafficQosRequest::getClientToken() const { + return clientToken_; +} + +void CreateExpressConnectTrafficQosRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateExpressConnectTrafficQosRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateExpressConnectTrafficQosRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateExpressConnectTrafficQosRequest::getRegionId() const { + return regionId_; +} + +void CreateExpressConnectTrafficQosRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateExpressConnectTrafficQosRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateExpressConnectTrafficQosRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateExpressConnectTrafficQosRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateExpressConnectTrafficQosRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateExpressConnectTrafficQosRequest::getOwnerId() const { + return ownerId_; +} + +void CreateExpressConnectTrafficQosRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector CreateExpressConnectTrafficQosRequest::getTags() const { + return tags_; +} + +void CreateExpressConnectTrafficQosRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Key", tagsObj.key); + setParameter(tagsObjStr + ".Value", tagsObj.value); + } +} + +std::string CreateExpressConnectTrafficQosRequest::getQosName() const { + return qosName_; +} + +void CreateExpressConnectTrafficQosRequest::setQosName(const std::string &qosName) { + qosName_ = qosName; + setParameter(std::string("QosName"), qosName); +} + +std::string CreateExpressConnectTrafficQosRequest::getQosDescription() const { + return qosDescription_; +} + +void CreateExpressConnectTrafficQosRequest::setQosDescription(const std::string &qosDescription) { + qosDescription_ = qosDescription; + setParameter(std::string("QosDescription"), qosDescription); +} + diff --git a/vpc/src/model/CreateExpressConnectTrafficQosResult.cc b/vpc/src/model/CreateExpressConnectTrafficQosResult.cc new file mode 100644 index 000000000..6e23f9d63 --- /dev/null +++ b/vpc/src/model/CreateExpressConnectTrafficQosResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateExpressConnectTrafficQosResult::CreateExpressConnectTrafficQosResult() : + ServiceResult() +{} + +CreateExpressConnectTrafficQosResult::CreateExpressConnectTrafficQosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateExpressConnectTrafficQosResult::~CreateExpressConnectTrafficQosResult() +{} + +void CreateExpressConnectTrafficQosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["QosId"].isNull()) + qosId_ = value["QosId"].asString(); + +} + +std::string CreateExpressConnectTrafficQosResult::getQosId()const +{ + return qosId_; +} + diff --git a/vpc/src/model/CreateExpressConnectTrafficQosRuleRequest.cc b/vpc/src/model/CreateExpressConnectTrafficQosRuleRequest.cc new file mode 100644 index 000000000..3fcc47f09 --- /dev/null +++ b/vpc/src/model/CreateExpressConnectTrafficQosRuleRequest.cc @@ -0,0 +1,198 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateExpressConnectTrafficQosRuleRequest; + +CreateExpressConnectTrafficQosRuleRequest::CreateExpressConnectTrafficQosRuleRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateExpressConnectTrafficQosRule") { + setMethod(HttpRequest::Method::Post); +} + +CreateExpressConnectTrafficQosRuleRequest::~CreateExpressConnectTrafficQosRuleRequest() {} + +std::string CreateExpressConnectTrafficQosRuleRequest::getDstCidr() const { + return dstCidr_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setDstCidr(const std::string &dstCidr) { + dstCidr_ = dstCidr; + setParameter(std::string("DstCidr"), dstCidr); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getClientToken() const { + return clientToken_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getRuleName() const { + return ruleName_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getSrcCidr() const { + return srcCidr_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setSrcCidr(const std::string &srcCidr) { + srcCidr_ = srcCidr; + setParameter(std::string("SrcCidr"), srcCidr); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getDstIPv6Cidr() const { + return dstIPv6Cidr_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setDstIPv6Cidr(const std::string &dstIPv6Cidr) { + dstIPv6Cidr_ = dstIPv6Cidr; + setParameter(std::string("DstIPv6Cidr"), dstIPv6Cidr); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getDstPortRange() const { + return dstPortRange_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setDstPortRange(const std::string &dstPortRange) { + dstPortRange_ = dstPortRange; + setParameter(std::string("DstPortRange"), dstPortRange); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getProtocol() const { + return protocol_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getRegionId() const { + return regionId_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getQosId() const { + return qosId_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getQueueId() const { + return queueId_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setQueueId(const std::string &queueId) { + queueId_ = queueId; + setParameter(std::string("QueueId"), queueId); +} + +int CreateExpressConnectTrafficQosRuleRequest::getMatchDscp() const { + return matchDscp_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setMatchDscp(int matchDscp) { + matchDscp_ = matchDscp; + setParameter(std::string("MatchDscp"), std::to_string(matchDscp)); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getRuleDescription() const { + return ruleDescription_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setRuleDescription(const std::string &ruleDescription) { + ruleDescription_ = ruleDescription; + setParameter(std::string("RuleDescription"), ruleDescription); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +int CreateExpressConnectTrafficQosRuleRequest::getRemarkingDscp() const { + return remarkingDscp_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setRemarkingDscp(int remarkingDscp) { + remarkingDscp_ = remarkingDscp; + setParameter(std::string("RemarkingDscp"), std::to_string(remarkingDscp)); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +int CreateExpressConnectTrafficQosRuleRequest::getPriority() const { + return priority_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + +long CreateExpressConnectTrafficQosRuleRequest::getOwnerId() const { + return ownerId_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getSrcPortRange() const { + return srcPortRange_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setSrcPortRange(const std::string &srcPortRange) { + srcPortRange_ = srcPortRange; + setParameter(std::string("SrcPortRange"), srcPortRange); +} + +std::string CreateExpressConnectTrafficQosRuleRequest::getSrcIPv6Cidr() const { + return srcIPv6Cidr_; +} + +void CreateExpressConnectTrafficQosRuleRequest::setSrcIPv6Cidr(const std::string &srcIPv6Cidr) { + srcIPv6Cidr_ = srcIPv6Cidr; + setParameter(std::string("SrcIPv6Cidr"), srcIPv6Cidr); +} + diff --git a/vpc/src/model/CreateExpressConnectTrafficQosRuleResult.cc b/vpc/src/model/CreateExpressConnectTrafficQosRuleResult.cc new file mode 100644 index 000000000..29e4e3ad8 --- /dev/null +++ b/vpc/src/model/CreateExpressConnectTrafficQosRuleResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateExpressConnectTrafficQosRuleResult::CreateExpressConnectTrafficQosRuleResult() : + ServiceResult() +{} + +CreateExpressConnectTrafficQosRuleResult::CreateExpressConnectTrafficQosRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateExpressConnectTrafficQosRuleResult::~CreateExpressConnectTrafficQosRuleResult() +{} + +void CreateExpressConnectTrafficQosRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["QosId"].isNull()) + qosId_ = value["QosId"].asString(); + if(!value["QueueId"].isNull()) + queueId_ = value["QueueId"].asString(); + if(!value["RuleId"].isNull()) + ruleId_ = value["RuleId"].asString(); + +} + +std::string CreateExpressConnectTrafficQosRuleResult::getRuleId()const +{ + return ruleId_; +} + +std::string CreateExpressConnectTrafficQosRuleResult::getQosId()const +{ + return qosId_; +} + +std::string CreateExpressConnectTrafficQosRuleResult::getQueueId()const +{ + return queueId_; +} + diff --git a/vpc/src/model/CreateFailoverTestJobRequest.cc b/vpc/src/model/CreateFailoverTestJobRequest.cc new file mode 100644 index 000000000..b068c7ca3 --- /dev/null +++ b/vpc/src/model/CreateFailoverTestJobRequest.cc @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateFailoverTestJobRequest; + +CreateFailoverTestJobRequest::CreateFailoverTestJobRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateFailoverTestJob") { + setMethod(HttpRequest::Method::Post); +} + +CreateFailoverTestJobRequest::~CreateFailoverTestJobRequest() {} + +std::string CreateFailoverTestJobRequest::getClientToken() const { + return clientToken_; +} + +void CreateFailoverTestJobRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateFailoverTestJobRequest::getDescription() const { + return description_; +} + +void CreateFailoverTestJobRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int CreateFailoverTestJobRequest::getJobDuration() const { + return jobDuration_; +} + +void CreateFailoverTestJobRequest::setJobDuration(int jobDuration) { + jobDuration_ = jobDuration; + setParameter(std::string("JobDuration"), std::to_string(jobDuration)); +} + +std::string CreateFailoverTestJobRequest::getRegionId() const { + return regionId_; +} + +void CreateFailoverTestJobRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector CreateFailoverTestJobRequest::getResourceId() const { + return resourceId_; +} + +void CreateFailoverTestJobRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +bool CreateFailoverTestJobRequest::getDryRun() const { + return dryRun_; +} + +void CreateFailoverTestJobRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateFailoverTestJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateFailoverTestJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateFailoverTestJobRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateFailoverTestJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateFailoverTestJobRequest::getOwnerId() const { + return ownerId_; +} + +void CreateFailoverTestJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateFailoverTestJobRequest::getResourceType() const { + return resourceType_; +} + +void CreateFailoverTestJobRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string CreateFailoverTestJobRequest::getJobType() const { + return jobType_; +} + +void CreateFailoverTestJobRequest::setJobType(const std::string &jobType) { + jobType_ = jobType; + setParameter(std::string("JobType"), jobType); +} + +std::string CreateFailoverTestJobRequest::getName() const { + return name_; +} + +void CreateFailoverTestJobRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/vpc/src/model/CreateFailoverTestJobResult.cc b/vpc/src/model/CreateFailoverTestJobResult.cc new file mode 100644 index 000000000..a1a2c00c7 --- /dev/null +++ b/vpc/src/model/CreateFailoverTestJobResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateFailoverTestJobResult::CreateFailoverTestJobResult() : + ServiceResult() +{} + +CreateFailoverTestJobResult::CreateFailoverTestJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFailoverTestJobResult::~CreateFailoverTestJobResult() +{} + +void CreateFailoverTestJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string CreateFailoverTestJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/vpc/src/model/CreateFlowLogRequest.cc b/vpc/src/model/CreateFlowLogRequest.cc index bd3cab016..4457e8c1e 100644 --- a/vpc/src/model/CreateFlowLogRequest.cc +++ b/vpc/src/model/CreateFlowLogRequest.cc @@ -61,6 +61,29 @@ void CreateFlowLogRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string CreateFlowLogRequest::getIpVersion() const { + return ipVersion_; +} + +void CreateFlowLogRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); +} + +std::vector CreateFlowLogRequest::getTag() const { + return tag_; +} + +void CreateFlowLogRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string CreateFlowLogRequest::getResourceId() const { return resourceId_; } @@ -159,3 +182,12 @@ void CreateFlowLogRequest::setFlowLogName(const std::string &flowLogName) { setParameter(std::string("FlowLogName"), flowLogName); } +std::string CreateFlowLogRequest::getTrafficAnalyzerId() const { + return trafficAnalyzerId_; +} + +void CreateFlowLogRequest::setTrafficAnalyzerId(const std::string &trafficAnalyzerId) { + trafficAnalyzerId_ = trafficAnalyzerId; + setParameter(std::string("TrafficAnalyzerId"), trafficAnalyzerId); +} + diff --git a/vpc/src/model/CreateForwardEntryRequest.cc b/vpc/src/model/CreateForwardEntryRequest.cc index a0cce0d3a..f2f95af7c 100644 --- a/vpc/src/model/CreateForwardEntryRequest.cc +++ b/vpc/src/model/CreateForwardEntryRequest.cc @@ -79,6 +79,15 @@ void CreateForwardEntryRequest::setExternalIp(const std::string &externalIp) { setParameter(std::string("ExternalIp"), externalIp); } +bool CreateForwardEntryRequest::getDryRun() const { + return dryRun_; +} + +void CreateForwardEntryRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string CreateForwardEntryRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/CreateHaVipRequest.cc b/vpc/src/model/CreateHaVipRequest.cc index 3f9f7b95c..dd0bd0b93 100644 --- a/vpc/src/model/CreateHaVipRequest.cc +++ b/vpc/src/model/CreateHaVipRequest.cc @@ -79,6 +79,20 @@ void CreateHaVipRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::vector CreateHaVipRequest::getTag() const { + return tag_; +} + +void CreateHaVipRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string CreateHaVipRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/CreateHighReliablePhysicalConnectionRequest.cc b/vpc/src/model/CreateHighReliablePhysicalConnectionRequest.cc new file mode 100644 index 000000000..19d77d83c --- /dev/null +++ b/vpc/src/model/CreateHighReliablePhysicalConnectionRequest.cc @@ -0,0 +1,170 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateHighReliablePhysicalConnectionRequest; + +CreateHighReliablePhysicalConnectionRequest::CreateHighReliablePhysicalConnectionRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateHighReliablePhysicalConnection") { + setMethod(HttpRequest::Method::Post); +} + +CreateHighReliablePhysicalConnectionRequest::~CreateHighReliablePhysicalConnectionRequest() {} + +long CreateHighReliablePhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateHighReliablePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateHighReliablePhysicalConnectionRequest::getPortType() const { + return portType_; +} + +void CreateHighReliablePhysicalConnectionRequest::setPortType(const std::string &portType) { + portType_ = portType; + setParameter(std::string("PortType"), portType); +} + +std::string CreateHighReliablePhysicalConnectionRequest::getClientToken() const { + return clientToken_; +} + +void CreateHighReliablePhysicalConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateHighReliablePhysicalConnectionRequest::getHighReliableType() const { + return highReliableType_; +} + +void CreateHighReliablePhysicalConnectionRequest::setHighReliableType(const std::string &highReliableType) { + highReliableType_ = highReliableType; + setParameter(std::string("HighReliableType"), highReliableType); +} + +std::string CreateHighReliablePhysicalConnectionRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateHighReliablePhysicalConnectionRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateHighReliablePhysicalConnectionRequest::getRegionId() const { + return regionId_; +} + +void CreateHighReliablePhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector CreateHighReliablePhysicalConnectionRequest::getTag() const { + return tag_; +} + +void CreateHighReliablePhysicalConnectionRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +std::string CreateHighReliablePhysicalConnectionRequest::getDryRun() const { + return dryRun_; +} + +void CreateHighReliablePhysicalConnectionRequest::setDryRun(const std::string &dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun); +} + +std::string CreateHighReliablePhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateHighReliablePhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateHighReliablePhysicalConnectionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateHighReliablePhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateHighReliablePhysicalConnectionRequest::getOwnerId() const { + return ownerId_; +} + +void CreateHighReliablePhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector CreateHighReliablePhysicalConnectionRequest::getApList() const { + return apList_; +} + +void CreateHighReliablePhysicalConnectionRequest::setApList(const std::vector &apList) { + apList_ = apList; + for(int dep1 = 0; dep1 != apList.size(); dep1++) { + auto apListObj = apList.at(dep1); + std::string apListObjStr = std::string("ApList") + "." + std::to_string(dep1 + 1); + setParameter(apListObjStr + ".Name", apListObj.name); + setParameter(apListObjStr + ".Description", apListObj.description); + setParameter(apListObjStr + ".RegionId", apListObj.regionId); + setParameter(apListObjStr + ".LineOperator", apListObj.lineOperator); + setParameter(apListObjStr + ".AccessPointId", apListObj.accessPointId); + setParameter(apListObjStr + ".PortNum", std::to_string(apListObj.portNum)); + setParameter(apListObjStr + ".Type", apListObj.type); + setParameter(apListObjStr + ".Bandwidth", std::to_string(apListObj.bandwidth)); + setParameter(apListObjStr + ".PeerLocation", apListObj.peerLocation); + setParameter(apListObjStr + ".CircuitCode", apListObj.circuitCode); + } +} + +std::string CreateHighReliablePhysicalConnectionRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void CreateHighReliablePhysicalConnectionRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + +std::vector CreateHighReliablePhysicalConnectionRequest::getDeviceAdvancedCapacity() const { + return deviceAdvancedCapacity_; +} + +void CreateHighReliablePhysicalConnectionRequest::setDeviceAdvancedCapacity(const std::vector &deviceAdvancedCapacity) { + deviceAdvancedCapacity_ = deviceAdvancedCapacity; +} + diff --git a/vpc/src/model/CreateHighReliablePhysicalConnectionResult.cc b/vpc/src/model/CreateHighReliablePhysicalConnectionResult.cc new file mode 100644 index 000000000..78d4ae770 --- /dev/null +++ b/vpc/src/model/CreateHighReliablePhysicalConnectionResult.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateHighReliablePhysicalConnectionResult::CreateHighReliablePhysicalConnectionResult() : + ServiceResult() +{} + +CreateHighReliablePhysicalConnectionResult::CreateHighReliablePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateHighReliablePhysicalConnectionResult::~CreateHighReliablePhysicalConnectionResult() +{} + +void CreateHighReliablePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPhysicalConnectionListNode = value["PhysicalConnectionList"]["physicalConnectionListItem"]; + for (auto valuePhysicalConnectionListphysicalConnectionListItem : allPhysicalConnectionListNode) + { + PhysicalConnectionListItem physicalConnectionListObject; + if(!valuePhysicalConnectionListphysicalConnectionListItem["InstanceId"].isNull()) + physicalConnectionListObject.instanceId = valuePhysicalConnectionListphysicalConnectionListItem["InstanceId"].asString(); + if(!valuePhysicalConnectionListphysicalConnectionListItem["RegionNo"].isNull()) + physicalConnectionListObject.regionNo = valuePhysicalConnectionListphysicalConnectionListItem["RegionNo"].asString(); + physicalConnectionList_.push_back(physicalConnectionListObject); + } + auto allErrorInfoListNode = value["ErrorInfoList"]["errorInfoListItem"]; + for (auto valueErrorInfoListerrorInfoListItem : allErrorInfoListNode) + { + ErrorInfoListItem errorInfoListObject; + if(!valueErrorInfoListerrorInfoListItem["ErrorCode"].isNull()) + errorInfoListObject.errorCode = valueErrorInfoListerrorInfoListItem["ErrorCode"].asString(); + if(!valueErrorInfoListerrorInfoListItem["ErrorMessage"].isNull()) + errorInfoListObject.errorMessage = valueErrorInfoListerrorInfoListItem["ErrorMessage"].asString(); + if(!valueErrorInfoListerrorInfoListItem["InstanceId"].isNull()) + errorInfoListObject.instanceId = valueErrorInfoListerrorInfoListItem["InstanceId"].asString(); + errorInfoList_.push_back(errorInfoListObject); + } + +} + +std::vector CreateHighReliablePhysicalConnectionResult::getErrorInfoList()const +{ + return errorInfoList_; +} + +std::vector CreateHighReliablePhysicalConnectionResult::getPhysicalConnectionList()const +{ + return physicalConnectionList_; +} + diff --git a/vpc/src/model/CreateIpv4GatewayRequest.cc b/vpc/src/model/CreateIpv4GatewayRequest.cc index 6875f8387..06b1176b7 100644 --- a/vpc/src/model/CreateIpv4GatewayRequest.cc +++ b/vpc/src/model/CreateIpv4GatewayRequest.cc @@ -79,6 +79,20 @@ void CreateIpv4GatewayRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::vector CreateIpv4GatewayRequest::getTag() const { + return tag_; +} + +void CreateIpv4GatewayRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + bool CreateIpv4GatewayRequest::getDryRun() const { return dryRun_; } diff --git a/vpc/src/model/CreateIpv6GatewayRequest.cc b/vpc/src/model/CreateIpv6GatewayRequest.cc index d9f937256..c5638eaab 100644 --- a/vpc/src/model/CreateIpv6GatewayRequest.cc +++ b/vpc/src/model/CreateIpv6GatewayRequest.cc @@ -79,6 +79,20 @@ void CreateIpv6GatewayRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::vector CreateIpv6GatewayRequest::getTag() const { + return tag_; +} + +void CreateIpv6GatewayRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + std::string CreateIpv6GatewayRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/CreateNatGatewayRequest.cc b/vpc/src/model/CreateNatGatewayRequest.cc index 3f5d21842..63d6efece 100644 --- a/vpc/src/model/CreateNatGatewayRequest.cc +++ b/vpc/src/model/CreateNatGatewayRequest.cc @@ -209,6 +209,15 @@ void CreateNatGatewayRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +bool CreateNatGatewayRequest::getIsCreateDefaultRoute() const { + return isCreateDefaultRoute_; +} + +void CreateNatGatewayRequest::setIsCreateDefaultRoute(bool isCreateDefaultRoute) { + isCreateDefaultRoute_ = isCreateDefaultRoute; + setParameter(std::string("IsCreateDefaultRoute"), isCreateDefaultRoute ? "true" : "false"); +} + std::string CreateNatGatewayRequest::getVSwitchId() const { return vSwitchId_; } @@ -272,3 +281,13 @@ void CreateNatGatewayRequest::setPricingCycle(const std::string &pricingCycle) { setParameter(std::string("PricingCycle"), pricingCycle); } +CreateNatGatewayRequest::AccessMode CreateNatGatewayRequest::getAccessMode() const { + return accessMode_; +} + +void CreateNatGatewayRequest::setAccessMode(const CreateNatGatewayRequest::AccessMode &accessMode) { + accessMode_ = accessMode; + setParameter(std::string("AccessMode") + ".ModeValue", accessMode.modeValue); + setParameter(std::string("AccessMode") + ".TunnelType", accessMode.tunnelType); +} + diff --git a/vpc/src/model/CreateNatIpRequest.cc b/vpc/src/model/CreateNatIpRequest.cc index b21b57214..bbd03fd53 100644 --- a/vpc/src/model/CreateNatIpRequest.cc +++ b/vpc/src/model/CreateNatIpRequest.cc @@ -25,15 +25,6 @@ CreateNatIpRequest::CreateNatIpRequest() CreateNatIpRequest::~CreateNatIpRequest() {} -std::string CreateNatIpRequest::getNatIpCidrId() const { - return natIpCidrId_; -} - -void CreateNatIpRequest::setNatIpCidrId(const std::string &natIpCidrId) { - natIpCidrId_ = natIpCidrId; - setParameter(std::string("NatIpCidrId"), natIpCidrId); -} - long CreateNatIpRequest::getResourceOwnerId() const { return resourceOwnerId_; } diff --git a/vpc/src/model/CreateNetworkAclRequest.cc b/vpc/src/model/CreateNetworkAclRequest.cc index 37ab34e98..b1a324ef2 100644 --- a/vpc/src/model/CreateNetworkAclRequest.cc +++ b/vpc/src/model/CreateNetworkAclRequest.cc @@ -61,6 +61,29 @@ void CreateNetworkAclRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::vector CreateNetworkAclRequest::getTag() const { + return tag_; +} + +void CreateNetworkAclRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +bool CreateNetworkAclRequest::getDryRun() const { + return dryRun_; +} + +void CreateNetworkAclRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string CreateNetworkAclRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -70,6 +93,15 @@ void CreateNetworkAclRequest::setResourceOwnerAccount(const std::string &resourc setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } +std::string CreateNetworkAclRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateNetworkAclRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + std::string CreateNetworkAclRequest::getNetworkAclName() const { return networkAclName_; } diff --git a/vpc/src/model/CreatePhysicalConnectionRequest.cc b/vpc/src/model/CreatePhysicalConnectionRequest.cc index 838a119af..8824b1da4 100644 --- a/vpc/src/model/CreatePhysicalConnectionRequest.cc +++ b/vpc/src/model/CreatePhysicalConnectionRequest.cc @@ -115,6 +115,20 @@ void CreatePhysicalConnectionRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::vector CreatePhysicalConnectionRequest::getTag() const { + return tag_; +} + +void CreatePhysicalConnectionRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId() const { return redundantPhysicalConnectionId_; } @@ -187,3 +201,11 @@ void CreatePhysicalConnectionRequest::setName(const std::string &name) { setParameter(std::string("Name"), name); } +std::vector CreatePhysicalConnectionRequest::getDeviceAdvancedCapacity() const { + return deviceAdvancedCapacity_; +} + +void CreatePhysicalConnectionRequest::setDeviceAdvancedCapacity(const std::vector &deviceAdvancedCapacity) { + deviceAdvancedCapacity_ = deviceAdvancedCapacity; +} + diff --git a/vpc/src/model/CreatePublicIpAddressPoolRequest.cc b/vpc/src/model/CreatePublicIpAddressPoolRequest.cc index 7f0df945d..39c24f0f3 100644 --- a/vpc/src/model/CreatePublicIpAddressPoolRequest.cc +++ b/vpc/src/model/CreatePublicIpAddressPoolRequest.cc @@ -79,6 +79,20 @@ void CreatePublicIpAddressPoolRequest::setRegionId(const std::string ®ionId) setParameter(std::string("RegionId"), regionId); } +std::vector CreatePublicIpAddressPoolRequest::getTag() const { + return tag_; +} + +void CreatePublicIpAddressPoolRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + bool CreatePublicIpAddressPoolRequest::getDryRun() const { return dryRun_; } @@ -106,6 +120,14 @@ void CreatePublicIpAddressPoolRequest::setOwnerAccount(const std::string &ownerA setParameter(std::string("OwnerAccount"), ownerAccount); } +std::vector CreatePublicIpAddressPoolRequest::getZones() const { + return zones_; +} + +void CreatePublicIpAddressPoolRequest::setZones(const std::vector &zones) { + zones_ = zones; +} + long CreatePublicIpAddressPoolRequest::getOwnerId() const { return ownerId_; } @@ -115,6 +137,15 @@ void CreatePublicIpAddressPoolRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string CreatePublicIpAddressPoolRequest::getBizType() const { + return bizType_; +} + +void CreatePublicIpAddressPoolRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setParameter(std::string("BizType"), bizType); +} + std::string CreatePublicIpAddressPoolRequest::getName() const { return name_; } @@ -124,3 +155,11 @@ void CreatePublicIpAddressPoolRequest::setName(const std::string &name) { setParameter(std::string("Name"), name); } +std::vector CreatePublicIpAddressPoolRequest::getSecurityProtectionTypes() const { + return securityProtectionTypes_; +} + +void CreatePublicIpAddressPoolRequest::setSecurityProtectionTypes(const std::vector &securityProtectionTypes) { + securityProtectionTypes_ = securityProtectionTypes; +} + diff --git a/vpc/src/model/CreatePublicIpAddressPoolResult.cc b/vpc/src/model/CreatePublicIpAddressPoolResult.cc index d8efc5a5c..2b8fb6d9a 100644 --- a/vpc/src/model/CreatePublicIpAddressPoolResult.cc +++ b/vpc/src/model/CreatePublicIpAddressPoolResult.cc @@ -43,6 +43,8 @@ void CreatePublicIpAddressPoolResult::parse(const std::string &payload) pulbicIpAddressPoolId_ = value["PulbicIpAddressPoolId"].asString(); if(!value["ResourceGroupId"].isNull()) resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["PublicIpAddressPoolId"].isNull()) + publicIpAddressPoolId_ = value["PublicIpAddressPoolId"].asString(); } @@ -56,3 +58,8 @@ std::string CreatePublicIpAddressPoolResult::getPulbicIpAddressPoolId()const return pulbicIpAddressPoolId_; } +std::string CreatePublicIpAddressPoolResult::getPublicIpAddressPoolId()const +{ + return publicIpAddressPoolId_; +} + diff --git a/vpc/src/model/CreateRouteEntriesRequest.cc b/vpc/src/model/CreateRouteEntriesRequest.cc index 20a30bf37..d811aea33 100644 --- a/vpc/src/model/CreateRouteEntriesRequest.cc +++ b/vpc/src/model/CreateRouteEntriesRequest.cc @@ -43,6 +43,15 @@ void CreateRouteEntriesRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +bool CreateRouteEntriesRequest::getDryRun() const { + return dryRun_; +} + +void CreateRouteEntriesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string CreateRouteEntriesRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -85,7 +94,7 @@ void CreateRouteEntriesRequest::setRouteEntries(const std::vector CreateRouteTableRequest::getTag() const { + return tag_; +} + +void CreateRouteTableRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + std::string CreateRouteTableRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/CreateRouteTableResult.cc b/vpc/src/model/CreateRouteTableResult.cc index 959a3a495..d49d4387e 100644 --- a/vpc/src/model/CreateRouteTableResult.cc +++ b/vpc/src/model/CreateRouteTableResult.cc @@ -41,8 +41,6 @@ void CreateRouteTableResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["RouteTableId"].isNull()) routeTableId_ = value["RouteTableId"].asString(); - if(!value["AssociateType"].isNull()) - associateType_ = value["AssociateType"].asString(); } @@ -51,8 +49,3 @@ std::string CreateRouteTableResult::getRouteTableId()const return routeTableId_; } -std::string CreateRouteTableResult::getAssociateType()const -{ - return associateType_; -} - diff --git a/vpc/src/model/CreateRouterInterfaceRequest.cc b/vpc/src/model/CreateRouterInterfaceRequest.cc index becaa9d00..046da1965 100644 --- a/vpc/src/model/CreateRouterInterfaceRequest.cc +++ b/vpc/src/model/CreateRouterInterfaceRequest.cc @@ -34,15 +34,6 @@ void CreateRouterInterfaceRequest::setAccessPointId(const std::string &accessPoi setParameter(std::string("AccessPointId"), accessPointId); } -std::string CreateRouterInterfaceRequest::getOppositeRouterId() const { - return oppositeRouterId_; -} - -void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string &oppositeRouterId) { - oppositeRouterId_ = oppositeRouterId; - setParameter(std::string("OppositeRouterId"), oppositeRouterId); -} - std::string CreateRouterInterfaceRequest::getOppositeAccessPointId() const { return oppositeAccessPointId_; } @@ -61,6 +52,119 @@ void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string CreateRouterInterfaceRequest::getSpec() const { + return spec_; +} + +void CreateRouterInterfaceRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); +} + +std::string CreateRouterInterfaceRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateRouterInterfaceRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +int CreateRouterInterfaceRequest::getPeriod() const { + return period_; +} + +void CreateRouterInterfaceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); +} + +std::string CreateRouterInterfaceRequest::getOppositeRegionId() const { + return oppositeRegionId_; +} + +void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string &oppositeRegionId) { + oppositeRegionId_ = oppositeRegionId; + setParameter(std::string("OppositeRegionId"), oppositeRegionId); +} + +long CreateRouterInterfaceRequest::getOwnerId() const { + return ownerId_; +} + +void CreateRouterInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId() const { + return oppositeInterfaceOwnerId_; +} + +void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string &oppositeInterfaceOwnerId) { + oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; + setParameter(std::string("OppositeInterfaceOwnerId"), oppositeInterfaceOwnerId); +} + +std::vector CreateRouterInterfaceRequest::getTags() const { + return tags_; +} + +void CreateRouterInterfaceRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Value", tagsObj.value); + setParameter(tagsObjStr + ".Key", tagsObj.key); + } +} + +bool CreateRouterInterfaceRequest::getAutoRenew() const { + return autoRenew_; +} + +void CreateRouterInterfaceRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); +} + +std::string CreateRouterInterfaceRequest::getOppositeRouterType() const { + return oppositeRouterType_; +} + +void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string &oppositeRouterType) { + oppositeRouterType_ = oppositeRouterType; + setParameter(std::string("OppositeRouterType"), oppositeRouterType); +} + +std::string CreateRouterInterfaceRequest::getName() const { + return name_; +} + +void CreateRouterInterfaceRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateRouterInterfaceRequest::getPricingCycle() const { + return pricingCycle_; +} + +void CreateRouterInterfaceRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); +} + +std::string CreateRouterInterfaceRequest::getOppositeRouterId() const { + return oppositeRouterId_; +} + +void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string &oppositeRouterId) { + oppositeRouterId_ = oppositeRouterId; + setParameter(std::string("OppositeRouterId"), oppositeRouterId); +} + std::string CreateRouterInterfaceRequest::getRole() const { return role_; } @@ -97,15 +201,6 @@ void CreateRouterInterfaceRequest::setDescription(const std::string &description setParameter(std::string("Description"), description); } -std::string CreateRouterInterfaceRequest::getSpec() const { - return spec_; -} - -void CreateRouterInterfaceRequest::setSpec(const std::string &spec) { - spec_ = spec; - setParameter(std::string("Spec"), spec); -} - bool CreateRouterInterfaceRequest::getFastLinkMode() const { return fastLinkMode_; } @@ -142,15 +237,6 @@ void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string &inst setParameter(std::string("InstanceChargeType"), instanceChargeType); } -int CreateRouterInterfaceRequest::getPeriod() const { - return period_; -} - -void CreateRouterInterfaceRequest::setPeriod(int period) { - period_ = period; - setParameter(std::string("Period"), std::to_string(period)); -} - bool CreateRouterInterfaceRequest::getAutoPay() const { return autoPay_; } @@ -160,6 +246,15 @@ void CreateRouterInterfaceRequest::setAutoPay(bool autoPay) { setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } +std::string CreateRouterInterfaceRequest::getPromotionOptionNo() const { + return promotionOptionNo_; +} + +void CreateRouterInterfaceRequest::setPromotionOptionNo(const std::string &promotionOptionNo) { + promotionOptionNo_ = promotionOptionNo; + setParameter(std::string("PromotionOptionNo"), promotionOptionNo); +} + std::string CreateRouterInterfaceRequest::getAvailableZoneId() const { return availableZoneId_; } @@ -178,15 +273,6 @@ void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string &re setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -std::string CreateRouterInterfaceRequest::getOppositeRegionId() const { - return oppositeRegionId_; -} - -void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string &oppositeRegionId) { - oppositeRegionId_ = oppositeRegionId; - setParameter(std::string("OppositeRegionId"), oppositeRegionId); -} - std::string CreateRouterInterfaceRequest::getOwnerAccount() const { return ownerAccount_; } @@ -196,24 +282,6 @@ void CreateRouterInterfaceRequest::setOwnerAccount(const std::string &ownerAccou setParameter(std::string("OwnerAccount"), ownerAccount); } -long CreateRouterInterfaceRequest::getOwnerId() const { - return ownerId_; -} - -void CreateRouterInterfaceRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId() const { - return oppositeInterfaceOwnerId_; -} - -void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string &oppositeInterfaceOwnerId) { - oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; - setParameter(std::string("OppositeInterfaceOwnerId"), oppositeInterfaceOwnerId); -} - std::string CreateRouterInterfaceRequest::getRouterType() const { return routerType_; } @@ -241,30 +309,3 @@ void CreateRouterInterfaceRequest::setRouterId(const std::string &routerId) { setParameter(std::string("RouterId"), routerId); } -std::string CreateRouterInterfaceRequest::getOppositeRouterType() const { - return oppositeRouterType_; -} - -void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string &oppositeRouterType) { - oppositeRouterType_ = oppositeRouterType; - setParameter(std::string("OppositeRouterType"), oppositeRouterType); -} - -std::string CreateRouterInterfaceRequest::getName() const { - return name_; -} - -void CreateRouterInterfaceRequest::setName(const std::string &name) { - name_ = name; - setParameter(std::string("Name"), name); -} - -std::string CreateRouterInterfaceRequest::getPricingCycle() const { - return pricingCycle_; -} - -void CreateRouterInterfaceRequest::setPricingCycle(const std::string &pricingCycle) { - pricingCycle_ = pricingCycle; - setParameter(std::string("PricingCycle"), pricingCycle); -} - diff --git a/vpc/src/model/CreateSnatEntryRequest.cc b/vpc/src/model/CreateSnatEntryRequest.cc index 63f98ef35..84e8d9cc2 100644 --- a/vpc/src/model/CreateSnatEntryRequest.cc +++ b/vpc/src/model/CreateSnatEntryRequest.cc @@ -88,6 +88,15 @@ void CreateSnatEntryRequest::setEipAffinity(int eipAffinity) { setParameter(std::string("EipAffinity"), std::to_string(eipAffinity)); } +bool CreateSnatEntryRequest::getDryRun() const { + return dryRun_; +} + +void CreateSnatEntryRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string CreateSnatEntryRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -133,3 +142,12 @@ void CreateSnatEntryRequest::setSnatEntryName(const std::string &snatEntryName) setParameter(std::string("SnatEntryName"), snatEntryName); } +std::string CreateSnatEntryRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void CreateSnatEntryRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); +} + diff --git a/vpc/src/model/CreateSslVpnServerRequest.cc b/vpc/src/model/CreateSslVpnServerRequest.cc index cd9b471b9..3a75ea048 100644 --- a/vpc/src/model/CreateSslVpnServerRequest.cc +++ b/vpc/src/model/CreateSslVpnServerRequest.cc @@ -97,6 +97,15 @@ void CreateSslVpnServerRequest::setCipher(const std::string &cipher) { setParameter(std::string("Cipher"), cipher); } +std::string CreateSslVpnServerRequest::getIDaaSApplicationId() const { + return iDaaSApplicationId_; +} + +void CreateSslVpnServerRequest::setIDaaSApplicationId(const std::string &iDaaSApplicationId) { + iDaaSApplicationId_ = iDaaSApplicationId; + setParameter(std::string("IDaaSApplicationId"), iDaaSApplicationId); +} + std::string CreateSslVpnServerRequest::getClientIpPool() const { return clientIpPool_; } @@ -106,6 +115,15 @@ void CreateSslVpnServerRequest::setClientIpPool(const std::string &clientIpPool) setParameter(std::string("ClientIpPool"), clientIpPool); } +bool CreateSslVpnServerRequest::getDryRun() const { + return dryRun_; +} + +void CreateSslVpnServerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string CreateSslVpnServerRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/CreateTrafficMirrorFilterRequest.cc b/vpc/src/model/CreateTrafficMirrorFilterRequest.cc index 695f75a11..32d808e62 100644 --- a/vpc/src/model/CreateTrafficMirrorFilterRequest.cc +++ b/vpc/src/model/CreateTrafficMirrorFilterRequest.cc @@ -55,6 +55,7 @@ void CreateTrafficMirrorFilterRequest::setIngressRules(const std::vector CreateTrafficMirrorFilterRequest::getTag() const { + return tag_; +} + +void CreateTrafficMirrorFilterRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + std::vector CreateTrafficMirrorFilterRequest::getEgressRules() const { return egressRules_; } @@ -101,6 +116,7 @@ void CreateTrafficMirrorFilterRequest::setEgressRules(const std::vector CreateTrafficMirrorSessionRequest::getTag() const { + return tag_; +} + +void CreateTrafficMirrorSessionRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + bool CreateTrafficMirrorSessionRequest::getDryRun() const { return dryRun_; } @@ -186,3 +200,12 @@ void CreateTrafficMirrorSessionRequest::setVirtualNetworkId(int virtualNetworkId setParameter(std::string("VirtualNetworkId"), std::to_string(virtualNetworkId)); } +int CreateTrafficMirrorSessionRequest::getTrafficMirrorSourceTruncateMode() const { + return trafficMirrorSourceTruncateMode_; +} + +void CreateTrafficMirrorSessionRequest::setTrafficMirrorSourceTruncateMode(int trafficMirrorSourceTruncateMode) { + trafficMirrorSourceTruncateMode_ = trafficMirrorSourceTruncateMode; + setParameter(std::string("TrafficMirrorSourceTruncateMode"), std::to_string(trafficMirrorSourceTruncateMode)); +} + diff --git a/vpc/src/model/CreateVSwitchCidrReservationRequest.cc b/vpc/src/model/CreateVSwitchCidrReservationRequest.cc new file mode 100644 index 000000000..34456ed07 --- /dev/null +++ b/vpc/src/model/CreateVSwitchCidrReservationRequest.cc @@ -0,0 +1,167 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::CreateVSwitchCidrReservationRequest; + +CreateVSwitchCidrReservationRequest::CreateVSwitchCidrReservationRequest() + : RpcServiceRequest("vpc", "2016-04-28", "CreateVSwitchCidrReservation") { + setMethod(HttpRequest::Method::Post); +} + +CreateVSwitchCidrReservationRequest::~CreateVSwitchCidrReservationRequest() {} + +long CreateVSwitchCidrReservationRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateVSwitchCidrReservationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateVSwitchCidrReservationRequest::getClientToken() const { + return clientToken_; +} + +void CreateVSwitchCidrReservationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateVSwitchCidrReservationRequest::getVSwitchCidrReservationType() const { + return vSwitchCidrReservationType_; +} + +void CreateVSwitchCidrReservationRequest::setVSwitchCidrReservationType(const std::string &vSwitchCidrReservationType) { + vSwitchCidrReservationType_ = vSwitchCidrReservationType; + setParameter(std::string("VSwitchCidrReservationType"), vSwitchCidrReservationType); +} + +std::string CreateVSwitchCidrReservationRequest::getVSwitchCidrReservationDescription() const { + return vSwitchCidrReservationDescription_; +} + +void CreateVSwitchCidrReservationRequest::setVSwitchCidrReservationDescription(const std::string &vSwitchCidrReservationDescription) { + vSwitchCidrReservationDescription_ = vSwitchCidrReservationDescription; + setParameter(std::string("VSwitchCidrReservationDescription"), vSwitchCidrReservationDescription); +} + +std::string CreateVSwitchCidrReservationRequest::getRegionId() const { + return regionId_; +} + +void CreateVSwitchCidrReservationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateVSwitchCidrReservationRequest::getVSwitchCidrReservationName() const { + return vSwitchCidrReservationName_; +} + +void CreateVSwitchCidrReservationRequest::setVSwitchCidrReservationName(const std::string &vSwitchCidrReservationName) { + vSwitchCidrReservationName_ = vSwitchCidrReservationName; + setParameter(std::string("VSwitchCidrReservationName"), vSwitchCidrReservationName); +} + +std::string CreateVSwitchCidrReservationRequest::getIpVersion() const { + return ipVersion_; +} + +void CreateVSwitchCidrReservationRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); +} + +std::vector CreateVSwitchCidrReservationRequest::getTag() const { + return tag_; +} + +void CreateVSwitchCidrReservationRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +bool CreateVSwitchCidrReservationRequest::getDryRun() const { + return dryRun_; +} + +void CreateVSwitchCidrReservationRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateVSwitchCidrReservationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateVSwitchCidrReservationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateVSwitchCidrReservationRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateVSwitchCidrReservationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateVSwitchCidrReservationRequest::getOwnerId() const { + return ownerId_; +} + +void CreateVSwitchCidrReservationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateVSwitchCidrReservationRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateVSwitchCidrReservationRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateVSwitchCidrReservationRequest::getVSwitchCidrReservationMask() const { + return vSwitchCidrReservationMask_; +} + +void CreateVSwitchCidrReservationRequest::setVSwitchCidrReservationMask(const std::string &vSwitchCidrReservationMask) { + vSwitchCidrReservationMask_ = vSwitchCidrReservationMask; + setParameter(std::string("VSwitchCidrReservationMask"), vSwitchCidrReservationMask); +} + +std::string CreateVSwitchCidrReservationRequest::getVSwitchCidrReservationCidr() const { + return vSwitchCidrReservationCidr_; +} + +void CreateVSwitchCidrReservationRequest::setVSwitchCidrReservationCidr(const std::string &vSwitchCidrReservationCidr) { + vSwitchCidrReservationCidr_ = vSwitchCidrReservationCidr; + setParameter(std::string("VSwitchCidrReservationCidr"), vSwitchCidrReservationCidr); +} + diff --git a/vpc/src/model/CreateVSwitchCidrReservationResult.cc b/vpc/src/model/CreateVSwitchCidrReservationResult.cc new file mode 100644 index 000000000..2833482ca --- /dev/null +++ b/vpc/src/model/CreateVSwitchCidrReservationResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +CreateVSwitchCidrReservationResult::CreateVSwitchCidrReservationResult() : + ServiceResult() +{} + +CreateVSwitchCidrReservationResult::CreateVSwitchCidrReservationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVSwitchCidrReservationResult::~CreateVSwitchCidrReservationResult() +{} + +void CreateVSwitchCidrReservationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["VSwitchCidrReservationId"].isNull()) + vSwitchCidrReservationId_ = value["VSwitchCidrReservationId"].asString(); + +} + +std::string CreateVSwitchCidrReservationResult::getVSwitchCidrReservationId()const +{ + return vSwitchCidrReservationId_; +} + diff --git a/vpc/src/model/CreateVSwitchRequest.cc b/vpc/src/model/CreateVSwitchRequest.cc index 7ee957ebf..b47e3b008 100644 --- a/vpc/src/model/CreateVSwitchRequest.cc +++ b/vpc/src/model/CreateVSwitchRequest.cc @@ -61,6 +61,20 @@ void CreateVSwitchRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::vector CreateVSwitchRequest::getTag() const { + return tag_; +} + +void CreateVSwitchRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + std::string CreateVSwitchRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/CreateVcoRouteEntryRequest.cc b/vpc/src/model/CreateVcoRouteEntryRequest.cc index 7450cb356..11bd9e077 100644 --- a/vpc/src/model/CreateVcoRouteEntryRequest.cc +++ b/vpc/src/model/CreateVcoRouteEntryRequest.cc @@ -61,6 +61,15 @@ void CreateVcoRouteEntryRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +bool CreateVcoRouteEntryRequest::getDryRun() const { + return dryRun_; +} + +void CreateVcoRouteEntryRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string CreateVcoRouteEntryRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/CreateVirtualBorderRouterRequest.cc b/vpc/src/model/CreateVirtualBorderRouterRequest.cc index a19a8d923..79c122348 100644 --- a/vpc/src/model/CreateVirtualBorderRouterRequest.cc +++ b/vpc/src/model/CreateVirtualBorderRouterRequest.cc @@ -97,6 +97,15 @@ void CreateVirtualBorderRouterRequest::setPeerIpv6GatewayIp(const std::string &p setParameter(std::string("PeerIpv6GatewayIp"), peerIpv6GatewayIp); } +std::string CreateVirtualBorderRouterRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateVirtualBorderRouterRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask() const { return peeringSubnetMask_; } @@ -169,6 +178,20 @@ void CreateVirtualBorderRouterRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::vector CreateVirtualBorderRouterRequest::getTags() const { + return tags_; +} + +void CreateVirtualBorderRouterRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Value", tagsObj.value); + setParameter(tagsObjStr + ".Key", tagsObj.key); + } +} + std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId() const { return physicalConnectionId_; } diff --git a/vpc/src/model/CreateVirtualPhysicalConnectionRequest.cc b/vpc/src/model/CreateVirtualPhysicalConnectionRequest.cc index 5fc887d5a..428dae99f 100644 --- a/vpc/src/model/CreateVirtualPhysicalConnectionRequest.cc +++ b/vpc/src/model/CreateVirtualPhysicalConnectionRequest.cc @@ -97,6 +97,20 @@ void CreateVirtualPhysicalConnectionRequest::setRegionId(const std::string ®i setParameter(std::string("RegionId"), regionId); } +std::vector CreateVirtualPhysicalConnectionRequest::getTag() const { + return tag_; +} + +void CreateVirtualPhysicalConnectionRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + bool CreateVirtualPhysicalConnectionRequest::getDryRun() const { return dryRun_; } diff --git a/vpc/src/model/CreateVpcGatewayEndpointRequest.cc b/vpc/src/model/CreateVpcGatewayEndpointRequest.cc index b31022278..58a7e5b7b 100644 --- a/vpc/src/model/CreateVpcGatewayEndpointRequest.cc +++ b/vpc/src/model/CreateVpcGatewayEndpointRequest.cc @@ -43,6 +43,15 @@ void CreateVpcGatewayEndpointRequest::setClientToken(const std::string &clientTo setParameter(std::string("ClientToken"), clientToken); } +std::string CreateVpcGatewayEndpointRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateVpcGatewayEndpointRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string CreateVpcGatewayEndpointRequest::getRegionId() const { return regionId_; } @@ -61,6 +70,20 @@ void CreateVpcGatewayEndpointRequest::setServiceName(const std::string &serviceN setParameter(std::string("ServiceName"), serviceName); } +std::vector CreateVpcGatewayEndpointRequest::getTag() const { + return tag_; +} + +void CreateVpcGatewayEndpointRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + bool CreateVpcGatewayEndpointRequest::getDryRun() const { return dryRun_; } diff --git a/vpc/src/model/CreateVpcGatewayEndpointResult.cc b/vpc/src/model/CreateVpcGatewayEndpointResult.cc index 60d767d21..8e7a74c4a 100644 --- a/vpc/src/model/CreateVpcGatewayEndpointResult.cc +++ b/vpc/src/model/CreateVpcGatewayEndpointResult.cc @@ -47,6 +47,8 @@ void CreateVpcGatewayEndpointResult::parse(const std::string &payload) endpointName_ = value["EndpointName"].asString(); if(!value["CreationTime"].isNull()) creationTime_ = value["CreationTime"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -55,6 +57,11 @@ std::string CreateVpcGatewayEndpointResult::getEndpointName()const return endpointName_; } +std::string CreateVpcGatewayEndpointResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string CreateVpcGatewayEndpointResult::getServiceName()const { return serviceName_; diff --git a/vpc/src/model/CreateVpcPrefixListRequest.cc b/vpc/src/model/CreateVpcPrefixListRequest.cc index 5a0577c04..64b5ff906 100644 --- a/vpc/src/model/CreateVpcPrefixListRequest.cc +++ b/vpc/src/model/CreateVpcPrefixListRequest.cc @@ -107,6 +107,20 @@ void CreateVpcPrefixListRequest::setPrefixListEntries(const std::vector CreateVpcPrefixListRequest::getTag() const { + return tag_; +} + +void CreateVpcPrefixListRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + bool CreateVpcPrefixListRequest::getDryRun() const { return dryRun_; } diff --git a/vpc/src/model/CreateVpcRequest.cc b/vpc/src/model/CreateVpcRequest.cc index 50cd6c70a..0847808d8 100644 --- a/vpc/src/model/CreateVpcRequest.cc +++ b/vpc/src/model/CreateVpcRequest.cc @@ -61,6 +61,15 @@ void CreateVpcRequest::setDescription(const std::string &description) { setParameter(std::string("Description"), description); } +int CreateVpcRequest::getIpv4CidrMask() const { + return ipv4CidrMask_; +} + +void CreateVpcRequest::setIpv4CidrMask(int ipv4CidrMask) { + ipv4CidrMask_ = ipv4CidrMask; + setParameter(std::string("Ipv4CidrMask"), std::to_string(ipv4CidrMask)); +} + std::string CreateVpcRequest::getVpcName() const { return vpcName_; } @@ -88,6 +97,15 @@ void CreateVpcRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string CreateVpcRequest::getIpv4IpamPoolId() const { + return ipv4IpamPoolId_; +} + +void CreateVpcRequest::setIpv4IpamPoolId(const std::string &ipv4IpamPoolId) { + ipv4IpamPoolId_ = ipv4IpamPoolId; + setParameter(std::string("Ipv4IpamPoolId"), ipv4IpamPoolId); +} + std::string CreateVpcRequest::getIpv6Isp() const { return ipv6Isp_; } @@ -106,6 +124,20 @@ void CreateVpcRequest::setUserCidr(const std::string &userCidr) { setParameter(std::string("UserCidr"), userCidr); } +std::vector CreateVpcRequest::getTag() const { + return tag_; +} + +void CreateVpcRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + bool CreateVpcRequest::getDryRun() const { return dryRun_; } @@ -115,6 +147,15 @@ void CreateVpcRequest::setDryRun(bool dryRun) { setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } +bool CreateVpcRequest::getEnableDnsHostname() const { + return enableDnsHostname_; +} + +void CreateVpcRequest::setEnableDnsHostname(bool enableDnsHostname) { + enableDnsHostname_ = enableDnsHostname; + setParameter(std::string("EnableDnsHostname"), enableDnsHostname ? "true" : "false"); +} + std::string CreateVpcRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/CreateVpnAttachmentRequest.cc b/vpc/src/model/CreateVpnAttachmentRequest.cc index 5851e9ad2..331e98c12 100644 --- a/vpc/src/model/CreateVpnAttachmentRequest.cc +++ b/vpc/src/model/CreateVpnAttachmentRequest.cc @@ -25,24 +25,6 @@ CreateVpnAttachmentRequest::CreateVpnAttachmentRequest() CreateVpnAttachmentRequest::~CreateVpnAttachmentRequest() {} -std::string CreateVpnAttachmentRequest::getIkeConfig() const { - return ikeConfig_; -} - -void CreateVpnAttachmentRequest::setIkeConfig(const std::string &ikeConfig) { - ikeConfig_ = ikeConfig; - setParameter(std::string("IkeConfig"), ikeConfig); -} - -bool CreateVpnAttachmentRequest::getAutoConfigRoute() const { - return autoConfigRoute_; -} - -void CreateVpnAttachmentRequest::setAutoConfigRoute(bool autoConfigRoute) { - autoConfigRoute_ = autoConfigRoute; - setParameter(std::string("AutoConfigRoute"), autoConfigRoute ? "true" : "false"); -} - long CreateVpnAttachmentRequest::getResourceOwnerId() const { return resourceOwnerId_; } @@ -52,15 +34,6 @@ void CreateVpnAttachmentRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string CreateVpnAttachmentRequest::getCenId() const { - return cenId_; -} - -void CreateVpnAttachmentRequest::setCenId(const std::string &cenId) { - cenId_ = cenId; - setParameter(std::string("CenId"), cenId); -} - std::string CreateVpnAttachmentRequest::getAttachType() const { return attachType_; } @@ -70,24 +43,6 @@ void CreateVpnAttachmentRequest::setAttachType(const std::string &attachType) { setParameter(std::string("AttachType"), attachType); } -std::string CreateVpnAttachmentRequest::getClientToken() const { - return clientToken_; -} - -void CreateVpnAttachmentRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string CreateVpnAttachmentRequest::getIpsecConfig() const { - return ipsecConfig_; -} - -void CreateVpnAttachmentRequest::setIpsecConfig(const std::string &ipsecConfig) { - ipsecConfig_ = ipsecConfig; - setParameter(std::string("IpsecConfig"), ipsecConfig); -} - std::string CreateVpnAttachmentRequest::getBgpConfig() const { return bgpConfig_; } @@ -115,24 +70,6 @@ void CreateVpnAttachmentRequest::setNetworkType(const std::string &networkType) setParameter(std::string("NetworkType"), networkType); } -std::string CreateVpnAttachmentRequest::getHealthCheckConfig() const { - return healthCheckConfig_; -} - -void CreateVpnAttachmentRequest::setHealthCheckConfig(const std::string &healthCheckConfig) { - healthCheckConfig_ = healthCheckConfig; - setParameter(std::string("HealthCheckConfig"), healthCheckConfig); -} - -std::string CreateVpnAttachmentRequest::getCustomerGatewayId() const { - return customerGatewayId_; -} - -void CreateVpnAttachmentRequest::setCustomerGatewayId(const std::string &customerGatewayId) { - customerGatewayId_ = customerGatewayId; - setParameter(std::string("CustomerGatewayId"), customerGatewayId); -} - std::string CreateVpnAttachmentRequest::getLocalSubnet() const { return localSubnet_; } @@ -142,22 +79,13 @@ void CreateVpnAttachmentRequest::setLocalSubnet(const std::string &localSubnet) setParameter(std::string("LocalSubnet"), localSubnet); } -std::string CreateVpnAttachmentRequest::getRemoteCaCert() const { - return remoteCaCert_; +std::string CreateVpnAttachmentRequest::getResourceGroupId() const { + return resourceGroupId_; } -void CreateVpnAttachmentRequest::setRemoteCaCert(const std::string &remoteCaCert) { - remoteCaCert_ = remoteCaCert; - setParameter(std::string("RemoteCaCert"), remoteCaCert); -} - -std::string CreateVpnAttachmentRequest::getRegionId() const { - return regionId_; -} - -void CreateVpnAttachmentRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); +void CreateVpnAttachmentRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } bool CreateVpnAttachmentRequest::getAutoPublishRouteEnabled() const { @@ -196,22 +124,13 @@ void CreateVpnAttachmentRequest::setEffectImmediately(bool effectImmediately) { setParameter(std::string("EffectImmediately"), effectImmediately ? "true" : "false"); } -std::string CreateVpnAttachmentRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; +bool CreateVpnAttachmentRequest::getDryRun() const { + return dryRun_; } -void CreateVpnAttachmentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string CreateVpnAttachmentRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void CreateVpnAttachmentRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); +void CreateVpnAttachmentRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } bool CreateVpnAttachmentRequest::getEnableDpd() const { @@ -264,3 +183,142 @@ void CreateVpnAttachmentRequest::setEnableNatTraversal(bool enableNatTraversal) setParameter(std::string("EnableNatTraversal"), enableNatTraversal ? "true" : "false"); } +std::string CreateVpnAttachmentRequest::getIkeConfig() const { + return ikeConfig_; +} + +void CreateVpnAttachmentRequest::setIkeConfig(const std::string &ikeConfig) { + ikeConfig_ = ikeConfig; + setParameter(std::string("IkeConfig"), ikeConfig); +} + +bool CreateVpnAttachmentRequest::getAutoConfigRoute() const { + return autoConfigRoute_; +} + +void CreateVpnAttachmentRequest::setAutoConfigRoute(bool autoConfigRoute) { + autoConfigRoute_ = autoConfigRoute; + setParameter(std::string("AutoConfigRoute"), autoConfigRoute ? "true" : "false"); +} + +std::string CreateVpnAttachmentRequest::getCenId() const { + return cenId_; +} + +void CreateVpnAttachmentRequest::setCenId(const std::string &cenId) { + cenId_ = cenId; + setParameter(std::string("CenId"), cenId); +} + +std::string CreateVpnAttachmentRequest::getClientToken() const { + return clientToken_; +} + +void CreateVpnAttachmentRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateVpnAttachmentRequest::getIpsecConfig() const { + return ipsecConfig_; +} + +void CreateVpnAttachmentRequest::setIpsecConfig(const std::string &ipsecConfig) { + ipsecConfig_ = ipsecConfig; + setParameter(std::string("IpsecConfig"), ipsecConfig); +} + +std::string CreateVpnAttachmentRequest::getHealthCheckConfig() const { + return healthCheckConfig_; +} + +void CreateVpnAttachmentRequest::setHealthCheckConfig(const std::string &healthCheckConfig) { + healthCheckConfig_ = healthCheckConfig; + setParameter(std::string("HealthCheckConfig"), healthCheckConfig); +} + +std::string CreateVpnAttachmentRequest::getCustomerGatewayId() const { + return customerGatewayId_; +} + +void CreateVpnAttachmentRequest::setCustomerGatewayId(const std::string &customerGatewayId) { + customerGatewayId_ = customerGatewayId; + setParameter(std::string("CustomerGatewayId"), customerGatewayId); +} + +std::string CreateVpnAttachmentRequest::getRemoteCaCert() const { + return remoteCaCert_; +} + +void CreateVpnAttachmentRequest::setRemoteCaCert(const std::string &remoteCaCert) { + remoteCaCert_ = remoteCaCert; + setParameter(std::string("RemoteCaCert"), remoteCaCert); +} + +bool CreateVpnAttachmentRequest::getEnableTunnelsBgp() const { + return enableTunnelsBgp_; +} + +void CreateVpnAttachmentRequest::setEnableTunnelsBgp(bool enableTunnelsBgp) { + enableTunnelsBgp_ = enableTunnelsBgp; + setParameter(std::string("EnableTunnelsBgp"), enableTunnelsBgp ? "true" : "false"); +} + +std::string CreateVpnAttachmentRequest::getRegionId() const { + return regionId_; +} + +void CreateVpnAttachmentRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateVpnAttachmentRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateVpnAttachmentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateVpnAttachmentRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateVpnAttachmentRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::vector CreateVpnAttachmentRequest::getTunnelOptionsSpecification() const { + return tunnelOptionsSpecification_; +} + +void CreateVpnAttachmentRequest::setTunnelOptionsSpecification(const std::vector &tunnelOptionsSpecification) { + tunnelOptionsSpecification_ = tunnelOptionsSpecification; + for(int dep1 = 0; dep1 != tunnelOptionsSpecification.size(); dep1++) { + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecPfs", tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecPfs); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecLifetime", std::to_string(tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecLifetime)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecAuthAlg", tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecAuthAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecEncAlg", tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecEncAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelBgpConfig.LocalAsn", std::to_string(tunnelOptionsSpecification[dep1].tunnelBgpConfig.localAsn)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelBgpConfig.TunnelCidr", tunnelOptionsSpecification[dep1].tunnelBgpConfig.tunnelCidr); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelBgpConfig.LocalBgpIp", tunnelOptionsSpecification[dep1].tunnelBgpConfig.localBgpIp); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".RemoteCaCertificate", tunnelOptionsSpecification[dep1].remoteCaCertificate); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeVersion", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeVersion); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeMode", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeMode); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeAuthAlg", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeAuthAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.Psk", tunnelOptionsSpecification[dep1].tunnelIkeConfig.psk); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkePfs", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikePfs); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeLifetime", std::to_string(tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeLifetime)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.LocalId", tunnelOptionsSpecification[dep1].tunnelIkeConfig.localId); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeEncAlg", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeEncAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.RemoteId", tunnelOptionsSpecification[dep1].tunnelIkeConfig.remoteId); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".EnableNatTraversal", tunnelOptionsSpecification[dep1].enableNatTraversal ? "true" : "false"); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".EnableDpd", tunnelOptionsSpecification[dep1].enableDpd ? "true" : "false"); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIndex", std::to_string(tunnelOptionsSpecification[dep1].tunnelIndex)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".CustomerGatewayId", tunnelOptionsSpecification[dep1].customerGatewayId); + } +} + diff --git a/vpc/src/model/CreateVpnAttachmentResult.cc b/vpc/src/model/CreateVpnAttachmentResult.cc index 82b508538..7f0c413bd 100644 --- a/vpc/src/model/CreateVpnAttachmentResult.cc +++ b/vpc/src/model/CreateVpnAttachmentResult.cc @@ -47,10 +47,10 @@ void CreateVpnAttachmentResult::parse(const std::string &payload) createTime_ = std::stol(value["CreateTime"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/vpc/src/model/CreateVpnConnectionRequest.cc b/vpc/src/model/CreateVpnConnectionRequest.cc index da398bd9d..6f7fd8630 100644 --- a/vpc/src/model/CreateVpnConnectionRequest.cc +++ b/vpc/src/model/CreateVpnConnectionRequest.cc @@ -106,6 +106,15 @@ void CreateVpnConnectionRequest::setLocalSubnet(const std::string &localSubnet) setParameter(std::string("LocalSubnet"), localSubnet); } +bool CreateVpnConnectionRequest::getEnableTunnelsBgp() const { + return enableTunnelsBgp_; +} + +void CreateVpnConnectionRequest::setEnableTunnelsBgp(bool enableTunnelsBgp) { + enableTunnelsBgp_ = enableTunnelsBgp; + setParameter(std::string("EnableTunnelsBgp"), enableTunnelsBgp ? "true" : "false"); +} + std::string CreateVpnConnectionRequest::getRegionId() const { return regionId_; } @@ -133,6 +142,15 @@ void CreateVpnConnectionRequest::setEffectImmediately(bool effectImmediately) { setParameter(std::string("EffectImmediately"), effectImmediately ? "true" : "false"); } +bool CreateVpnConnectionRequest::getDryRun() const { + return dryRun_; +} + +void CreateVpnConnectionRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string CreateVpnConnectionRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -192,6 +210,37 @@ void CreateVpnConnectionRequest::setTags(const std::vector CreateVpnConnectionRequest::getTunnelOptionsSpecification() const { + return tunnelOptionsSpecification_; +} + +void CreateVpnConnectionRequest::setTunnelOptionsSpecification(const std::vector &tunnelOptionsSpecification) { + tunnelOptionsSpecification_ = tunnelOptionsSpecification; + for(int dep1 = 0; dep1 != tunnelOptionsSpecification.size(); dep1++) { + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecPfs", tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecPfs); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecLifetime", std::to_string(tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecLifetime)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecAuthAlg", tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecAuthAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecEncAlg", tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecEncAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".Role", tunnelOptionsSpecification[dep1].role); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelBgpConfig.LocalAsn", std::to_string(tunnelOptionsSpecification[dep1].tunnelBgpConfig.localAsn)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelBgpConfig.TunnelCidr", tunnelOptionsSpecification[dep1].tunnelBgpConfig.tunnelCidr); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelBgpConfig.LocalBgpIp", tunnelOptionsSpecification[dep1].tunnelBgpConfig.localBgpIp); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".RemoteCaCertificate", tunnelOptionsSpecification[dep1].remoteCaCertificate); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeVersion", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeVersion); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeMode", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeMode); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeAuthAlg", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeAuthAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.Psk", tunnelOptionsSpecification[dep1].tunnelIkeConfig.psk); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkePfs", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikePfs); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeLifetime", std::to_string(tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeLifetime)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.LocalId", tunnelOptionsSpecification[dep1].tunnelIkeConfig.localId); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeEncAlg", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeEncAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.RemoteId", tunnelOptionsSpecification[dep1].tunnelIkeConfig.remoteId); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".EnableNatTraversal", tunnelOptionsSpecification[dep1].enableNatTraversal ? "true" : "false"); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".EnableDpd", tunnelOptionsSpecification[dep1].enableDpd ? "true" : "false"); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".CustomerGatewayId", tunnelOptionsSpecification[dep1].customerGatewayId); + } +} + std::string CreateVpnConnectionRequest::getRemoteCaCertificate() const { return remoteCaCertificate_; } diff --git a/vpc/src/model/CreateVpnGatewayRequest.cc b/vpc/src/model/CreateVpnGatewayRequest.cc index c0d6209ca..a151f58f7 100644 --- a/vpc/src/model/CreateVpnGatewayRequest.cc +++ b/vpc/src/model/CreateVpnGatewayRequest.cc @@ -61,6 +61,15 @@ void CreateVpnGatewayRequest::setNetworkType(const std::string &networkType) { setParameter(std::string("NetworkType"), networkType); } +std::string CreateVpnGatewayRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateVpnGatewayRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string CreateVpnGatewayRequest::getRegionId() const { return regionId_; } @@ -124,6 +133,15 @@ void CreateVpnGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { setParameter(std::string("OwnerAccount"), ownerAccount); } +std::string CreateVpnGatewayRequest::getDisasterRecoveryVSwitchId() const { + return disasterRecoveryVSwitchId_; +} + +void CreateVpnGatewayRequest::setDisasterRecoveryVSwitchId(const std::string &disasterRecoveryVSwitchId) { + disasterRecoveryVSwitchId_ = disasterRecoveryVSwitchId; + setParameter(std::string("DisasterRecoveryVSwitchId"), disasterRecoveryVSwitchId); +} + long CreateVpnGatewayRequest::getOwnerId() const { return ownerId_; } diff --git a/vpc/src/model/CreateVpnPbrRouteEntryRequest.cc b/vpc/src/model/CreateVpnPbrRouteEntryRequest.cc index 21a13b173..2c9e4a560 100644 --- a/vpc/src/model/CreateVpnPbrRouteEntryRequest.cc +++ b/vpc/src/model/CreateVpnPbrRouteEntryRequest.cc @@ -79,6 +79,15 @@ void CreateVpnPbrRouteEntryRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +bool CreateVpnPbrRouteEntryRequest::getDryRun() const { + return dryRun_; +} + +void CreateVpnPbrRouteEntryRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string CreateVpnPbrRouteEntryRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/CreateVpnRouteEntryRequest.cc b/vpc/src/model/CreateVpnRouteEntryRequest.cc index 698db9f9e..d649b2788 100644 --- a/vpc/src/model/CreateVpnRouteEntryRequest.cc +++ b/vpc/src/model/CreateVpnRouteEntryRequest.cc @@ -70,6 +70,15 @@ void CreateVpnRouteEntryRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +bool CreateVpnRouteEntryRequest::getDryRun() const { + return dryRun_; +} + +void CreateVpnRouteEntryRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string CreateVpnRouteEntryRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/DeleteExpressConnectTrafficQosQueueRequest.cc b/vpc/src/model/DeleteExpressConnectTrafficQosQueueRequest.cc new file mode 100644 index 000000000..2cefc6e63 --- /dev/null +++ b/vpc/src/model/DeleteExpressConnectTrafficQosQueueRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteExpressConnectTrafficQosQueueRequest; + +DeleteExpressConnectTrafficQosQueueRequest::DeleteExpressConnectTrafficQosQueueRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteExpressConnectTrafficQosQueue") { + setMethod(HttpRequest::Method::Post); +} + +DeleteExpressConnectTrafficQosQueueRequest::~DeleteExpressConnectTrafficQosQueueRequest() {} + +std::string DeleteExpressConnectTrafficQosQueueRequest::getClientToken() const { + return clientToken_; +} + +void DeleteExpressConnectTrafficQosQueueRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteExpressConnectTrafficQosQueueRequest::getRegionId() const { + return regionId_; +} + +void DeleteExpressConnectTrafficQosQueueRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteExpressConnectTrafficQosQueueRequest::getQosId() const { + return qosId_; +} + +void DeleteExpressConnectTrafficQosQueueRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); +} + +std::string DeleteExpressConnectTrafficQosQueueRequest::getQueueId() const { + return queueId_; +} + +void DeleteExpressConnectTrafficQosQueueRequest::setQueueId(const std::string &queueId) { + queueId_ = queueId; + setParameter(std::string("QueueId"), queueId); +} + +std::string DeleteExpressConnectTrafficQosQueueRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteExpressConnectTrafficQosQueueRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteExpressConnectTrafficQosQueueRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteExpressConnectTrafficQosQueueRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteExpressConnectTrafficQosQueueRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteExpressConnectTrafficQosQueueRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/AssociateGlobalAccelerationInstanceResult.cc b/vpc/src/model/DeleteExpressConnectTrafficQosQueueResult.cc similarity index 68% rename from vpc/src/model/AssociateGlobalAccelerationInstanceResult.cc rename to vpc/src/model/DeleteExpressConnectTrafficQosQueueResult.cc index ed23d8857..b25328696 100644 --- a/vpc/src/model/AssociateGlobalAccelerationInstanceResult.cc +++ b/vpc/src/model/DeleteExpressConnectTrafficQosQueueResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -AssociateGlobalAccelerationInstanceResult::AssociateGlobalAccelerationInstanceResult() : +DeleteExpressConnectTrafficQosQueueResult::DeleteExpressConnectTrafficQosQueueResult() : ServiceResult() {} -AssociateGlobalAccelerationInstanceResult::AssociateGlobalAccelerationInstanceResult(const std::string &payload) : +DeleteExpressConnectTrafficQosQueueResult::DeleteExpressConnectTrafficQosQueueResult(const std::string &payload) : ServiceResult() { parse(payload); } -AssociateGlobalAccelerationInstanceResult::~AssociateGlobalAccelerationInstanceResult() +DeleteExpressConnectTrafficQosQueueResult::~DeleteExpressConnectTrafficQosQueueResult() {} -void AssociateGlobalAccelerationInstanceResult::parse(const std::string &payload) +void DeleteExpressConnectTrafficQosQueueResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/vpc/src/model/DeleteExpressConnectTrafficQosRequest.cc b/vpc/src/model/DeleteExpressConnectTrafficQosRequest.cc new file mode 100644 index 000000000..7946b1f1a --- /dev/null +++ b/vpc/src/model/DeleteExpressConnectTrafficQosRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteExpressConnectTrafficQosRequest; + +DeleteExpressConnectTrafficQosRequest::DeleteExpressConnectTrafficQosRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteExpressConnectTrafficQos") { + setMethod(HttpRequest::Method::Post); +} + +DeleteExpressConnectTrafficQosRequest::~DeleteExpressConnectTrafficQosRequest() {} + +std::string DeleteExpressConnectTrafficQosRequest::getClientToken() const { + return clientToken_; +} + +void DeleteExpressConnectTrafficQosRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteExpressConnectTrafficQosRequest::getRegionId() const { + return regionId_; +} + +void DeleteExpressConnectTrafficQosRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteExpressConnectTrafficQosRequest::getQosId() const { + return qosId_; +} + +void DeleteExpressConnectTrafficQosRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); +} + +std::string DeleteExpressConnectTrafficQosRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteExpressConnectTrafficQosRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteExpressConnectTrafficQosRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteExpressConnectTrafficQosRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteExpressConnectTrafficQosRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteExpressConnectTrafficQosRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DeleteExpressConnectTrafficQosResult.cc b/vpc/src/model/DeleteExpressConnectTrafficQosResult.cc new file mode 100644 index 000000000..cff2cad5b --- /dev/null +++ b/vpc/src/model/DeleteExpressConnectTrafficQosResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteExpressConnectTrafficQosResult::DeleteExpressConnectTrafficQosResult() : + ServiceResult() +{} + +DeleteExpressConnectTrafficQosResult::DeleteExpressConnectTrafficQosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteExpressConnectTrafficQosResult::~DeleteExpressConnectTrafficQosResult() +{} + +void DeleteExpressConnectTrafficQosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteExpressConnectTrafficQosRuleRequest.cc b/vpc/src/model/DeleteExpressConnectTrafficQosRuleRequest.cc new file mode 100644 index 000000000..ba269a65e --- /dev/null +++ b/vpc/src/model/DeleteExpressConnectTrafficQosRuleRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteExpressConnectTrafficQosRuleRequest; + +DeleteExpressConnectTrafficQosRuleRequest::DeleteExpressConnectTrafficQosRuleRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteExpressConnectTrafficQosRule") { + setMethod(HttpRequest::Method::Post); +} + +DeleteExpressConnectTrafficQosRuleRequest::~DeleteExpressConnectTrafficQosRuleRequest() {} + +std::string DeleteExpressConnectTrafficQosRuleRequest::getClientToken() const { + return clientToken_; +} + +void DeleteExpressConnectTrafficQosRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteExpressConnectTrafficQosRuleRequest::getRegionId() const { + return regionId_; +} + +void DeleteExpressConnectTrafficQosRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteExpressConnectTrafficQosRuleRequest::getQosId() const { + return qosId_; +} + +void DeleteExpressConnectTrafficQosRuleRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); +} + +std::string DeleteExpressConnectTrafficQosRuleRequest::getQueueId() const { + return queueId_; +} + +void DeleteExpressConnectTrafficQosRuleRequest::setQueueId(const std::string &queueId) { + queueId_ = queueId; + setParameter(std::string("QueueId"), queueId); +} + +std::string DeleteExpressConnectTrafficQosRuleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteExpressConnectTrafficQosRuleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteExpressConnectTrafficQosRuleRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteExpressConnectTrafficQosRuleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteExpressConnectTrafficQosRuleRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteExpressConnectTrafficQosRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteExpressConnectTrafficQosRuleRequest::getRuleId() const { + return ruleId_; +} + +void DeleteExpressConnectTrafficQosRuleRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); +} + diff --git a/vpc/src/model/DeleteExpressConnectTrafficQosRuleResult.cc b/vpc/src/model/DeleteExpressConnectTrafficQosRuleResult.cc new file mode 100644 index 000000000..8966880a6 --- /dev/null +++ b/vpc/src/model/DeleteExpressConnectTrafficQosRuleResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteExpressConnectTrafficQosRuleResult::DeleteExpressConnectTrafficQosRuleResult() : + ServiceResult() +{} + +DeleteExpressConnectTrafficQosRuleResult::DeleteExpressConnectTrafficQosRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteExpressConnectTrafficQosRuleResult::~DeleteExpressConnectTrafficQosRuleResult() +{} + +void DeleteExpressConnectTrafficQosRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteFailoverTestJobRequest.cc b/vpc/src/model/DeleteFailoverTestJobRequest.cc new file mode 100644 index 000000000..958cac6ca --- /dev/null +++ b/vpc/src/model/DeleteFailoverTestJobRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteFailoverTestJobRequest; + +DeleteFailoverTestJobRequest::DeleteFailoverTestJobRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteFailoverTestJob") { + setMethod(HttpRequest::Method::Post); +} + +DeleteFailoverTestJobRequest::~DeleteFailoverTestJobRequest() {} + +std::string DeleteFailoverTestJobRequest::getClientToken() const { + return clientToken_; +} + +void DeleteFailoverTestJobRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteFailoverTestJobRequest::getJobId() const { + return jobId_; +} + +void DeleteFailoverTestJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + +std::string DeleteFailoverTestJobRequest::getRegionId() const { + return regionId_; +} + +void DeleteFailoverTestJobRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteFailoverTestJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteFailoverTestJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteFailoverTestJobRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteFailoverTestJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteFailoverTestJobRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteFailoverTestJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/ModifyIpv6GatewaySpecResult.cc b/vpc/src/model/DeleteFailoverTestJobResult.cc similarity index 75% rename from vpc/src/model/ModifyIpv6GatewaySpecResult.cc rename to vpc/src/model/DeleteFailoverTestJobResult.cc index 7b7097a2a..8e46e8044 100644 --- a/vpc/src/model/ModifyIpv6GatewaySpecResult.cc +++ b/vpc/src/model/DeleteFailoverTestJobResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Vpc; using namespace AlibabaCloud::Vpc::Model; -ModifyIpv6GatewaySpecResult::ModifyIpv6GatewaySpecResult() : +DeleteFailoverTestJobResult::DeleteFailoverTestJobResult() : ServiceResult() {} -ModifyIpv6GatewaySpecResult::ModifyIpv6GatewaySpecResult(const std::string &payload) : +DeleteFailoverTestJobResult::DeleteFailoverTestJobResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyIpv6GatewaySpecResult::~ModifyIpv6GatewaySpecResult() +DeleteFailoverTestJobResult::~DeleteFailoverTestJobResult() {} -void ModifyIpv6GatewaySpecResult::parse(const std::string &payload) +void DeleteFailoverTestJobResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/vpc/src/model/DeleteIpv4GatewayRequest.cc b/vpc/src/model/DeleteIpv4GatewayRequest.cc index 48a104962..7aced840f 100644 --- a/vpc/src/model/DeleteIpv4GatewayRequest.cc +++ b/vpc/src/model/DeleteIpv4GatewayRequest.cc @@ -97,3 +97,12 @@ void DeleteIpv4GatewayRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string DeleteIpv4GatewayRequest::getInternetMode() const { + return internetMode_; +} + +void DeleteIpv4GatewayRequest::setInternetMode(const std::string &internetMode) { + internetMode_ = internetMode; + setParameter(std::string("InternetMode"), internetMode); +} + diff --git a/vpc/src/model/DeleteIpv6GatewayRequest.cc b/vpc/src/model/DeleteIpv6GatewayRequest.cc index c5d747d9e..6923dd5aa 100644 --- a/vpc/src/model/DeleteIpv6GatewayRequest.cc +++ b/vpc/src/model/DeleteIpv6GatewayRequest.cc @@ -34,6 +34,33 @@ void DeleteIpv6GatewayRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string DeleteIpv6GatewayRequest::getClientToken() const { + return clientToken_; +} + +void DeleteIpv6GatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteIpv6GatewayRequest::getRegionId() const { + return regionId_; +} + +void DeleteIpv6GatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool DeleteIpv6GatewayRequest::getDryRun() const { + return dryRun_; +} + +void DeleteIpv6GatewayRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string DeleteIpv6GatewayRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -61,15 +88,6 @@ void DeleteIpv6GatewayRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string DeleteIpv6GatewayRequest::getRegionId() const { - return regionId_; -} - -void DeleteIpv6GatewayRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string DeleteIpv6GatewayRequest::getIpv6GatewayId() const { return ipv6GatewayId_; } diff --git a/vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc b/vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc index 5461f6363..525856531 100644 --- a/vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc +++ b/vpc/src/model/DeleteIpv6InternetBandwidthRequest.cc @@ -34,6 +34,15 @@ void DeleteIpv6InternetBandwidthRequest::setResourceOwnerId(long resourceOwnerId setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string DeleteIpv6InternetBandwidthRequest::getClientToken() const { + return clientToken_; +} + +void DeleteIpv6InternetBandwidthRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + std::string DeleteIpv6InternetBandwidthRequest::getIpv6InternetBandwidthId() const { return ipv6InternetBandwidthId_; } @@ -52,6 +61,15 @@ void DeleteIpv6InternetBandwidthRequest::setRegionId(const std::string ®ionId setParameter(std::string("RegionId"), regionId); } +bool DeleteIpv6InternetBandwidthRequest::getDryRun() const { + return dryRun_; +} + +void DeleteIpv6InternetBandwidthRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string DeleteIpv6InternetBandwidthRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/DeleteNetworkAclRequest.cc b/vpc/src/model/DeleteNetworkAclRequest.cc index f08885abe..71d86a34e 100644 --- a/vpc/src/model/DeleteNetworkAclRequest.cc +++ b/vpc/src/model/DeleteNetworkAclRequest.cc @@ -61,6 +61,15 @@ void DeleteNetworkAclRequest::setNetworkAclId(const std::string &networkAclId) { setParameter(std::string("NetworkAclId"), networkAclId); } +bool DeleteNetworkAclRequest::getDryRun() const { + return dryRun_; +} + +void DeleteNetworkAclRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string DeleteNetworkAclRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -70,6 +79,15 @@ void DeleteNetworkAclRequest::setResourceOwnerAccount(const std::string &resourc setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } +std::string DeleteNetworkAclRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteNetworkAclRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + long DeleteNetworkAclRequest::getOwnerId() const { return ownerId_; } diff --git a/vpc/src/model/DeleteRouteEntriesRequest.cc b/vpc/src/model/DeleteRouteEntriesRequest.cc index 217280a3f..b1ddd4657 100644 --- a/vpc/src/model/DeleteRouteEntriesRequest.cc +++ b/vpc/src/model/DeleteRouteEntriesRequest.cc @@ -43,6 +43,15 @@ void DeleteRouteEntriesRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +bool DeleteRouteEntriesRequest::getDryRun() const { + return dryRun_; +} + +void DeleteRouteEntriesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string DeleteRouteEntriesRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/DeleteRouteEntryRequest.cc b/vpc/src/model/DeleteRouteEntryRequest.cc index 5f27aa71f..035d04f99 100644 --- a/vpc/src/model/DeleteRouteEntryRequest.cc +++ b/vpc/src/model/DeleteRouteEntryRequest.cc @@ -61,6 +61,15 @@ void DeleteRouteEntryRequest::setRouteTableId(const std::string &routeTableId) { setParameter(std::string("RouteTableId"), routeTableId); } +bool DeleteRouteEntryRequest::getDryRun() const { + return dryRun_; +} + +void DeleteRouteEntryRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string DeleteRouteEntryRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/DeleteVSwitchCidrReservationRequest.cc b/vpc/src/model/DeleteVSwitchCidrReservationRequest.cc new file mode 100644 index 000000000..19901cbe1 --- /dev/null +++ b/vpc/src/model/DeleteVSwitchCidrReservationRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DeleteVSwitchCidrReservationRequest; + +DeleteVSwitchCidrReservationRequest::DeleteVSwitchCidrReservationRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DeleteVSwitchCidrReservation") { + setMethod(HttpRequest::Method::Post); +} + +DeleteVSwitchCidrReservationRequest::~DeleteVSwitchCidrReservationRequest() {} + +long DeleteVSwitchCidrReservationRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteVSwitchCidrReservationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteVSwitchCidrReservationRequest::getClientToken() const { + return clientToken_; +} + +void DeleteVSwitchCidrReservationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteVSwitchCidrReservationRequest::getRegionId() const { + return regionId_; +} + +void DeleteVSwitchCidrReservationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool DeleteVSwitchCidrReservationRequest::getDryRun() const { + return dryRun_; +} + +void DeleteVSwitchCidrReservationRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteVSwitchCidrReservationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteVSwitchCidrReservationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteVSwitchCidrReservationRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteVSwitchCidrReservationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteVSwitchCidrReservationRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteVSwitchCidrReservationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteVSwitchCidrReservationRequest::getVSwitchCidrReservationId() const { + return vSwitchCidrReservationId_; +} + +void DeleteVSwitchCidrReservationRequest::setVSwitchCidrReservationId(const std::string &vSwitchCidrReservationId) { + vSwitchCidrReservationId_ = vSwitchCidrReservationId; + setParameter(std::string("VSwitchCidrReservationId"), vSwitchCidrReservationId); +} + diff --git a/vpc/src/model/DeleteVSwitchCidrReservationResult.cc b/vpc/src/model/DeleteVSwitchCidrReservationResult.cc new file mode 100644 index 000000000..cda9fc32e --- /dev/null +++ b/vpc/src/model/DeleteVSwitchCidrReservationResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DeleteVSwitchCidrReservationResult::DeleteVSwitchCidrReservationResult() : + ServiceResult() +{} + +DeleteVSwitchCidrReservationResult::DeleteVSwitchCidrReservationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVSwitchCidrReservationResult::~DeleteVSwitchCidrReservationResult() +{} + +void DeleteVSwitchCidrReservationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/DeleteVSwitchRequest.cc b/vpc/src/model/DeleteVSwitchRequest.cc index 7e770a36a..b5da73246 100644 --- a/vpc/src/model/DeleteVSwitchRequest.cc +++ b/vpc/src/model/DeleteVSwitchRequest.cc @@ -43,6 +43,15 @@ void DeleteVSwitchRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +bool DeleteVSwitchRequest::getDryRun() const { + return dryRun_; +} + +void DeleteVSwitchRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string DeleteVSwitchRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/DeleteVpcRequest.cc b/vpc/src/model/DeleteVpcRequest.cc index 5e3d927b2..dae83918d 100644 --- a/vpc/src/model/DeleteVpcRequest.cc +++ b/vpc/src/model/DeleteVpcRequest.cc @@ -34,6 +34,15 @@ void DeleteVpcRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string DeleteVpcRequest::getClientToken() const { + return clientToken_; +} + +void DeleteVpcRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + std::string DeleteVpcRequest::getRegionId() const { return regionId_; } diff --git a/vpc/src/model/Describe95TrafficRequest.cc b/vpc/src/model/Describe95TrafficRequest.cc new file mode 100644 index 000000000..a72da9e86 --- /dev/null +++ b/vpc/src/model/Describe95TrafficRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::Describe95TrafficRequest; + +Describe95TrafficRequest::Describe95TrafficRequest() + : RpcServiceRequest("vpc", "2016-04-28", "Describe95Traffic") { + setMethod(HttpRequest::Method::Post); +} + +Describe95TrafficRequest::~Describe95TrafficRequest() {} + +long Describe95TrafficRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void Describe95TrafficRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string Describe95TrafficRequest::getRegionId() const { + return regionId_; +} + +void Describe95TrafficRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string Describe95TrafficRequest::getDay() const { + return day_; +} + +void Describe95TrafficRequest::setDay(const std::string &day) { + day_ = day; + setParameter(std::string("Day"), day); +} + +std::string Describe95TrafficRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void Describe95TrafficRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string Describe95TrafficRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void Describe95TrafficRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long Describe95TrafficRequest::getOwnerId() const { + return ownerId_; +} + +void Describe95TrafficRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string Describe95TrafficRequest::getResourceType() const { + return resourceType_; +} + +void Describe95TrafficRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string Describe95TrafficRequest::getInstanceId() const { + return instanceId_; +} + +void Describe95TrafficRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/vpc/src/model/Describe95TrafficResult.cc b/vpc/src/model/Describe95TrafficResult.cc new file mode 100644 index 000000000..ba2633aba --- /dev/null +++ b/vpc/src/model/Describe95TrafficResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +Describe95TrafficResult::Describe95TrafficResult() : + ServiceResult() +{} + +Describe95TrafficResult::Describe95TrafficResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +Describe95TrafficResult::~Describe95TrafficResult() +{} + +void Describe95TrafficResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto traffic95SummaryNode = value["Traffic95Summary"]; + if(!traffic95SummaryNode["InternetChargeType"].isNull()) + traffic95Summary_.internetChargeType = traffic95SummaryNode["InternetChargeType"].asString(); + if(!traffic95SummaryNode["InstanceId"].isNull()) + traffic95Summary_.instanceId = traffic95SummaryNode["InstanceId"].asString(); + if(!traffic95SummaryNode["Bandwidth"].isNull()) + traffic95Summary_.bandwidth = std::stol(traffic95SummaryNode["Bandwidth"].asString()); + if(!traffic95SummaryNode["FifthPeakBandwidth"].isNull()) + traffic95Summary_.fifthPeakBandwidth = traffic95SummaryNode["FifthPeakBandwidth"].asString(); + if(!traffic95SummaryNode["MinimumConsumeBandwidth"].isNull()) + traffic95Summary_.minimumConsumeBandwidth = traffic95SummaryNode["MinimumConsumeBandwidth"].asString(); + auto allTraffic95DetailListNode = traffic95SummaryNode["Traffic95DetailList"]["Traffic95Detail"]; + for (auto traffic95SummaryNodeTraffic95DetailListTraffic95Detail : allTraffic95DetailListNode) + { + Traffic95Summary::Traffic95Detail traffic95DetailObject; + if(!traffic95SummaryNodeTraffic95DetailListTraffic95Detail["Time"].isNull()) + traffic95DetailObject.time = traffic95SummaryNodeTraffic95DetailListTraffic95Detail["Time"].asString(); + if(!traffic95SummaryNodeTraffic95DetailListTraffic95Detail["BillBandwidth"].isNull()) + traffic95DetailObject.billBandwidth = traffic95SummaryNodeTraffic95DetailListTraffic95Detail["BillBandwidth"].asString(); + if(!traffic95SummaryNodeTraffic95DetailListTraffic95Detail["OutBandwidth"].isNull()) + traffic95DetailObject.outBandwidth = traffic95SummaryNodeTraffic95DetailListTraffic95Detail["OutBandwidth"].asString(); + if(!traffic95SummaryNodeTraffic95DetailListTraffic95Detail["InBandwidth"].isNull()) + traffic95DetailObject.inBandwidth = traffic95SummaryNodeTraffic95DetailListTraffic95Detail["InBandwidth"].asString(); + traffic95Summary_.traffic95DetailList.push_back(traffic95DetailObject); + } + +} + +Describe95TrafficResult::Traffic95Summary Describe95TrafficResult::getTraffic95Summary()const +{ + return traffic95Summary_; +} + diff --git a/vpc/src/model/DescribeAccessPointsRequest.cc b/vpc/src/model/DescribeAccessPointsRequest.cc index 39b1480fa..c5a4a7ed7 100644 --- a/vpc/src/model/DescribeAccessPointsRequest.cc +++ b/vpc/src/model/DescribeAccessPointsRequest.cc @@ -119,3 +119,12 @@ void DescribeAccessPointsRequest::setName(const std::string &name) { setParameter(std::string("Name"), name); } +std::string DescribeAccessPointsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DescribeAccessPointsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc b/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc index 4ba692e61..9ad4af923 100644 --- a/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc +++ b/vpc/src/model/DescribeCommonBandwidthPackagesResult.cc @@ -85,6 +85,10 @@ void DescribeCommonBandwidthPackagesResult::parse(const std::string &payload) commonBandwidthPackagesObject.iSP = valueCommonBandwidthPackagesCommonBandwidthPackage["ISP"].asString(); if(!valueCommonBandwidthPackagesCommonBandwidthPackage["HasReservationData"].isNull()) commonBandwidthPackagesObject.hasReservationData = valueCommonBandwidthPackagesCommonBandwidthPackage["HasReservationData"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["BizType"].isNull()) + commonBandwidthPackagesObject.bizType = valueCommonBandwidthPackagesCommonBandwidthPackage["BizType"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Zone"].isNull()) + commonBandwidthPackagesObject.zone = valueCommonBandwidthPackagesCommonBandwidthPackage["Zone"].asString(); auto allPublicIpAddressesNode = valueCommonBandwidthPackagesCommonBandwidthPackage["PublicIpAddresses"]["PublicIpAddresse"]; for (auto valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse : allPublicIpAddressesNode) { @@ -97,6 +101,16 @@ void DescribeCommonBandwidthPackagesResult::parse(const std::string &payload) publicIpAddressesObject.bandwidthPackageIpRelationStatus = valueCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse["BandwidthPackageIpRelationStatus"].asString(); commonBandwidthPackagesObject.publicIpAddresses.push_back(publicIpAddressesObject); } + auto allTagsNode = valueCommonBandwidthPackagesCommonBandwidthPackage["Tags"]["Tag"]; + for (auto valueCommonBandwidthPackagesCommonBandwidthPackageTagsTag : allTagsNode) + { + CommonBandwidthPackage::Tag tagsObject; + if(!valueCommonBandwidthPackagesCommonBandwidthPackageTagsTag["Key"].isNull()) + tagsObject.key = valueCommonBandwidthPackagesCommonBandwidthPackageTagsTag["Key"].asString(); + if(!valueCommonBandwidthPackagesCommonBandwidthPackageTagsTag["Value"].isNull()) + tagsObject.value = valueCommonBandwidthPackagesCommonBandwidthPackageTagsTag["Value"].asString(); + commonBandwidthPackagesObject.tags.push_back(tagsObject); + } auto allSecurityProtectionTypes = value["SecurityProtectionTypes"]["SecurityProtectionType"]; for (auto value : allSecurityProtectionTypes) commonBandwidthPackagesObject.securityProtectionTypes.push_back(value.asString()); diff --git a/vpc/src/model/DescribeCustomerGatewayResult.cc b/vpc/src/model/DescribeCustomerGatewayResult.cc index dac6ac734..1cff804aa 100644 --- a/vpc/src/model/DescribeCustomerGatewayResult.cc +++ b/vpc/src/model/DescribeCustomerGatewayResult.cc @@ -63,6 +63,8 @@ void DescribeCustomerGatewayResult::parse(const std::string &payload) name_ = value["Name"].asString(); if(!value["AuthKey"].isNull()) authKey_ = value["AuthKey"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -76,6 +78,11 @@ std::string DescribeCustomerGatewayResult::getCustomerGatewayId()const return customerGatewayId_; } +std::string DescribeCustomerGatewayResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + long DescribeCustomerGatewayResult::getCreateTime()const { return createTime_; diff --git a/vpc/src/model/DescribeCustomerGatewaysRequest.cc b/vpc/src/model/DescribeCustomerGatewaysRequest.cc index 509d9713b..e170cb819 100644 --- a/vpc/src/model/DescribeCustomerGatewaysRequest.cc +++ b/vpc/src/model/DescribeCustomerGatewaysRequest.cc @@ -52,6 +52,15 @@ void DescribeCustomerGatewaysRequest::setPageNumber(int pageNumber) { setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } +std::string DescribeCustomerGatewaysRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeCustomerGatewaysRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeCustomerGatewaysRequest::getRegionId() const { return regionId_; } diff --git a/vpc/src/model/DescribeCustomerGatewaysResult.cc b/vpc/src/model/DescribeCustomerGatewaysResult.cc index 91dc048b4..1a6cbe4ba 100644 --- a/vpc/src/model/DescribeCustomerGatewaysResult.cc +++ b/vpc/src/model/DescribeCustomerGatewaysResult.cc @@ -57,6 +57,8 @@ void DescribeCustomerGatewaysResult::parse(const std::string &payload) customerGatewaysObject.name = valueCustomerGatewaysCustomerGateway["Name"].asString(); if(!valueCustomerGatewaysCustomerGateway["AuthKey"].isNull()) customerGatewaysObject.authKey = valueCustomerGatewaysCustomerGateway["AuthKey"].asString(); + if(!valueCustomerGatewaysCustomerGateway["ResourceGroupId"].isNull()) + customerGatewaysObject.resourceGroupId = valueCustomerGatewaysCustomerGateway["ResourceGroupId"].asString(); auto allTagsNode = valueCustomerGatewaysCustomerGateway["Tags"]["Tag"]; for (auto valueCustomerGatewaysCustomerGatewayTagsTag : allTagsNode) { diff --git a/vpc/src/model/DescribeEipAddressesRequest.cc b/vpc/src/model/DescribeEipAddressesRequest.cc index 2ffd722d4..4791ef281 100644 --- a/vpc/src/model/DescribeEipAddressesRequest.cc +++ b/vpc/src/model/DescribeEipAddressesRequest.cc @@ -52,15 +52,6 @@ void DescribeEipAddressesRequest::setFilter2Value(const std::string &filter2Valu setParameter(std::string("Filter.2.Value"), filter2Value); } -bool DescribeEipAddressesRequest::getSecurityProtectionEnabled() const { - return securityProtectionEnabled_; -} - -void DescribeEipAddressesRequest::setSecurityProtectionEnabled(bool securityProtectionEnabled) { - securityProtectionEnabled_ = securityProtectionEnabled; - setParameter(std::string("SecurityProtectionEnabled"), securityProtectionEnabled ? "true" : "false"); -} - std::string DescribeEipAddressesRequest::getISP() const { return iSP_; } @@ -79,24 +70,6 @@ void DescribeEipAddressesRequest::setEipName(const std::string &eipName) { setParameter(std::string("EipName"), eipName); } -std::string DescribeEipAddressesRequest::getAllocationId() const { - return allocationId_; -} - -void DescribeEipAddressesRequest::setAllocationId(const std::string &allocationId) { - allocationId_ = allocationId; - setParameter(std::string("AllocationId"), allocationId); -} - -bool DescribeEipAddressesRequest::getIncludeReservationData() const { - return includeReservationData_; -} - -void DescribeEipAddressesRequest::setIncludeReservationData(bool includeReservationData) { - includeReservationData_ = includeReservationData; - setParameter(std::string("IncludeReservationData"), includeReservationData ? "true" : "false"); -} - std::string DescribeEipAddressesRequest::getEipAddress() const { return eipAddress_; } @@ -106,15 +79,6 @@ void DescribeEipAddressesRequest::setEipAddress(const std::string &eipAddress) { setParameter(std::string("EipAddress"), eipAddress); } -int DescribeEipAddressesRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeEipAddressesRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - std::string DescribeEipAddressesRequest::getResourceGroupId() const { return resourceGroupId_; } @@ -142,33 +106,6 @@ void DescribeEipAddressesRequest::setFilter1Key(const std::string &filter1Key) { setParameter(std::string("Filter.1.Key"), filter1Key); } -std::string DescribeEipAddressesRequest::getRegionId() const { - return regionId_; -} - -void DescribeEipAddressesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DescribeEipAddressesRequest::getAssociatedInstanceType() const { - return associatedInstanceType_; -} - -void DescribeEipAddressesRequest::setAssociatedInstanceType(const std::string &associatedInstanceType) { - associatedInstanceType_ = associatedInstanceType; - setParameter(std::string("AssociatedInstanceType"), associatedInstanceType); -} - -int DescribeEipAddressesRequest::getPageSize() const { - return pageSize_; -} - -void DescribeEipAddressesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - std::vector DescribeEipAddressesRequest::getTag() const { return tag_; } @@ -201,6 +138,105 @@ void DescribeEipAddressesRequest::setDryRun(bool dryRun) { setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } +std::string DescribeEipAddressesRequest::getFilter1Value() const { + return filter1Value_; +} + +void DescribeEipAddressesRequest::setFilter1Value(const std::string &filter1Value) { + filter1Value_ = filter1Value; + setParameter(std::string("Filter.1.Value"), filter1Value); +} + +long DescribeEipAddressesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeEipAddressesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeEipAddressesRequest::getStatus() const { + return status_; +} + +void DescribeEipAddressesRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + +bool DescribeEipAddressesRequest::getSecurityProtectionEnabled() const { + return securityProtectionEnabled_; +} + +void DescribeEipAddressesRequest::setSecurityProtectionEnabled(bool securityProtectionEnabled) { + securityProtectionEnabled_ = securityProtectionEnabled; + setParameter(std::string("SecurityProtectionEnabled"), securityProtectionEnabled ? "true" : "false"); +} + +bool DescribeEipAddressesRequest::getServiceManaged() const { + return serviceManaged_; +} + +void DescribeEipAddressesRequest::setServiceManaged(bool serviceManaged) { + serviceManaged_ = serviceManaged; + setParameter(std::string("ServiceManaged"), serviceManaged ? "true" : "false"); +} + +std::string DescribeEipAddressesRequest::getAllocationId() const { + return allocationId_; +} + +void DescribeEipAddressesRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); +} + +bool DescribeEipAddressesRequest::getIncludeReservationData() const { + return includeReservationData_; +} + +void DescribeEipAddressesRequest::setIncludeReservationData(bool includeReservationData) { + includeReservationData_ = includeReservationData; + setParameter(std::string("IncludeReservationData"), includeReservationData ? "true" : "false"); +} + +int DescribeEipAddressesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeEipAddressesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeEipAddressesRequest::getRegionId() const { + return regionId_; +} + +void DescribeEipAddressesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeEipAddressesRequest::getAssociatedInstanceType() const { + return associatedInstanceType_; +} + +void DescribeEipAddressesRequest::setAssociatedInstanceType(const std::string &associatedInstanceType) { + associatedInstanceType_ = associatedInstanceType; + setParameter(std::string("AssociatedInstanceType"), associatedInstanceType); +} + +int DescribeEipAddressesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeEipAddressesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + std::string DescribeEipAddressesRequest::getBandwidthPackageId() const { return bandwidthPackageId_; } @@ -228,15 +264,6 @@ void DescribeEipAddressesRequest::setOwnerAccount(const std::string &ownerAccoun setParameter(std::string("OwnerAccount"), ownerAccount); } -std::string DescribeEipAddressesRequest::getFilter1Value() const { - return filter1Value_; -} - -void DescribeEipAddressesRequest::setFilter1Value(const std::string &filter1Value) { - filter1Value_ = filter1Value; - setParameter(std::string("Filter.1.Value"), filter1Value); -} - std::string DescribeEipAddressesRequest::getFilter2Key() const { return filter2Key_; } @@ -246,15 +273,6 @@ void DescribeEipAddressesRequest::setFilter2Key(const std::string &filter2Key) { setParameter(std::string("Filter.2.Key"), filter2Key); } -long DescribeEipAddressesRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeEipAddressesRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - std::string DescribeEipAddressesRequest::getChargeType() const { return chargeType_; } @@ -273,12 +291,3 @@ void DescribeEipAddressesRequest::setAssociatedInstanceId(const std::string &ass setParameter(std::string("AssociatedInstanceId"), associatedInstanceId); } -std::string DescribeEipAddressesRequest::getStatus() const { - return status_; -} - -void DescribeEipAddressesRequest::setStatus(const std::string &status) { - status_ = status; - setParameter(std::string("Status"), status); -} - diff --git a/vpc/src/model/DescribeEipAddressesResult.cc b/vpc/src/model/DescribeEipAddressesResult.cc index 3cda92cba..fd84e8a69 100644 --- a/vpc/src/model/DescribeEipAddressesResult.cc +++ b/vpc/src/model/DescribeEipAddressesResult.cc @@ -119,6 +119,10 @@ void DescribeEipAddressesResult::parse(const std::string &payload) eipAddressesObject.vpcId = valueEipAddressesEipAddress["VpcId"].asString(); if(!valueEipAddressesEipAddress["Zone"].isNull()) eipAddressesObject.zone = valueEipAddressesEipAddress["Zone"].asString(); + if(!valueEipAddressesEipAddress["BizType"].isNull()) + eipAddressesObject.bizType = valueEipAddressesEipAddress["BizType"].asString(); + if(!valueEipAddressesEipAddress["ServiceID"].isNull()) + eipAddressesObject.serviceID = std::stol(valueEipAddressesEipAddress["ServiceID"].asString()); auto allOperationLocksNode = valueEipAddressesEipAddress["OperationLocks"]["LockReason"]; for (auto valueEipAddressesEipAddressOperationLocksLockReason : allOperationLocksNode) { diff --git a/vpc/src/model/DescribeEipGatewayInfoRequest.cc b/vpc/src/model/DescribeEipGatewayInfoRequest.cc index 0da53be05..c42d49a98 100644 --- a/vpc/src/model/DescribeEipGatewayInfoRequest.cc +++ b/vpc/src/model/DescribeEipGatewayInfoRequest.cc @@ -34,6 +34,15 @@ void DescribeEipGatewayInfoRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string DescribeEipGatewayInfoRequest::getRegionId() const { + return regionId_; +} + +void DescribeEipGatewayInfoRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + std::string DescribeEipGatewayInfoRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -70,12 +79,3 @@ void DescribeEipGatewayInfoRequest::setInstanceId(const std::string &instanceId) setParameter(std::string("InstanceId"), instanceId); } -std::string DescribeEipGatewayInfoRequest::getRegionId() const { - return regionId_; -} - -void DescribeEipGatewayInfoRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/vpc/src/model/DescribeEipSegmentResult.cc b/vpc/src/model/DescribeEipSegmentResult.cc index 349e71801..457e61d90 100644 --- a/vpc/src/model/DescribeEipSegmentResult.cc +++ b/vpc/src/model/DescribeEipSegmentResult.cc @@ -59,6 +59,8 @@ void DescribeEipSegmentResult::parse(const std::string &payload) eipSegmentsObject.segment = valueEipSegmentsEipSegment["Segment"].asString(); if(!valueEipSegmentsEipSegment["RegionId"].isNull()) eipSegmentsObject.regionId = valueEipSegmentsEipSegment["RegionId"].asString(); + if(!valueEipSegmentsEipSegment["Zone"].isNull()) + eipSegmentsObject.zone = valueEipSegmentsEipSegment["Zone"].asString(); eipSegments_.push_back(eipSegmentsObject); } if(!value["PageSize"].isNull()) diff --git a/vpc/src/model/DescribeExpressConnectTrafficQosQueueRequest.cc b/vpc/src/model/DescribeExpressConnectTrafficQosQueueRequest.cc new file mode 100644 index 000000000..e5512087f --- /dev/null +++ b/vpc/src/model/DescribeExpressConnectTrafficQosQueueRequest.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::Vpc::Model::DescribeExpressConnectTrafficQosQueueRequest; + +DescribeExpressConnectTrafficQosQueueRequest::DescribeExpressConnectTrafficQosQueueRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeExpressConnectTrafficQosQueue") { + setMethod(HttpRequest::Method::Post); +} + +DescribeExpressConnectTrafficQosQueueRequest::~DescribeExpressConnectTrafficQosQueueRequest() {} + +std::string DescribeExpressConnectTrafficQosQueueRequest::getClientToken() const { + return clientToken_; +} + +void DescribeExpressConnectTrafficQosQueueRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DescribeExpressConnectTrafficQosQueueRequest::getRegionId() const { + return regionId_; +} + +void DescribeExpressConnectTrafficQosQueueRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeExpressConnectTrafficQosQueueRequest::getQosId() const { + return qosId_; +} + +void DescribeExpressConnectTrafficQosQueueRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); +} + +std::string DescribeExpressConnectTrafficQosQueueRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeExpressConnectTrafficQosQueueRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeExpressConnectTrafficQosQueueRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeExpressConnectTrafficQosQueueRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::vector DescribeExpressConnectTrafficQosQueueRequest::getQueueIdList() const { + return queueIdList_; +} + +void DescribeExpressConnectTrafficQosQueueRequest::setQueueIdList(const std::vector &queueIdList) { + queueIdList_ = queueIdList; +} + +std::vector DescribeExpressConnectTrafficQosQueueRequest::getQueueNameList() const { + return queueNameList_; +} + +void DescribeExpressConnectTrafficQosQueueRequest::setQueueNameList(const std::vector &queueNameList) { + queueNameList_ = queueNameList; +} + +long DescribeExpressConnectTrafficQosQueueRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeExpressConnectTrafficQosQueueRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeExpressConnectTrafficQosQueueResult.cc b/vpc/src/model/DescribeExpressConnectTrafficQosQueueResult.cc new file mode 100644 index 000000000..14bfaa5f7 --- /dev/null +++ b/vpc/src/model/DescribeExpressConnectTrafficQosQueueResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeExpressConnectTrafficQosQueueResult::DescribeExpressConnectTrafficQosQueueResult() : + ServiceResult() +{} + +DescribeExpressConnectTrafficQosQueueResult::DescribeExpressConnectTrafficQosQueueResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeExpressConnectTrafficQosQueueResult::~DescribeExpressConnectTrafficQosQueueResult() +{} + +void DescribeExpressConnectTrafficQosQueueResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allQueueListNode = value["QueueList"]["queueListItem"]; + for (auto valueQueueListqueueListItem : allQueueListNode) + { + QueueListItem queueListObject; + if(!valueQueueListqueueListItem["QosId"].isNull()) + queueListObject.qosId = valueQueueListqueueListItem["QosId"].asString(); + if(!valueQueueListqueueListItem["QueueId"].isNull()) + queueListObject.queueId = valueQueueListqueueListItem["QueueId"].asString(); + if(!valueQueueListqueueListItem["QueueType"].isNull()) + queueListObject.queueType = valueQueueListqueueListItem["QueueType"].asString(); + if(!valueQueueListqueueListItem["BandwidthPercent"].isNull()) + queueListObject.bandwidthPercent = valueQueueListqueueListItem["BandwidthPercent"].asString(); + if(!valueQueueListqueueListItem["QueueName"].isNull()) + queueListObject.queueName = valueQueueListqueueListItem["QueueName"].asString(); + if(!valueQueueListqueueListItem["QueueDescription"].isNull()) + queueListObject.queueDescription = valueQueueListqueueListItem["QueueDescription"].asString(); + if(!valueQueueListqueueListItem["Status"].isNull()) + queueListObject.status = valueQueueListqueueListItem["Status"].asString(); + auto allRuleListNode = valueQueueListqueueListItem["RuleList"]["ruleListItem"]; + for (auto valueQueueListqueueListItemRuleListruleListItem : allRuleListNode) + { + QueueListItem::RuleListItem ruleListObject; + if(!valueQueueListqueueListItemRuleListruleListItem["QosId"].isNull()) + ruleListObject.qosId = valueQueueListqueueListItemRuleListruleListItem["QosId"].asString(); + if(!valueQueueListqueueListItemRuleListruleListItem["QueueId"].isNull()) + ruleListObject.queueId = valueQueueListqueueListItemRuleListruleListItem["QueueId"].asString(); + if(!valueQueueListqueueListItemRuleListruleListItem["Priority"].isNull()) + ruleListObject.priority = std::stoi(valueQueueListqueueListItemRuleListruleListItem["Priority"].asString()); + if(!valueQueueListqueueListItemRuleListruleListItem["Protocol"].isNull()) + ruleListObject.protocol = valueQueueListqueueListItemRuleListruleListItem["Protocol"].asString(); + if(!valueQueueListqueueListItemRuleListruleListItem["SrcCidr"].isNull()) + ruleListObject.srcCidr = valueQueueListqueueListItemRuleListruleListItem["SrcCidr"].asString(); + if(!valueQueueListqueueListItemRuleListruleListItem["DstCidr"].isNull()) + ruleListObject.dstCidr = valueQueueListqueueListItemRuleListruleListItem["DstCidr"].asString(); + if(!valueQueueListqueueListItemRuleListruleListItem["SrcIPv6Cidr"].isNull()) + ruleListObject.srcIPv6Cidr = valueQueueListqueueListItemRuleListruleListItem["SrcIPv6Cidr"].asString(); + if(!valueQueueListqueueListItemRuleListruleListItem["DstIPv6Cidr"].isNull()) + ruleListObject.dstIPv6Cidr = valueQueueListqueueListItemRuleListruleListItem["DstIPv6Cidr"].asString(); + if(!valueQueueListqueueListItemRuleListruleListItem["SrcPortRange"].isNull()) + ruleListObject.srcPortRange = valueQueueListqueueListItemRuleListruleListItem["SrcPortRange"].asString(); + if(!valueQueueListqueueListItemRuleListruleListItem["DstPortRange"].isNull()) + ruleListObject.dstPortRange = valueQueueListqueueListItemRuleListruleListItem["DstPortRange"].asString(); + if(!valueQueueListqueueListItemRuleListruleListItem["MatchDscp"].isNull()) + ruleListObject.matchDscp = std::stoi(valueQueueListqueueListItemRuleListruleListItem["MatchDscp"].asString()); + if(!valueQueueListqueueListItemRuleListruleListItem["RemarkingDscp"].isNull()) + ruleListObject.remarkingDscp = std::stoi(valueQueueListqueueListItemRuleListruleListItem["RemarkingDscp"].asString()); + if(!valueQueueListqueueListItemRuleListruleListItem["RuleName"].isNull()) + ruleListObject.ruleName = valueQueueListqueueListItemRuleListruleListItem["RuleName"].asString(); + if(!valueQueueListqueueListItemRuleListruleListItem["RuleDescription"].isNull()) + ruleListObject.ruleDescription = valueQueueListqueueListItemRuleListruleListItem["RuleDescription"].asString(); + if(!valueQueueListqueueListItemRuleListruleListItem["RuleId"].isNull()) + ruleListObject.ruleId = valueQueueListqueueListItemRuleListruleListItem["RuleId"].asString(); + if(!valueQueueListqueueListItemRuleListruleListItem["Status"].isNull()) + ruleListObject.status = valueQueueListqueueListItemRuleListruleListItem["Status"].asString(); + queueListObject.ruleList.push_back(ruleListObject); + } + queueList_.push_back(queueListObject); + } + +} + +std::vector DescribeExpressConnectTrafficQosQueueResult::getQueueList()const +{ + return queueList_; +} + diff --git a/vpc/src/model/DescribeExpressConnectTrafficQosRequest.cc b/vpc/src/model/DescribeExpressConnectTrafficQosRequest.cc new file mode 100644 index 000000000..8c0d6c495 --- /dev/null +++ b/vpc/src/model/DescribeExpressConnectTrafficQosRequest.cc @@ -0,0 +1,129 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeExpressConnectTrafficQosRequest; + +DescribeExpressConnectTrafficQosRequest::DescribeExpressConnectTrafficQosRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeExpressConnectTrafficQos") { + setMethod(HttpRequest::Method::Post); +} + +DescribeExpressConnectTrafficQosRequest::~DescribeExpressConnectTrafficQosRequest() {} + +std::string DescribeExpressConnectTrafficQosRequest::getClientToken() const { + return clientToken_; +} + +void DescribeExpressConnectTrafficQosRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DescribeExpressConnectTrafficQosRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeExpressConnectTrafficQosRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeExpressConnectTrafficQosRequest::getNextToken() const { + return nextToken_; +} + +void DescribeExpressConnectTrafficQosRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string DescribeExpressConnectTrafficQosRequest::getRegionId() const { + return regionId_; +} + +void DescribeExpressConnectTrafficQosRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeExpressConnectTrafficQosRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeExpressConnectTrafficQosRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeExpressConnectTrafficQosRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeExpressConnectTrafficQosRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::vector DescribeExpressConnectTrafficQosRequest::getQosIdList() const { + return qosIdList_; +} + +void DescribeExpressConnectTrafficQosRequest::setQosIdList(const std::vector &qosIdList) { + qosIdList_ = qosIdList; +} + +long DescribeExpressConnectTrafficQosRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeExpressConnectTrafficQosRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector DescribeExpressConnectTrafficQosRequest::getTags() const { + return tags_; +} + +void DescribeExpressConnectTrafficQosRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Key", tagsObj.key); + setParameter(tagsObjStr + ".Value", tagsObj.value); + } +} + +std::vector DescribeExpressConnectTrafficQosRequest::getQosNameList() const { + return qosNameList_; +} + +void DescribeExpressConnectTrafficQosRequest::setQosNameList(const std::vector &qosNameList) { + qosNameList_ = qosNameList; +} + +int DescribeExpressConnectTrafficQosRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeExpressConnectTrafficQosRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/DescribeExpressConnectTrafficQosResult.cc b/vpc/src/model/DescribeExpressConnectTrafficQosResult.cc new file mode 100644 index 000000000..af72002b8 --- /dev/null +++ b/vpc/src/model/DescribeExpressConnectTrafficQosResult.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeExpressConnectTrafficQosResult::DescribeExpressConnectTrafficQosResult() : + ServiceResult() +{} + +DescribeExpressConnectTrafficQosResult::DescribeExpressConnectTrafficQosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeExpressConnectTrafficQosResult::~DescribeExpressConnectTrafficQosResult() +{} + +void DescribeExpressConnectTrafficQosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allQosListNode = value["QosList"]["qosListItem"]; + for (auto valueQosListqosListItem : allQosListNode) + { + QosListItem qosListObject; + if(!valueQosListqosListItem["QosId"].isNull()) + qosListObject.qosId = valueQosListqosListItem["QosId"].asString(); + if(!valueQosListqosListItem["QosName"].isNull()) + qosListObject.qosName = valueQosListqosListItem["QosName"].asString(); + if(!valueQosListqosListItem["QosDescription"].isNull()) + qosListObject.qosDescription = valueQosListqosListItem["QosDescription"].asString(); + if(!valueQosListqosListItem["Status"].isNull()) + qosListObject.status = valueQosListqosListItem["Status"].asString(); + if(!valueQosListqosListItem["Progressing"].isNull()) + qosListObject.progressing = std::stoi(valueQosListqosListItem["Progressing"].asString()); + if(!valueQosListqosListItem["ResourceGroupId"].isNull()) + qosListObject.resourceGroupId = valueQosListqosListItem["ResourceGroupId"].asString(); + auto allAssociatedInstanceListNode = valueQosListqosListItem["AssociatedInstanceList"]["associatedInstanceListItem"]; + for (auto valueQosListqosListItemAssociatedInstanceListassociatedInstanceListItem : allAssociatedInstanceListNode) + { + QosListItem::AssociatedInstanceListItem associatedInstanceListObject; + if(!valueQosListqosListItemAssociatedInstanceListassociatedInstanceListItem["InstanceId"].isNull()) + associatedInstanceListObject.instanceId = valueQosListqosListItemAssociatedInstanceListassociatedInstanceListItem["InstanceId"].asString(); + if(!valueQosListqosListItemAssociatedInstanceListassociatedInstanceListItem["InstanceType"].isNull()) + associatedInstanceListObject.instanceType = valueQosListqosListItemAssociatedInstanceListassociatedInstanceListItem["InstanceType"].asString(); + if(!valueQosListqosListItemAssociatedInstanceListassociatedInstanceListItem["InstanceStatus"].isNull()) + associatedInstanceListObject.instanceStatus = valueQosListqosListItemAssociatedInstanceListassociatedInstanceListItem["InstanceStatus"].asString(); + if(!valueQosListqosListItemAssociatedInstanceListassociatedInstanceListItem["InstanceProgressing"].isNull()) + associatedInstanceListObject.instanceProgressing = std::stoi(valueQosListqosListItemAssociatedInstanceListassociatedInstanceListItem["InstanceProgressing"].asString()); + qosListObject.associatedInstanceList.push_back(associatedInstanceListObject); + } + auto allQueueListNode = valueQosListqosListItem["QueueList"]["queueListItem"]; + for (auto valueQosListqosListItemQueueListqueueListItem : allQueueListNode) + { + QosListItem::QueueListItem queueListObject; + if(!valueQosListqosListItemQueueListqueueListItem["QosId"].isNull()) + queueListObject.qosId = valueQosListqosListItemQueueListqueueListItem["QosId"].asString(); + if(!valueQosListqosListItemQueueListqueueListItem["QueueId"].isNull()) + queueListObject.queueId = valueQosListqosListItemQueueListqueueListItem["QueueId"].asString(); + if(!valueQosListqosListItemQueueListqueueListItem["QueueType"].isNull()) + queueListObject.queueType = valueQosListqosListItemQueueListqueueListItem["QueueType"].asString(); + if(!valueQosListqosListItemQueueListqueueListItem["BandwidthPercent"].isNull()) + queueListObject.bandwidthPercent = valueQosListqosListItemQueueListqueueListItem["BandwidthPercent"].asString(); + if(!valueQosListqosListItemQueueListqueueListItem["QueueName"].isNull()) + queueListObject.queueName = valueQosListqosListItemQueueListqueueListItem["QueueName"].asString(); + if(!valueQosListqosListItemQueueListqueueListItem["QueueDescription"].isNull()) + queueListObject.queueDescription = valueQosListqosListItemQueueListqueueListItem["QueueDescription"].asString(); + if(!valueQosListqosListItemQueueListqueueListItem["Status"].isNull()) + queueListObject.status = valueQosListqosListItemQueueListqueueListItem["Status"].asString(); + qosListObject.queueList.push_back(queueListObject); + } + auto allTagsNode = valueQosListqosListItem["Tags"]["tagsItem"]; + for (auto valueQosListqosListItemTagstagsItem : allTagsNode) + { + QosListItem::TagsItem tagsObject; + if(!valueQosListqosListItemTagstagsItem["Key"].isNull()) + tagsObject.key = valueQosListqosListItemTagstagsItem["Key"].asString(); + if(!valueQosListqosListItemTagstagsItem["Value"].isNull()) + tagsObject.value = valueQosListqosListItemTagstagsItem["Value"].asString(); + qosListObject.tags.push_back(tagsObject); + } + qosList_.push_back(qosListObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Count"].isNull()) + count_ = value["Count"].asString(); + +} + +int DescribeExpressConnectTrafficQosResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeExpressConnectTrafficQosResult::getNextToken()const +{ + return nextToken_; +} + +int DescribeExpressConnectTrafficQosResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector DescribeExpressConnectTrafficQosResult::getQosList()const +{ + return qosList_; +} + +std::string DescribeExpressConnectTrafficQosResult::getCount()const +{ + return count_; +} + diff --git a/vpc/src/model/DescribeExpressConnectTrafficQosRuleRequest.cc b/vpc/src/model/DescribeExpressConnectTrafficQosRuleRequest.cc new file mode 100644 index 000000000..737120bf8 --- /dev/null +++ b/vpc/src/model/DescribeExpressConnectTrafficQosRuleRequest.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::Vpc::Model::DescribeExpressConnectTrafficQosRuleRequest; + +DescribeExpressConnectTrafficQosRuleRequest::DescribeExpressConnectTrafficQosRuleRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeExpressConnectTrafficQosRule") { + setMethod(HttpRequest::Method::Post); +} + +DescribeExpressConnectTrafficQosRuleRequest::~DescribeExpressConnectTrafficQosRuleRequest() {} + +std::string DescribeExpressConnectTrafficQosRuleRequest::getClientToken() const { + return clientToken_; +} + +void DescribeExpressConnectTrafficQosRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector DescribeExpressConnectTrafficQosRuleRequest::getRuleIdList() const { + return ruleIdList_; +} + +void DescribeExpressConnectTrafficQosRuleRequest::setRuleIdList(const std::vector &ruleIdList) { + ruleIdList_ = ruleIdList; +} + +std::string DescribeExpressConnectTrafficQosRuleRequest::getRegionId() const { + return regionId_; +} + +void DescribeExpressConnectTrafficQosRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeExpressConnectTrafficQosRuleRequest::getQosId() const { + return qosId_; +} + +void DescribeExpressConnectTrafficQosRuleRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); +} + +std::string DescribeExpressConnectTrafficQosRuleRequest::getQueueId() const { + return queueId_; +} + +void DescribeExpressConnectTrafficQosRuleRequest::setQueueId(const std::string &queueId) { + queueId_ = queueId; + setParameter(std::string("QueueId"), queueId); +} + +std::string DescribeExpressConnectTrafficQosRuleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeExpressConnectTrafficQosRuleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeExpressConnectTrafficQosRuleRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeExpressConnectTrafficQosRuleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeExpressConnectTrafficQosRuleRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeExpressConnectTrafficQosRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector DescribeExpressConnectTrafficQosRuleRequest::getRuleNameList() const { + return ruleNameList_; +} + +void DescribeExpressConnectTrafficQosRuleRequest::setRuleNameList(const std::vector &ruleNameList) { + ruleNameList_ = ruleNameList; +} + diff --git a/vpc/src/model/DescribeExpressConnectTrafficQosRuleResult.cc b/vpc/src/model/DescribeExpressConnectTrafficQosRuleResult.cc new file mode 100644 index 000000000..8cc2c7527 --- /dev/null +++ b/vpc/src/model/DescribeExpressConnectTrafficQosRuleResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeExpressConnectTrafficQosRuleResult::DescribeExpressConnectTrafficQosRuleResult() : + ServiceResult() +{} + +DescribeExpressConnectTrafficQosRuleResult::DescribeExpressConnectTrafficQosRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeExpressConnectTrafficQosRuleResult::~DescribeExpressConnectTrafficQosRuleResult() +{} + +void DescribeExpressConnectTrafficQosRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRuleListNode = value["RuleList"]["ruleListItem"]; + for (auto valueRuleListruleListItem : allRuleListNode) + { + RuleListItem ruleListObject; + if(!valueRuleListruleListItem["QosId"].isNull()) + ruleListObject.qosId = valueRuleListruleListItem["QosId"].asString(); + if(!valueRuleListruleListItem["QueueId"].isNull()) + ruleListObject.queueId = valueRuleListruleListItem["QueueId"].asString(); + if(!valueRuleListruleListItem["Priority"].isNull()) + ruleListObject.priority = std::stoi(valueRuleListruleListItem["Priority"].asString()); + if(!valueRuleListruleListItem["Protocol"].isNull()) + ruleListObject.protocol = valueRuleListruleListItem["Protocol"].asString(); + if(!valueRuleListruleListItem["SrcCidr"].isNull()) + ruleListObject.srcCidr = valueRuleListruleListItem["SrcCidr"].asString(); + if(!valueRuleListruleListItem["DstCidr"].isNull()) + ruleListObject.dstCidr = valueRuleListruleListItem["DstCidr"].asString(); + if(!valueRuleListruleListItem["SrcIPv6Cidr"].isNull()) + ruleListObject.srcIPv6Cidr = valueRuleListruleListItem["SrcIPv6Cidr"].asString(); + if(!valueRuleListruleListItem["DstIPv6Cidr"].isNull()) + ruleListObject.dstIPv6Cidr = valueRuleListruleListItem["DstIPv6Cidr"].asString(); + if(!valueRuleListruleListItem["SrcPortRange"].isNull()) + ruleListObject.srcPortRange = valueRuleListruleListItem["SrcPortRange"].asString(); + if(!valueRuleListruleListItem["DstPortRange"].isNull()) + ruleListObject.dstPortRange = valueRuleListruleListItem["DstPortRange"].asString(); + if(!valueRuleListruleListItem["MatchDscp"].isNull()) + ruleListObject.matchDscp = std::stoi(valueRuleListruleListItem["MatchDscp"].asString()); + if(!valueRuleListruleListItem["RemarkingDscp"].isNull()) + ruleListObject.remarkingDscp = std::stoi(valueRuleListruleListItem["RemarkingDscp"].asString()); + if(!valueRuleListruleListItem["RuleName"].isNull()) + ruleListObject.ruleName = valueRuleListruleListItem["RuleName"].asString(); + if(!valueRuleListruleListItem["RuleDescription"].isNull()) + ruleListObject.ruleDescription = valueRuleListruleListItem["RuleDescription"].asString(); + if(!valueRuleListruleListItem["RuleId"].isNull()) + ruleListObject.ruleId = valueRuleListruleListItem["RuleId"].asString(); + if(!valueRuleListruleListItem["Status"].isNull()) + ruleListObject.status = valueRuleListruleListItem["Status"].asString(); + ruleList_.push_back(ruleListObject); + } + +} + +std::vector DescribeExpressConnectTrafficQosRuleResult::getRuleList()const +{ + return ruleList_; +} + diff --git a/vpc/src/model/DescribeFailoverTestJobRequest.cc b/vpc/src/model/DescribeFailoverTestJobRequest.cc new file mode 100644 index 000000000..447d4a924 --- /dev/null +++ b/vpc/src/model/DescribeFailoverTestJobRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeFailoverTestJobRequest; + +DescribeFailoverTestJobRequest::DescribeFailoverTestJobRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeFailoverTestJob") { + setMethod(HttpRequest::Method::Post); +} + +DescribeFailoverTestJobRequest::~DescribeFailoverTestJobRequest() {} + +std::string DescribeFailoverTestJobRequest::getClientToken() const { + return clientToken_; +} + +void DescribeFailoverTestJobRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DescribeFailoverTestJobRequest::getJobId() const { + return jobId_; +} + +void DescribeFailoverTestJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + +std::string DescribeFailoverTestJobRequest::getRegionId() const { + return regionId_; +} + +void DescribeFailoverTestJobRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeFailoverTestJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeFailoverTestJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeFailoverTestJobRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeFailoverTestJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeFailoverTestJobRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeFailoverTestJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeFailoverTestJobResult.cc b/vpc/src/model/DescribeFailoverTestJobResult.cc new file mode 100644 index 000000000..e96d1d8d1 --- /dev/null +++ b/vpc/src/model/DescribeFailoverTestJobResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeFailoverTestJobResult::DescribeFailoverTestJobResult() : + ServiceResult() +{} + +DescribeFailoverTestJobResult::DescribeFailoverTestJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFailoverTestJobResult::~DescribeFailoverTestJobResult() +{} + +void DescribeFailoverTestJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto failoverTestJobModelNode = value["FailoverTestJobModel"]; + if(!failoverTestJobModelNode["JobId"].isNull()) + failoverTestJobModel_.jobId = failoverTestJobModelNode["JobId"].asString(); + if(!failoverTestJobModelNode["Name"].isNull()) + failoverTestJobModel_.name = failoverTestJobModelNode["Name"].asString(); + if(!failoverTestJobModelNode["Description"].isNull()) + failoverTestJobModel_.description = failoverTestJobModelNode["Description"].asString(); + if(!failoverTestJobModelNode["ResourceType"].isNull()) + failoverTestJobModel_.resourceType = failoverTestJobModelNode["ResourceType"].asString(); + if(!failoverTestJobModelNode["JobType"].isNull()) + failoverTestJobModel_.jobType = failoverTestJobModelNode["JobType"].asString(); + if(!failoverTestJobModelNode["JobDuration"].isNull()) + failoverTestJobModel_.jobDuration = failoverTestJobModelNode["JobDuration"].asString(); + if(!failoverTestJobModelNode["StartTime"].isNull()) + failoverTestJobModel_.startTime = failoverTestJobModelNode["StartTime"].asString(); + if(!failoverTestJobModelNode["StopTime"].isNull()) + failoverTestJobModel_.stopTime = failoverTestJobModelNode["StopTime"].asString(); + if(!failoverTestJobModelNode["Status"].isNull()) + failoverTestJobModel_.status = failoverTestJobModelNode["Status"].asString(); + auto allResourceId = failoverTestJobModelNode["ResourceId"]["ResourceId"]; + for (auto value : allResourceId) + failoverTestJobModel_.resourceId.push_back(value.asString()); + +} + +DescribeFailoverTestJobResult::FailoverTestJobModel DescribeFailoverTestJobResult::getFailoverTestJobModel()const +{ + return failoverTestJobModel_; +} + diff --git a/vpc/src/model/DescribeFailoverTestJobsRequest.cc b/vpc/src/model/DescribeFailoverTestJobsRequest.cc new file mode 100644 index 000000000..d0b97aaee --- /dev/null +++ b/vpc/src/model/DescribeFailoverTestJobsRequest.cc @@ -0,0 +1,103 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeFailoverTestJobsRequest; + +DescribeFailoverTestJobsRequest::DescribeFailoverTestJobsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeFailoverTestJobs") { + setMethod(HttpRequest::Method::Post); +} + +DescribeFailoverTestJobsRequest::~DescribeFailoverTestJobsRequest() {} + +std::string DescribeFailoverTestJobsRequest::getClientToken() const { + return clientToken_; +} + +void DescribeFailoverTestJobsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DescribeFailoverTestJobsRequest::getNextToken() const { + return nextToken_; +} + +void DescribeFailoverTestJobsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string DescribeFailoverTestJobsRequest::getRegionId() const { + return regionId_; +} + +void DescribeFailoverTestJobsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeFailoverTestJobsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeFailoverTestJobsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeFailoverTestJobsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeFailoverTestJobsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeFailoverTestJobsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeFailoverTestJobsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector DescribeFailoverTestJobsRequest::getFilter() const { + return filter_; +} + +void DescribeFailoverTestJobsRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } +} + +int DescribeFailoverTestJobsRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeFailoverTestJobsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/DescribeFailoverTestJobsResult.cc b/vpc/src/model/DescribeFailoverTestJobsResult.cc new file mode 100644 index 000000000..eeaa7b631 --- /dev/null +++ b/vpc/src/model/DescribeFailoverTestJobsResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeFailoverTestJobsResult::DescribeFailoverTestJobsResult() : + ServiceResult() +{} + +DescribeFailoverTestJobsResult::DescribeFailoverTestJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFailoverTestJobsResult::~DescribeFailoverTestJobsResult() +{} + +void DescribeFailoverTestJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFailoverTestJobListNode = value["FailoverTestJobList"]["FailoverTestJobListItem"]; + for (auto valueFailoverTestJobListFailoverTestJobListItem : allFailoverTestJobListNode) + { + FailoverTestJobListItem failoverTestJobListObject; + if(!valueFailoverTestJobListFailoverTestJobListItem["JobId"].isNull()) + failoverTestJobListObject.jobId = valueFailoverTestJobListFailoverTestJobListItem["JobId"].asString(); + if(!valueFailoverTestJobListFailoverTestJobListItem["Name"].isNull()) + failoverTestJobListObject.name = valueFailoverTestJobListFailoverTestJobListItem["Name"].asString(); + if(!valueFailoverTestJobListFailoverTestJobListItem["Description"].isNull()) + failoverTestJobListObject.description = valueFailoverTestJobListFailoverTestJobListItem["Description"].asString(); + if(!valueFailoverTestJobListFailoverTestJobListItem["ResourceType"].isNull()) + failoverTestJobListObject.resourceType = valueFailoverTestJobListFailoverTestJobListItem["ResourceType"].asString(); + if(!valueFailoverTestJobListFailoverTestJobListItem["JobType"].isNull()) + failoverTestJobListObject.jobType = valueFailoverTestJobListFailoverTestJobListItem["JobType"].asString(); + if(!valueFailoverTestJobListFailoverTestJobListItem["JobDuration"].isNull()) + failoverTestJobListObject.jobDuration = valueFailoverTestJobListFailoverTestJobListItem["JobDuration"].asString(); + if(!valueFailoverTestJobListFailoverTestJobListItem["StartTime"].isNull()) + failoverTestJobListObject.startTime = valueFailoverTestJobListFailoverTestJobListItem["StartTime"].asString(); + if(!valueFailoverTestJobListFailoverTestJobListItem["StopTime"].isNull()) + failoverTestJobListObject.stopTime = valueFailoverTestJobListFailoverTestJobListItem["StopTime"].asString(); + if(!valueFailoverTestJobListFailoverTestJobListItem["Status"].isNull()) + failoverTestJobListObject.status = valueFailoverTestJobListFailoverTestJobListItem["Status"].asString(); + auto allResourceId = value["ResourceId"]["ResourceId"]; + for (auto value : allResourceId) + failoverTestJobListObject.resourceId.push_back(value.asString()); + failoverTestJobList_.push_back(failoverTestJobListObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + +} + +int DescribeFailoverTestJobsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeFailoverTestJobsResult::getNextToken()const +{ + return nextToken_; +} + +int DescribeFailoverTestJobsResult::getMaxResults()const +{ + return maxResults_; +} + +int DescribeFailoverTestJobsResult::getCount()const +{ + return count_; +} + +std::vector DescribeFailoverTestJobsResult::getFailoverTestJobList()const +{ + return failoverTestJobList_; +} + diff --git a/vpc/src/model/DescribeFlowLogsResult.cc b/vpc/src/model/DescribeFlowLogsResult.cc index a8dc995f7..586296524 100644 --- a/vpc/src/model/DescribeFlowLogsResult.cc +++ b/vpc/src/model/DescribeFlowLogsResult.cc @@ -73,6 +73,18 @@ void DescribeFlowLogsResult::parse(const std::string &payload) flowLogsObject.serviceType = valueFlowLogsFlowLog["ServiceType"].asString(); if(!valueFlowLogsFlowLog["ResourceGroupId"].isNull()) flowLogsObject.resourceGroupId = valueFlowLogsFlowLog["ResourceGroupId"].asString(); + if(!valueFlowLogsFlowLog["FlowLogDeliverStatus"].isNull()) + flowLogsObject.flowLogDeliverStatus = valueFlowLogsFlowLog["FlowLogDeliverStatus"].asString(); + if(!valueFlowLogsFlowLog["FlowLogDeliverErrorMessage"].isNull()) + flowLogsObject.flowLogDeliverErrorMessage = valueFlowLogsFlowLog["FlowLogDeliverErrorMessage"].asString(); + if(!valueFlowLogsFlowLog["IpVersion"].isNull()) + flowLogsObject.ipVersion = valueFlowLogsFlowLog["IpVersion"].asString(); + if(!valueFlowLogsFlowLog["TrafficAnalyzerId"].isNull()) + flowLogsObject.trafficAnalyzerId = valueFlowLogsFlowLog["TrafficAnalyzerId"].asString(); + if(!valueFlowLogsFlowLog["EnableTrafficAnalyze"].isNull()) + flowLogsObject.enableTrafficAnalyze = valueFlowLogsFlowLog["EnableTrafficAnalyze"].asString() == "true"; + if(!valueFlowLogsFlowLog["EnableLogDelivery"].isNull()) + flowLogsObject.enableLogDelivery = valueFlowLogsFlowLog["EnableLogDelivery"].asString() == "true"; auto allTagsNode = valueFlowLogsFlowLog["Tags"]["Tag"]; for (auto valueFlowLogsFlowLogTagsTag : allTagsNode) { diff --git a/vpc/src/model/DescribeForwardTableEntriesResult.cc b/vpc/src/model/DescribeForwardTableEntriesResult.cc index ca0585591..79b5519e8 100644 --- a/vpc/src/model/DescribeForwardTableEntriesResult.cc +++ b/vpc/src/model/DescribeForwardTableEntriesResult.cc @@ -61,6 +61,8 @@ void DescribeForwardTableEntriesResult::parse(const std::string &payload) forwardTableEntriesObject.externalPort = valueForwardTableEntriesForwardTableEntry["ExternalPort"].asString(); if(!valueForwardTableEntriesForwardTableEntry["ExternalIp"].isNull()) forwardTableEntriesObject.externalIp = valueForwardTableEntriesForwardTableEntry["ExternalIp"].asString(); + if(!valueForwardTableEntriesForwardTableEntry["NatGatewayId"].isNull()) + forwardTableEntriesObject.natGatewayId = valueForwardTableEntriesForwardTableEntry["NatGatewayId"].asString(); forwardTableEntries_.push_back(forwardTableEntriesObject); } if(!value["PageSize"].isNull()) diff --git a/vpc/src/model/DescribeIpv6AddressesRequest.cc b/vpc/src/model/DescribeIpv6AddressesRequest.cc index 371852e38..005e349df 100644 --- a/vpc/src/model/DescribeIpv6AddressesRequest.cc +++ b/vpc/src/model/DescribeIpv6AddressesRequest.cc @@ -34,6 +34,15 @@ void DescribeIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +bool DescribeIpv6AddressesRequest::getServiceManaged() const { + return serviceManaged_; +} + +void DescribeIpv6AddressesRequest::setServiceManaged(bool serviceManaged) { + serviceManaged_ = serviceManaged; + setParameter(std::string("ServiceManaged"), serviceManaged ? "true" : "false"); +} + std::string DescribeIpv6AddressesRequest::getIpv6InternetBandwidthId() const { return ipv6InternetBandwidthId_; } @@ -52,6 +61,15 @@ void DescribeIpv6AddressesRequest::setNetworkType(const std::string &networkType setParameter(std::string("NetworkType"), networkType); } +bool DescribeIpv6AddressesRequest::getIncludeReservationData() const { + return includeReservationData_; +} + +void DescribeIpv6AddressesRequest::setIncludeReservationData(bool includeReservationData) { + includeReservationData_ = includeReservationData; + setParameter(std::string("IncludeReservationData"), includeReservationData ? "true" : "false"); +} + int DescribeIpv6AddressesRequest::getPageNumber() const { return pageNumber_; } @@ -61,6 +79,15 @@ void DescribeIpv6AddressesRequest::setPageNumber(int pageNumber) { setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } +std::string DescribeIpv6AddressesRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeIpv6AddressesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeIpv6AddressesRequest::getRegionId() const { return regionId_; } @@ -88,6 +115,29 @@ void DescribeIpv6AddressesRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::string DescribeIpv6AddressesRequest::getAddressType() const { + return addressType_; +} + +void DescribeIpv6AddressesRequest::setAddressType(const std::string &addressType) { + addressType_ = addressType; + setParameter(std::string("AddressType"), addressType); +} + +std::vector DescribeIpv6AddressesRequest::getTag() const { + return tag_; +} + +void DescribeIpv6AddressesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + std::string DescribeIpv6AddressesRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/DescribeIpv6AddressesResult.cc b/vpc/src/model/DescribeIpv6AddressesResult.cc index 34d7a7e4d..9111a254d 100644 --- a/vpc/src/model/DescribeIpv6AddressesResult.cc +++ b/vpc/src/model/DescribeIpv6AddressesResult.cc @@ -53,6 +53,8 @@ void DescribeIpv6AddressesResult::parse(const std::string &payload) ipv6AddressesObject.allocationTime = valueIpv6AddressesIpv6Address["AllocationTime"].asString(); if(!valueIpv6AddressesIpv6Address["Ipv6AddressName"].isNull()) ipv6AddressesObject.ipv6AddressName = valueIpv6AddressesIpv6Address["Ipv6AddressName"].asString(); + if(!valueIpv6AddressesIpv6Address["Ipv6AddressDescription"].isNull()) + ipv6AddressesObject.ipv6AddressDescription = valueIpv6AddressesIpv6Address["Ipv6AddressDescription"].asString(); if(!valueIpv6AddressesIpv6Address["AssociatedInstanceType"].isNull()) ipv6AddressesObject.associatedInstanceType = valueIpv6AddressesIpv6Address["AssociatedInstanceType"].asString(); if(!valueIpv6AddressesIpv6Address["AssociatedInstanceId"].isNull()) @@ -61,6 +63,8 @@ void DescribeIpv6AddressesResult::parse(const std::string &payload) ipv6AddressesObject.networkType = valueIpv6AddressesIpv6Address["NetworkType"].asString(); if(!valueIpv6AddressesIpv6Address["Ipv6Address"].isNull()) ipv6AddressesObject.ipv6Address = valueIpv6AddressesIpv6Address["Ipv6Address"].asString(); + if(!valueIpv6AddressesIpv6Address["AddressType"].isNull()) + ipv6AddressesObject.addressType = valueIpv6AddressesIpv6Address["AddressType"].asString(); if(!valueIpv6AddressesIpv6Address["Ipv6Isp"].isNull()) ipv6AddressesObject.ipv6Isp = valueIpv6AddressesIpv6Address["Ipv6Isp"].asString(); if(!valueIpv6AddressesIpv6Address["VSwitchId"].isNull()) @@ -69,6 +73,20 @@ void DescribeIpv6AddressesResult::parse(const std::string &payload) ipv6AddressesObject.ipv6GatewayId = valueIpv6AddressesIpv6Address["Ipv6GatewayId"].asString(); if(!valueIpv6AddressesIpv6Address["RealBandwidth"].isNull()) ipv6AddressesObject.realBandwidth = std::stoi(valueIpv6AddressesIpv6Address["RealBandwidth"].asString()); + if(!valueIpv6AddressesIpv6Address["ResourceGroupId"].isNull()) + ipv6AddressesObject.resourceGroupId = valueIpv6AddressesIpv6Address["ResourceGroupId"].asString(); + if(!valueIpv6AddressesIpv6Address["ServiceManaged"].isNull()) + ipv6AddressesObject.serviceManaged = std::stoi(valueIpv6AddressesIpv6Address["ServiceManaged"].asString()); + auto allTagsNode = valueIpv6AddressesIpv6Address["Tags"]["Tag"]; + for (auto valueIpv6AddressesIpv6AddressTagsTag : allTagsNode) + { + Ipv6Address::Tag tagsObject; + if(!valueIpv6AddressesIpv6AddressTagsTag["Key"].isNull()) + tagsObject.key = valueIpv6AddressesIpv6AddressTagsTag["Key"].asString(); + if(!valueIpv6AddressesIpv6AddressTagsTag["Value"].isNull()) + tagsObject.value = valueIpv6AddressesIpv6AddressTagsTag["Value"].asString(); + ipv6AddressesObject.tags.push_back(tagsObject); + } auto ipv6InternetBandwidthNode = value["Ipv6InternetBandwidth"]; if(!ipv6InternetBandwidthNode["InternetChargeType"].isNull()) ipv6AddressesObject.ipv6InternetBandwidth.internetChargeType = ipv6InternetBandwidthNode["InternetChargeType"].asString(); @@ -80,6 +98,16 @@ void DescribeIpv6AddressesResult::parse(const std::string &payload) ipv6AddressesObject.ipv6InternetBandwidth.ipv6InternetBandwidthId = ipv6InternetBandwidthNode["Ipv6InternetBandwidthId"].asString(); if(!ipv6InternetBandwidthNode["InstanceChargeType"].isNull()) ipv6AddressesObject.ipv6InternetBandwidth.instanceChargeType = ipv6InternetBandwidthNode["InstanceChargeType"].asString(); + if(!ipv6InternetBandwidthNode["HasReservationData"].isNull()) + ipv6AddressesObject.ipv6InternetBandwidth.hasReservationData = ipv6InternetBandwidthNode["HasReservationData"].asString() == "true"; + if(!ipv6InternetBandwidthNode["ReservationInternetChargeType"].isNull()) + ipv6AddressesObject.ipv6InternetBandwidth.reservationInternetChargeType = ipv6InternetBandwidthNode["ReservationInternetChargeType"].asString(); + if(!ipv6InternetBandwidthNode["ReservationOrderType"].isNull()) + ipv6AddressesObject.ipv6InternetBandwidth.reservationOrderType = ipv6InternetBandwidthNode["ReservationOrderType"].asString(); + if(!ipv6InternetBandwidthNode["ReservationActiveTime"].isNull()) + ipv6AddressesObject.ipv6InternetBandwidth.reservationActiveTime = ipv6InternetBandwidthNode["ReservationActiveTime"].asString(); + if(!ipv6InternetBandwidthNode["ReservationBandwidth"].isNull()) + ipv6AddressesObject.ipv6InternetBandwidth.reservationBandwidth = std::stol(ipv6InternetBandwidthNode["ReservationBandwidth"].asString()); ipv6Addresses_.push_back(ipv6AddressesObject); } if(!value["PageSize"].isNull()) diff --git a/vpc/src/model/DescribeIpv6GatewayAttributeResult.cc b/vpc/src/model/DescribeIpv6GatewayAttributeResult.cc index 84a408954..e1943e925 100644 --- a/vpc/src/model/DescribeIpv6GatewayAttributeResult.cc +++ b/vpc/src/model/DescribeIpv6GatewayAttributeResult.cc @@ -73,6 +73,10 @@ void DescribeIpv6GatewayAttributeResult::parse(const std::string &payload) name_ = value["Name"].asString(); if(!value["ResourceGroupId"].isNull()) resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["GatewayRouteTableId"].isNull()) + gatewayRouteTableId_ = value["GatewayRouteTableId"].asString(); + if(!value["OwnerId"].isNull()) + ownerId_ = std::stol(value["OwnerId"].asString()); } @@ -81,6 +85,11 @@ std::string DescribeIpv6GatewayAttributeResult::getStatus()const return status_; } +std::string DescribeIpv6GatewayAttributeResult::getGatewayRouteTableId()const +{ + return gatewayRouteTableId_; +} + std::string DescribeIpv6GatewayAttributeResult::getDescription()const { return description_; @@ -116,6 +125,11 @@ std::string DescribeIpv6GatewayAttributeResult::getVpcId()const return vpcId_; } +long DescribeIpv6GatewayAttributeResult::getOwnerId()const +{ + return ownerId_; +} + std::string DescribeIpv6GatewayAttributeResult::getExpiredTime()const { return expiredTime_; diff --git a/vpc/src/model/DescribeIpv6GatewaysResult.cc b/vpc/src/model/DescribeIpv6GatewaysResult.cc index f77d5f2a6..aa63a1435 100644 --- a/vpc/src/model/DescribeIpv6GatewaysResult.cc +++ b/vpc/src/model/DescribeIpv6GatewaysResult.cc @@ -67,6 +67,8 @@ void DescribeIpv6GatewaysResult::parse(const std::string &payload) ipv6GatewaysObject.regionId = valueIpv6GatewaysIpv6Gateway["RegionId"].asString(); if(!valueIpv6GatewaysIpv6Gateway["ResourceGroupId"].isNull()) ipv6GatewaysObject.resourceGroupId = valueIpv6GatewaysIpv6Gateway["ResourceGroupId"].asString(); + if(!valueIpv6GatewaysIpv6Gateway["OwnerId"].isNull()) + ipv6GatewaysObject.ownerId = std::stol(valueIpv6GatewaysIpv6Gateway["OwnerId"].asString()); auto allTagsNode = valueIpv6GatewaysIpv6Gateway["Tags"]["Tag"]; for (auto valueIpv6GatewaysIpv6GatewayTagsTag : allTagsNode) { diff --git a/vpc/src/model/DescribeNatGatewayAssociateNetworkInterfacesRequest.cc b/vpc/src/model/DescribeNatGatewayAssociateNetworkInterfacesRequest.cc new file mode 100644 index 000000000..c34225835 --- /dev/null +++ b/vpc/src/model/DescribeNatGatewayAssociateNetworkInterfacesRequest.cc @@ -0,0 +1,143 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeNatGatewayAssociateNetworkInterfacesRequest; + +DescribeNatGatewayAssociateNetworkInterfacesRequest::DescribeNatGatewayAssociateNetworkInterfacesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeNatGatewayAssociateNetworkInterfaces") { + setMethod(HttpRequest::Method::Post); +} + +DescribeNatGatewayAssociateNetworkInterfacesRequest::~DescribeNatGatewayAssociateNetworkInterfacesRequest() {} + +long DescribeNatGatewayAssociateNetworkInterfacesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeNatGatewayAssociateNetworkInterfacesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeNatGatewayAssociateNetworkInterfacesRequest::getClientToken() const { + return clientToken_; +} + +void DescribeNatGatewayAssociateNetworkInterfacesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DescribeNatGatewayAssociateNetworkInterfacesRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeNatGatewayAssociateNetworkInterfacesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeNatGatewayAssociateNetworkInterfacesRequest::getRegionId() const { + return regionId_; +} + +void DescribeNatGatewayAssociateNetworkInterfacesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeNatGatewayAssociateNetworkInterfacesRequest::getNextToken() const { + return nextToken_; +} + +void DescribeNatGatewayAssociateNetworkInterfacesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string DescribeNatGatewayAssociateNetworkInterfacesRequest::getNatGatewayId() const { + return natGatewayId_; +} + +void DescribeNatGatewayAssociateNetworkInterfacesRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); +} + +std::vector DescribeNatGatewayAssociateNetworkInterfacesRequest::getTag() const { + return tag_; +} + +void DescribeNatGatewayAssociateNetworkInterfacesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } +} + +std::string DescribeNatGatewayAssociateNetworkInterfacesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeNatGatewayAssociateNetworkInterfacesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeNatGatewayAssociateNetworkInterfacesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeNatGatewayAssociateNetworkInterfacesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeNatGatewayAssociateNetworkInterfacesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeNatGatewayAssociateNetworkInterfacesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector DescribeNatGatewayAssociateNetworkInterfacesRequest::getFilter() const { + return filter_; +} + +void DescribeNatGatewayAssociateNetworkInterfacesRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + setParameter(std::string("Filter") + "." + std::to_string(dep1 + 1) + ".Key", filter[dep1].key); + setParameter(std::string("Filter") + "." + std::to_string(dep1 + 1) + ".Value", filter[dep1].value); + } +} + +int DescribeNatGatewayAssociateNetworkInterfacesRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeNatGatewayAssociateNetworkInterfacesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/DescribeNatGatewayAssociateNetworkInterfacesResult.cc b/vpc/src/model/DescribeNatGatewayAssociateNetworkInterfacesResult.cc new file mode 100644 index 000000000..b4a75e7dc --- /dev/null +++ b/vpc/src/model/DescribeNatGatewayAssociateNetworkInterfacesResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeNatGatewayAssociateNetworkInterfacesResult::DescribeNatGatewayAssociateNetworkInterfacesResult() : + ServiceResult() +{} + +DescribeNatGatewayAssociateNetworkInterfacesResult::DescribeNatGatewayAssociateNetworkInterfacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNatGatewayAssociateNetworkInterfacesResult::~DescribeNatGatewayAssociateNetworkInterfacesResult() +{} + +void DescribeNatGatewayAssociateNetworkInterfacesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAssociateNetworkInterfacesNode = value["AssociateNetworkInterfaces"]["AssociateNetworkInterface"]; + for (auto valueAssociateNetworkInterfacesAssociateNetworkInterface : allAssociateNetworkInterfacesNode) + { + AssociateNetworkInterface associateNetworkInterfacesObject; + if(!valueAssociateNetworkInterfacesAssociateNetworkInterface["NetworkInterfaceId"].isNull()) + associateNetworkInterfacesObject.networkInterfaceId = valueAssociateNetworkInterfacesAssociateNetworkInterface["NetworkInterfaceId"].asString(); + if(!valueAssociateNetworkInterfacesAssociateNetworkInterface["ResourceId"].isNull()) + associateNetworkInterfacesObject.resourceId = valueAssociateNetworkInterfacesAssociateNetworkInterface["ResourceId"].asString(); + if(!valueAssociateNetworkInterfacesAssociateNetworkInterface["ResourceType"].isNull()) + associateNetworkInterfacesObject.resourceType = valueAssociateNetworkInterfacesAssociateNetworkInterface["ResourceType"].asString(); + if(!valueAssociateNetworkInterfacesAssociateNetworkInterface["ResourceOwnerId"].isNull()) + associateNetworkInterfacesObject.resourceOwnerId = valueAssociateNetworkInterfacesAssociateNetworkInterface["ResourceOwnerId"].asString(); + if(!valueAssociateNetworkInterfacesAssociateNetworkInterface["TunnelIndex"].isNull()) + associateNetworkInterfacesObject.tunnelIndex = valueAssociateNetworkInterfacesAssociateNetworkInterface["TunnelIndex"].asString(); + auto allIPv4SetsNode = valueAssociateNetworkInterfacesAssociateNetworkInterface["IPv4Sets"]["IPv4Set"]; + for (auto valueAssociateNetworkInterfacesAssociateNetworkInterfaceIPv4SetsIPv4Set : allIPv4SetsNode) + { + AssociateNetworkInterface::IPv4Set iPv4SetsObject; + if(!valueAssociateNetworkInterfacesAssociateNetworkInterfaceIPv4SetsIPv4Set["IPv4Address"].isNull()) + iPv4SetsObject.iPv4Address = valueAssociateNetworkInterfacesAssociateNetworkInterfaceIPv4SetsIPv4Set["IPv4Address"].asString(); + if(!valueAssociateNetworkInterfacesAssociateNetworkInterfaceIPv4SetsIPv4Set["Primary"].isNull()) + iPv4SetsObject.primary = valueAssociateNetworkInterfacesAssociateNetworkInterfaceIPv4SetsIPv4Set["Primary"].asString() == "true"; + associateNetworkInterfacesObject.iPv4Sets.push_back(iPv4SetsObject); + } + associateNetworkInterfaces_.push_back(associateNetworkInterfacesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NatGatewayId"].isNull()) + natGatewayId_ = value["NatGatewayId"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + +} + +int DescribeNatGatewayAssociateNetworkInterfacesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeNatGatewayAssociateNetworkInterfacesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector DescribeNatGatewayAssociateNetworkInterfacesResult::getAssociateNetworkInterfaces()const +{ + return associateNetworkInterfaces_; +} + +int DescribeNatGatewayAssociateNetworkInterfacesResult::getMaxResults()const +{ + return maxResults_; +} + +int DescribeNatGatewayAssociateNetworkInterfacesResult::getCount()const +{ + return count_; +} + +std::string DescribeNatGatewayAssociateNetworkInterfacesResult::getNatGatewayId()const +{ + return natGatewayId_; +} + diff --git a/vpc/src/model/DescribeNatGatewaysResult.cc b/vpc/src/model/DescribeNatGatewaysResult.cc index 42b35a902..f6a1d4177 100644 --- a/vpc/src/model/DescribeNatGatewaysResult.cc +++ b/vpc/src/model/DescribeNatGatewaysResult.cc @@ -89,6 +89,8 @@ void DescribeNatGatewaysResult::parse(const std::string &payload) natGatewaysObject.privateLinkMode = valueNatGatewaysNatGateway["PrivateLinkMode"].asString(); if(!valueNatGatewaysNatGateway["EipBindMode"].isNull()) natGatewaysObject.eipBindMode = valueNatGatewaysNatGateway["EipBindMode"].asString(); + if(!valueNatGatewaysNatGateway["EnableSessionLog"].isNull()) + natGatewaysObject.enableSessionLog = valueNatGatewaysNatGateway["EnableSessionLog"].asString(); auto allIpListsNode = valueNatGatewaysNatGateway["IpLists"]["IpList"]; for (auto valueNatGatewaysNatGatewayIpListsIpList : allIpListsNode) { @@ -134,6 +136,11 @@ void DescribeNatGatewaysResult::parse(const std::string &payload) natGatewaysObject.natGatewayPrivateInfo.izNo = natGatewayPrivateInfoNode["IzNo"].asString(); if(!natGatewayPrivateInfoNode["EniType"].isNull()) natGatewaysObject.natGatewayPrivateInfo.eniType = natGatewayPrivateInfoNode["EniType"].asString(); + auto accessModeNode = value["AccessMode"]; + if(!accessModeNode["ModeValue"].isNull()) + natGatewaysObject.accessMode.modeValue = accessModeNode["ModeValue"].asString(); + if(!accessModeNode["TunnelType"].isNull()) + natGatewaysObject.accessMode.tunnelType = accessModeNode["TunnelType"].asString(); auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"]; for (auto value : allForwardTableIds) natGatewaysObject.forwardTableIds.push_back(value.asString()); diff --git a/vpc/src/model/DescribeNetworkAclAttributesRequest.cc b/vpc/src/model/DescribeNetworkAclAttributesRequest.cc index 629968ec2..d9db458a5 100644 --- a/vpc/src/model/DescribeNetworkAclAttributesRequest.cc +++ b/vpc/src/model/DescribeNetworkAclAttributesRequest.cc @@ -70,6 +70,15 @@ void DescribeNetworkAclAttributesRequest::setResourceOwnerAccount(const std::str setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } +std::string DescribeNetworkAclAttributesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeNetworkAclAttributesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + long DescribeNetworkAclAttributesRequest::getOwnerId() const { return ownerId_; } diff --git a/vpc/src/model/DescribeNetworkAclAttributesResult.cc b/vpc/src/model/DescribeNetworkAclAttributesResult.cc index 11efd3519..cdaf3dae9 100644 --- a/vpc/src/model/DescribeNetworkAclAttributesResult.cc +++ b/vpc/src/model/DescribeNetworkAclAttributesResult.cc @@ -72,6 +72,8 @@ void DescribeNetworkAclAttributesResult::parse(const std::string &payload) ingressAclEntryObject.description = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Description"].asString(); if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].isNull()) ingressAclEntryObject.sourceCidrIp = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].asString(); + if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["IpVersion"].isNull()) + ingressAclEntryObject.ipVersion = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["IpVersion"].asString(); if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].isNull()) ingressAclEntryObject.protocol = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].asString(); if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].isNull()) @@ -96,6 +98,8 @@ void DescribeNetworkAclAttributesResult::parse(const std::string &payload) egressAclEntryObject.protocol = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Protocol"].asString(); if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].isNull()) egressAclEntryObject.destinationCidrIp = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].asString(); + if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["IpVersion"].isNull()) + egressAclEntryObject.ipVersion = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["IpVersion"].asString(); if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Port"].isNull()) egressAclEntryObject.port = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Port"].asString(); networkAclAttribute_.egressAclEntries.push_back(egressAclEntryObject); diff --git a/vpc/src/model/DescribeNetworkAclsRequest.cc b/vpc/src/model/DescribeNetworkAclsRequest.cc index 40fea95cb..7dbeaba16 100644 --- a/vpc/src/model/DescribeNetworkAclsRequest.cc +++ b/vpc/src/model/DescribeNetworkAclsRequest.cc @@ -97,6 +97,15 @@ void DescribeNetworkAclsRequest::setResourceOwnerAccount(const std::string &reso setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } +std::string DescribeNetworkAclsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeNetworkAclsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + std::string DescribeNetworkAclsRequest::getNetworkAclName() const { return networkAclName_; } diff --git a/vpc/src/model/DescribeNetworkAclsResult.cc b/vpc/src/model/DescribeNetworkAclsResult.cc index 271753895..4e77eddb0 100644 --- a/vpc/src/model/DescribeNetworkAclsResult.cc +++ b/vpc/src/model/DescribeNetworkAclsResult.cc @@ -75,6 +75,8 @@ void DescribeNetworkAclsResult::parse(const std::string &payload) ingressAclEntriesObject.description = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Description"].asString(); if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["SourceCidrIp"].isNull()) ingressAclEntriesObject.sourceCidrIp = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["SourceCidrIp"].asString(); + if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["IpVersion"].isNull()) + ingressAclEntriesObject.ipVersion = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["IpVersion"].asString(); if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Protocol"].isNull()) ingressAclEntriesObject.protocol = valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Protocol"].asString(); if(!valueNetworkAclsNetworkAclIngressAclEntriesIngressAclEntry["Port"].isNull()) @@ -99,6 +101,8 @@ void DescribeNetworkAclsResult::parse(const std::string &payload) egressAclEntriesObject.protocol = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Protocol"].asString(); if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["DestinationCidrIp"].isNull()) egressAclEntriesObject.destinationCidrIp = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["DestinationCidrIp"].asString(); + if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["IpVersion"].isNull()) + egressAclEntriesObject.ipVersion = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["IpVersion"].asString(); if(!valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Port"].isNull()) egressAclEntriesObject.port = valueNetworkAclsNetworkAclEgressAclEntriesEgressAclEntry["Port"].asString(); networkAclsObject.egressAclEntries.push_back(egressAclEntriesObject); diff --git a/vpc/src/model/DescribePhysicalConnectionLOAResult.cc b/vpc/src/model/DescribePhysicalConnectionLOAResult.cc index d84a9e3ec..f35a9a880 100644 --- a/vpc/src/model/DescribePhysicalConnectionLOAResult.cc +++ b/vpc/src/model/DescribePhysicalConnectionLOAResult.cc @@ -60,6 +60,10 @@ void DescribePhysicalConnectionLOAResult::parse(const std::string &payload) physicalConnectionLOAType_.lineType = physicalConnectionLOATypeNode["LineType"].asString(); if(!physicalConnectionLOATypeNode["CompanyName"].isNull()) physicalConnectionLOAType_.companyName = physicalConnectionLOATypeNode["CompanyName"].asString(); + if(!physicalConnectionLOATypeNode["LineServiceProvider"].isNull()) + physicalConnectionLOAType_.lineServiceProvider = physicalConnectionLOATypeNode["LineServiceProvider"].asString(); + if(!physicalConnectionLOATypeNode["LineSPContactInfo"].isNull()) + physicalConnectionLOAType_.lineSPContactInfo = physicalConnectionLOATypeNode["LineSPContactInfo"].asString(); auto allPMInfoNode = physicalConnectionLOATypeNode["PMInfo"]["PMInfoItem"]; for (auto physicalConnectionLOATypeNodePMInfoPMInfoItem : allPMInfoNode) { diff --git a/vpc/src/model/DescribePhysicalConnectionsResult.cc b/vpc/src/model/DescribePhysicalConnectionsResult.cc index 3418990d0..01bf36ba8 100644 --- a/vpc/src/model/DescribePhysicalConnectionsResult.cc +++ b/vpc/src/model/DescribePhysicalConnectionsResult.cc @@ -113,6 +113,20 @@ void DescribePhysicalConnectionsResult::parse(const std::string &payload) physicalConnectionSetObject.expectSpec = valuePhysicalConnectionSetPhysicalConnectionType["ExpectSpec"].asString(); if(!valuePhysicalConnectionSetPhysicalConnectionType["ResourceGroupId"].isNull()) physicalConnectionSetObject.resourceGroupId = valuePhysicalConnectionSetPhysicalConnectionType["ResourceGroupId"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["AdDetailLocation"].isNull()) + physicalConnectionSetObject.adDetailLocation = valuePhysicalConnectionSetPhysicalConnectionType["AdDetailLocation"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["QosId"].isNull()) + physicalConnectionSetObject.qosId = valuePhysicalConnectionSetPhysicalConnectionType["QosId"].asString(); + auto allTagsNode = valuePhysicalConnectionSetPhysicalConnectionType["Tags"]["tagsItem"]; + for (auto valuePhysicalConnectionSetPhysicalConnectionTypeTagstagsItem : allTagsNode) + { + PhysicalConnectionType::TagsItem tagsObject; + if(!valuePhysicalConnectionSetPhysicalConnectionTypeTagstagsItem["Key"].isNull()) + tagsObject.key = valuePhysicalConnectionSetPhysicalConnectionTypeTagstagsItem["Key"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionTypeTagstagsItem["Value"].isNull()) + tagsObject.value = valuePhysicalConnectionSetPhysicalConnectionTypeTagstagsItem["Value"].asString(); + physicalConnectionSetObject.tags.push_back(tagsObject); + } physicalConnectionSet_.push_back(physicalConnectionSetObject); } if(!value["PageNumber"].isNull()) diff --git a/vpc/src/model/DescribePublicIpAddressRequest.cc b/vpc/src/model/DescribePublicIpAddressRequest.cc index aaa37693e..7048268ed 100644 --- a/vpc/src/model/DescribePublicIpAddressRequest.cc +++ b/vpc/src/model/DescribePublicIpAddressRequest.cc @@ -70,6 +70,15 @@ void DescribePublicIpAddressRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::string DescribePublicIpAddressRequest::getIpVersion() const { + return ipVersion_; +} + +void DescribePublicIpAddressRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); +} + std::string DescribePublicIpAddressRequest::getBandwidth() const { return bandwidth_; } diff --git a/vpc/src/model/DescribeRouteEntryListResult.cc b/vpc/src/model/DescribeRouteEntryListResult.cc index d64db4941..f9669639e 100644 --- a/vpc/src/model/DescribeRouteEntryListResult.cc +++ b/vpc/src/model/DescribeRouteEntryListResult.cc @@ -63,6 +63,8 @@ void DescribeRouteEntryListResult::parse(const std::string &payload) routeEntrysObject.gmtModified = valueRouteEntrysRouteEntry["GmtModified"].asString(); if(!valueRouteEntrysRouteEntry["ServiceType"].isNull()) routeEntrysObject.serviceType = valueRouteEntrysRouteEntry["ServiceType"].asString(); + if(!valueRouteEntrysRouteEntry["Origin"].isNull()) + routeEntrysObject.origin = valueRouteEntrysRouteEntry["Origin"].asString(); auto allNextHopsNode = valueRouteEntrysRouteEntry["NextHops"]["NextHop"]; for (auto valueRouteEntrysRouteEntryNextHopsNextHop : allNextHopsNode) { diff --git a/vpc/src/model/DescribeRouteTableListRequest.cc b/vpc/src/model/DescribeRouteTableListRequest.cc index 7dc26be18..f6885bfb6 100644 --- a/vpc/src/model/DescribeRouteTableListRequest.cc +++ b/vpc/src/model/DescribeRouteTableListRequest.cc @@ -156,3 +156,12 @@ void DescribeRouteTableListRequest::setVpcId(const std::string &vpcId) { setParameter(std::string("VpcId"), vpcId); } +std::string DescribeRouteTableListRequest::getRouteTableType() const { + return routeTableType_; +} + +void DescribeRouteTableListRequest::setRouteTableType(const std::string &routeTableType) { + routeTableType_ = routeTableType; + setParameter(std::string("RouteTableType"), routeTableType); +} + diff --git a/vpc/src/model/DescribeRouteTableListResult.cc b/vpc/src/model/DescribeRouteTableListResult.cc index 746108783..de1480bdd 100644 --- a/vpc/src/model/DescribeRouteTableListResult.cc +++ b/vpc/src/model/DescribeRouteTableListResult.cc @@ -67,6 +67,8 @@ void DescribeRouteTableListResult::parse(const std::string &payload) routerTableListObject.routerType = valueRouterTableListRouterTableListType["RouterType"].asString(); if(!valueRouterTableListRouterTableListType["RouteTableName"].isNull()) routerTableListObject.routeTableName = valueRouterTableListRouterTableListType["RouteTableName"].asString(); + if(!valueRouterTableListRouterTableListType["RoutePropagationEnable"].isNull()) + routerTableListObject.routePropagationEnable = valueRouterTableListRouterTableListType["RoutePropagationEnable"].asString() == "true"; auto allTagsNode = valueRouterTableListRouterTableListType["Tags"]["Tag"]; for (auto valueRouterTableListRouterTableListTypeTagsTag : allTagsNode) { diff --git a/vpc/src/model/DescribeRouterInterfaceAttributeResult.cc b/vpc/src/model/DescribeRouterInterfaceAttributeResult.cc index 37729cc87..a20e814c3 100644 --- a/vpc/src/model/DescribeRouterInterfaceAttributeResult.cc +++ b/vpc/src/model/DescribeRouterInterfaceAttributeResult.cc @@ -39,6 +39,16 @@ void DescribeRouterInterfaceAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["TagsItem"]; + for (auto valueTagsTagsItem : allTagsNode) + { + TagsItem tagsObject; + if(!valueTagsTagsItem["Key"].isNull()) + tagsObject.key = valueTagsTagsItem["Key"].asString(); + if(!valueTagsTagsItem["Value"].isNull()) + tagsObject.value = valueTagsTagsItem["Value"].asString(); + tags_.push_back(tagsObject); + } if(!value["ReservationActiveTime"].isNull()) reservationActiveTime_ = value["ReservationActiveTime"].asString(); if(!value["HealthCheckTargetIp"].isNull()) @@ -123,6 +133,10 @@ void DescribeRouterInterfaceAttributeResult::parse(const std::string &payload) hasReservationData_ = value["HasReservationData"].asString(); if(!value["AccessPointId"].isNull()) accessPointId_ = value["AccessPointId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["FastLinkMode"].isNull()) + fastLinkMode_ = value["FastLinkMode"].asString(); } @@ -156,6 +170,11 @@ std::string DescribeRouterInterfaceAttributeResult::getEndTime()const return endTime_; } +std::string DescribeRouterInterfaceAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string DescribeRouterInterfaceAttributeResult::getGmtModified()const { return gmtModified_; @@ -206,6 +225,11 @@ std::string DescribeRouterInterfaceAttributeResult::getConnectedTime()const return connectedTime_; } +std::string DescribeRouterInterfaceAttributeResult::getFastLinkMode()const +{ + return fastLinkMode_; +} + std::string DescribeRouterInterfaceAttributeResult::getReservationActiveTime()const { return reservationActiveTime_; @@ -221,6 +245,11 @@ std::string DescribeRouterInterfaceAttributeResult::getReservationBandwidth()con return reservationBandwidth_; } +std::vector DescribeRouterInterfaceAttributeResult::getTags()const +{ + return tags_; +} + std::string DescribeRouterInterfaceAttributeResult::getStatus()const { return status_; diff --git a/vpc/src/model/DescribeRouterInterfacesRequest.cc b/vpc/src/model/DescribeRouterInterfacesRequest.cc index 722e0c448..27275fb6a 100644 --- a/vpc/src/model/DescribeRouterInterfacesRequest.cc +++ b/vpc/src/model/DescribeRouterInterfacesRequest.cc @@ -52,6 +52,15 @@ void DescribeRouterInterfacesRequest::setPageNumber(int pageNumber) { setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } +std::string DescribeRouterInterfacesRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeRouterInterfacesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeRouterInterfacesRequest::getRegionId() const { return regionId_; } @@ -88,6 +97,20 @@ void DescribeRouterInterfacesRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::vector DescribeRouterInterfacesRequest::getTags() const { + return tags_; +} + +void DescribeRouterInterfacesRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Value", tagsObj.value); + setParameter(tagsObjStr + ".Key", tagsObj.key); + } +} + std::vector DescribeRouterInterfacesRequest::getFilter() const { return filter_; } diff --git a/vpc/src/model/DescribeRouterInterfacesResult.cc b/vpc/src/model/DescribeRouterInterfacesResult.cc index 86c43cf76..135dc11a0 100644 --- a/vpc/src/model/DescribeRouterInterfacesResult.cc +++ b/vpc/src/model/DescribeRouterInterfacesResult.cc @@ -121,6 +121,18 @@ void DescribeRouterInterfacesResult::parse(const std::string &payload) routerInterfaceSetObject.ipv6Status = valueRouterInterfaceSetRouterInterfaceType["Ipv6Status"].asString(); if(!valueRouterInterfaceSetRouterInterfaceType["FastLinkMode"].isNull()) routerInterfaceSetObject.fastLinkMode = valueRouterInterfaceSetRouterInterfaceType["FastLinkMode"].asString() == "true"; + if(!valueRouterInterfaceSetRouterInterfaceType["ResourceGroupId"].isNull()) + routerInterfaceSetObject.resourceGroupId = valueRouterInterfaceSetRouterInterfaceType["ResourceGroupId"].asString(); + auto allTagsNode = valueRouterInterfaceSetRouterInterfaceType["Tags"]["TagsItem"]; + for (auto valueRouterInterfaceSetRouterInterfaceTypeTagsTagsItem : allTagsNode) + { + RouterInterfaceType::TagsItem tagsObject; + if(!valueRouterInterfaceSetRouterInterfaceTypeTagsTagsItem["Key"].isNull()) + tagsObject.key = valueRouterInterfaceSetRouterInterfaceTypeTagsTagsItem["Key"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceTypeTagsTagsItem["Value"].isNull()) + tagsObject.value = valueRouterInterfaceSetRouterInterfaceTypeTagsTagsItem["Value"].asString(); + routerInterfaceSetObject.tags.push_back(tagsObject); + } routerInterfaceSet_.push_back(routerInterfaceSetObject); } if(!value["PageNumber"].isNull()) diff --git a/vpc/src/model/DescribeSnatTableEntriesRequest.cc b/vpc/src/model/DescribeSnatTableEntriesRequest.cc index bcc0f495b..66d345a05 100644 --- a/vpc/src/model/DescribeSnatTableEntriesRequest.cc +++ b/vpc/src/model/DescribeSnatTableEntriesRequest.cc @@ -34,6 +34,17 @@ void DescribeSnatTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::vector DescribeSnatTableEntriesRequest::getNetworkInterfaceIds() const { + return networkInterfaceIds_; +} + +void DescribeSnatTableEntriesRequest::setNetworkInterfaceIds(const std::vector &networkInterfaceIds) { + networkInterfaceIds_ = networkInterfaceIds; + for(int dep1 = 0; dep1 != networkInterfaceIds.size(); dep1++) { + setParameter(std::string("NetworkInterfaceIds") + "." + std::to_string(dep1 + 1), networkInterfaceIds[dep1]); + } +} + std::string DescribeSnatTableEntriesRequest::getSourceCIDR() const { return sourceCIDR_; } diff --git a/vpc/src/model/DescribeSnatTableEntriesResult.cc b/vpc/src/model/DescribeSnatTableEntriesResult.cc index a33c2cfba..f6dd70b81 100644 --- a/vpc/src/model/DescribeSnatTableEntriesResult.cc +++ b/vpc/src/model/DescribeSnatTableEntriesResult.cc @@ -57,6 +57,12 @@ void DescribeSnatTableEntriesResult::parse(const std::string &payload) snatTableEntriesObject.snatTableId = valueSnatTableEntriesSnatTableEntry["SnatTableId"].asString(); if(!valueSnatTableEntriesSnatTableEntry["SnatIp"].isNull()) snatTableEntriesObject.snatIp = valueSnatTableEntriesSnatTableEntry["SnatIp"].asString(); + if(!valueSnatTableEntriesSnatTableEntry["NatGatewayId"].isNull()) + snatTableEntriesObject.natGatewayId = valueSnatTableEntriesSnatTableEntry["NatGatewayId"].asString(); + if(!valueSnatTableEntriesSnatTableEntry["EipAffinity"].isNull()) + snatTableEntriesObject.eipAffinity = valueSnatTableEntriesSnatTableEntry["EipAffinity"].asString(); + if(!valueSnatTableEntriesSnatTableEntry["NetworkInterfaceId"].isNull()) + snatTableEntriesObject.networkInterfaceId = valueSnatTableEntriesSnatTableEntry["NetworkInterfaceId"].asString(); snatTableEntries_.push_back(snatTableEntriesObject); } if(!value["PageSize"].isNull()) diff --git a/vpc/src/model/DescribeSslVpnClientCertResult.cc b/vpc/src/model/DescribeSslVpnClientCertResult.cc index 31f10151e..6a754e3f5 100644 --- a/vpc/src/model/DescribeSslVpnClientCertResult.cc +++ b/vpc/src/model/DescribeSslVpnClientCertResult.cc @@ -61,6 +61,8 @@ void DescribeSslVpnClientCertResult::parse(const std::string &payload) sslVpnServerId_ = value["SslVpnServerId"].asString(); if(!value["Name"].isNull()) name_ = value["Name"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -79,6 +81,11 @@ long DescribeSslVpnClientCertResult::getEndTime()const return endTime_; } +std::string DescribeSslVpnClientCertResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + long DescribeSslVpnClientCertResult::getCreateTime()const { return createTime_; diff --git a/vpc/src/model/DescribeSslVpnClientCertsRequest.cc b/vpc/src/model/DescribeSslVpnClientCertsRequest.cc index 099f6a8f5..9536694bc 100644 --- a/vpc/src/model/DescribeSslVpnClientCertsRequest.cc +++ b/vpc/src/model/DescribeSslVpnClientCertsRequest.cc @@ -52,6 +52,15 @@ void DescribeSslVpnClientCertsRequest::setSslVpnServerId(const std::string &sslV setParameter(std::string("SslVpnServerId"), sslVpnServerId); } +std::string DescribeSslVpnClientCertsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeSslVpnClientCertsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeSslVpnClientCertsRequest::getRegionId() const { return regionId_; } diff --git a/vpc/src/model/DescribeSslVpnClientCertsResult.cc b/vpc/src/model/DescribeSslVpnClientCertsResult.cc index 38688bf4c..742e05528 100644 --- a/vpc/src/model/DescribeSslVpnClientCertsResult.cc +++ b/vpc/src/model/DescribeSslVpnClientCertsResult.cc @@ -57,6 +57,8 @@ void DescribeSslVpnClientCertsResult::parse(const std::string &payload) sslVpnClientCertKeysObject.name = valueSslVpnClientCertKeysSslVpnClientCertKey["Name"].asString(); if(!valueSslVpnClientCertKeysSslVpnClientCertKey["RegionId"].isNull()) sslVpnClientCertKeysObject.regionId = valueSslVpnClientCertKeysSslVpnClientCertKey["RegionId"].asString(); + if(!valueSslVpnClientCertKeysSslVpnClientCertKey["ResourceGroupId"].isNull()) + sslVpnClientCertKeysObject.resourceGroupId = valueSslVpnClientCertKeysSslVpnClientCertKey["ResourceGroupId"].asString(); sslVpnClientCertKeys_.push_back(sslVpnClientCertKeysObject); } if(!value["PageSize"].isNull()) diff --git a/vpc/src/model/DescribeSslVpnClientsRequest.cc b/vpc/src/model/DescribeSslVpnClientsRequest.cc new file mode 100644 index 000000000..921141b1d --- /dev/null +++ b/vpc/src/model/DescribeSslVpnClientsRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeSslVpnClientsRequest; + +DescribeSslVpnClientsRequest::DescribeSslVpnClientsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeSslVpnClients") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSslVpnClientsRequest::~DescribeSslVpnClientsRequest() {} + +long DescribeSslVpnClientsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeSslVpnClientsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribeSslVpnClientsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeSslVpnClientsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeSslVpnClientsRequest::getRegionId() const { + return regionId_; +} + +void DescribeSslVpnClientsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeSslVpnClientsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeSslVpnClientsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeSslVpnClientsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeSslVpnClientsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeSslVpnClientsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeSslVpnClientsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeSslVpnClientsRequest::getVpnGatewayId() const { + return vpnGatewayId_; +} + +void DescribeSslVpnClientsRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); +} + +long DescribeSslVpnClientsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSslVpnClientsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/DescribeSslVpnClientsResult.cc b/vpc/src/model/DescribeSslVpnClientsResult.cc new file mode 100644 index 000000000..99fb39620 --- /dev/null +++ b/vpc/src/model/DescribeSslVpnClientsResult.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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeSslVpnClientsResult::DescribeSslVpnClientsResult() : + ServiceResult() +{} + +DescribeSslVpnClientsResult::DescribeSslVpnClientsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSslVpnClientsResult::~DescribeSslVpnClientsResult() +{} + +void DescribeSslVpnClientsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allClientInfoListNode = value["ClientInfoList"]["ClientInfo"]; + for (auto valueClientInfoListClientInfo : allClientInfoListNode) + { + ClientInfo clientInfoListObject; + if(!valueClientInfoListClientInfo["Status"].isNull()) + clientInfoListObject.status = valueClientInfoListClientInfo["Status"].asString(); + if(!valueClientInfoListClientInfo["PrivateIp"].isNull()) + clientInfoListObject.privateIp = valueClientInfoListClientInfo["PrivateIp"].asString(); + if(!valueClientInfoListClientInfo["SendBytes"].isNull()) + clientInfoListObject.sendBytes = std::stol(valueClientInfoListClientInfo["SendBytes"].asString()); + if(!valueClientInfoListClientInfo["ConnectedTime"].isNull()) + clientInfoListObject.connectedTime = std::stol(valueClientInfoListClientInfo["ConnectedTime"].asString()); + if(!valueClientInfoListClientInfo["CommonName"].isNull()) + clientInfoListObject.commonName = valueClientInfoListClientInfo["CommonName"].asString(); + if(!valueClientInfoListClientInfo["Ip"].isNull()) + clientInfoListObject.ip = valueClientInfoListClientInfo["Ip"].asString(); + if(!valueClientInfoListClientInfo["ReceiveBytes"].isNull()) + clientInfoListObject.receiveBytes = std::stol(valueClientInfoListClientInfo["ReceiveBytes"].asString()); + if(!valueClientInfoListClientInfo["Port"].isNull()) + clientInfoListObject.port = valueClientInfoListClientInfo["Port"].asString(); + clientInfoList_.push_back(clientInfoListObject); + } + if(!value["VpnGatewayId"].isNull()) + vpnGatewayId_ = value["VpnGatewayId"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +int DescribeSslVpnClientsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeSslVpnClientsResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeSslVpnClientsResult::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +int DescribeSslVpnClientsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeSslVpnClientsResult::getClientInfoList()const +{ + return clientInfoList_; +} + +std::string DescribeSslVpnClientsResult::getRegionId()const +{ + return regionId_; +} + diff --git a/vpc/src/model/DescribeSslVpnServersRequest.cc b/vpc/src/model/DescribeSslVpnServersRequest.cc index 10c022ecb..8f73f1bc3 100644 --- a/vpc/src/model/DescribeSslVpnServersRequest.cc +++ b/vpc/src/model/DescribeSslVpnServersRequest.cc @@ -52,6 +52,15 @@ void DescribeSslVpnServersRequest::setSslVpnServerId(const std::string &sslVpnSe setParameter(std::string("SslVpnServerId"), sslVpnServerId); } +std::string DescribeSslVpnServersRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeSslVpnServersRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeSslVpnServersRequest::getRegionId() const { return regionId_; } diff --git a/vpc/src/model/DescribeSslVpnServersResult.cc b/vpc/src/model/DescribeSslVpnServersResult.cc index 23a0f49ec..8b76b43f5 100644 --- a/vpc/src/model/DescribeSslVpnServersResult.cc +++ b/vpc/src/model/DescribeSslVpnServersResult.cc @@ -77,6 +77,12 @@ void DescribeSslVpnServersResult::parse(const std::string &payload) sslVpnServersObject.clientIpPool = valueSslVpnServersSslVpnServer["ClientIpPool"].asString(); if(!valueSslVpnServersSslVpnServer["Proto"].isNull()) sslVpnServersObject.proto = valueSslVpnServersSslVpnServer["Proto"].asString(); + if(!valueSslVpnServersSslVpnServer["ResourceGroupId"].isNull()) + sslVpnServersObject.resourceGroupId = valueSslVpnServersSslVpnServer["ResourceGroupId"].asString(); + if(!valueSslVpnServersSslVpnServer["IDaaSApplicationId"].isNull()) + sslVpnServersObject.iDaaSApplicationId = valueSslVpnServersSslVpnServer["IDaaSApplicationId"].asString(); + if(!valueSslVpnServersSslVpnServer["IDaaSInstanceVersion"].isNull()) + sslVpnServersObject.iDaaSInstanceVersion = valueSslVpnServersSslVpnServer["IDaaSInstanceVersion"].asString(); sslVpnServers_.push_back(sslVpnServersObject); } if(!value["PageSize"].isNull()) diff --git a/vpc/src/model/DescribeVSwitchAttributesResult.cc b/vpc/src/model/DescribeVSwitchAttributesResult.cc index f8e363263..42ed8b3ba 100644 --- a/vpc/src/model/DescribeVSwitchAttributesResult.cc +++ b/vpc/src/model/DescribeVSwitchAttributesResult.cc @@ -94,6 +94,8 @@ void DescribeVSwitchAttributesResult::parse(const std::string &payload) vSwitchName_ = value["VSwitchName"].asString(); if(!value["ShareType"].isNull()) shareType_ = value["ShareType"].asString(); + if(!value["EnabledIpv6"].isNull()) + enabledIpv6_ = value["EnabledIpv6"].asString() == "true"; } @@ -167,6 +169,11 @@ std::string DescribeVSwitchAttributesResult::getVSwitchName()const return vSwitchName_; } +bool DescribeVSwitchAttributesResult::getEnabledIpv6()const +{ + return enabledIpv6_; +} + std::string DescribeVSwitchAttributesResult::getIpv6CidrBlock()const { return ipv6CidrBlock_; diff --git a/vpc/src/model/DescribeVSwitchesRequest.cc b/vpc/src/model/DescribeVSwitchesRequest.cc index 2ffad32cb..5860d854a 100644 --- a/vpc/src/model/DescribeVSwitchesRequest.cc +++ b/vpc/src/model/DescribeVSwitchesRequest.cc @@ -34,6 +34,15 @@ void DescribeVSwitchesRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +bool DescribeVSwitchesRequest::getEnableIpv6() const { + return enableIpv6_; +} + +void DescribeVSwitchesRequest::setEnableIpv6(bool enableIpv6) { + enableIpv6_ = enableIpv6; + setParameter(std::string("EnableIpv6"), enableIpv6 ? "true" : "false"); +} + int DescribeVSwitchesRequest::getPageNumber() const { return pageNumber_; } diff --git a/vpc/src/model/DescribeVSwitchesResult.cc b/vpc/src/model/DescribeVSwitchesResult.cc index f79797b7e..16c5b7736 100644 --- a/vpc/src/model/DescribeVSwitchesResult.cc +++ b/vpc/src/model/DescribeVSwitchesResult.cc @@ -73,6 +73,8 @@ void DescribeVSwitchesResult::parse(const std::string &payload) vSwitchesObject.vSwitchName = valueVSwitchesVSwitch["VSwitchName"].asString(); if(!valueVSwitchesVSwitch["ShareType"].isNull()) vSwitchesObject.shareType = valueVSwitchesVSwitch["ShareType"].asString(); + if(!valueVSwitchesVSwitch["EnabledIpv6"].isNull()) + vSwitchesObject.enabledIpv6 = valueVSwitchesVSwitch["EnabledIpv6"].asString() == "true"; auto allTagsNode = valueVSwitchesVSwitch["Tags"]["Tag"]; for (auto valueVSwitchesVSwitchTagsTag : allTagsNode) { diff --git a/vpc/src/model/DescribeVcoRouteEntriesResult.cc b/vpc/src/model/DescribeVcoRouteEntriesResult.cc index 1d93b564c..9289c6f27 100644 --- a/vpc/src/model/DescribeVcoRouteEntriesResult.cc +++ b/vpc/src/model/DescribeVcoRouteEntriesResult.cc @@ -63,8 +63,23 @@ void DescribeVcoRouteEntriesResult::parse(const std::string &payload) vcoRouteEntriesObject.community = valueVcoRouteEntriesVcoRouteEntrie["Community"].asString(); if(!valueVcoRouteEntriesVcoRouteEntrie["Source"].isNull()) vcoRouteEntriesObject.source = valueVcoRouteEntriesVcoRouteEntrie["Source"].asString(); + auto allNextHopTunnelIdList = value["NextHopTunnelIdList"]["NextHopTunnelId"]; + for (auto value : allNextHopTunnelIdList) + vcoRouteEntriesObject.nextHopTunnelIdList.push_back(value.asString()); vcoRouteEntries_.push_back(vcoRouteEntriesObject); } + auto allVpnRouteCountsNode = value["VpnRouteCounts"]["VpnRouteCount"]; + for (auto valueVpnRouteCountsVpnRouteCount : allVpnRouteCountsNode) + { + VpnRouteCount vpnRouteCountsObject; + if(!valueVpnRouteCountsVpnRouteCount["RouteEntryType"].isNull()) + vpnRouteCountsObject.routeEntryType = valueVpnRouteCountsVpnRouteCount["RouteEntryType"].asString(); + if(!valueVpnRouteCountsVpnRouteCount["RouteCount"].isNull()) + vpnRouteCountsObject.routeCount = std::stoi(valueVpnRouteCountsVpnRouteCount["RouteCount"].asString()); + if(!valueVpnRouteCountsVpnRouteCount["Source"].isNull()) + vpnRouteCountsObject.source = valueVpnRouteCountsVpnRouteCount["Source"].asString(); + vpnRouteCounts_.push_back(vpnRouteCountsObject); + } if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["PageNumber"].isNull()) @@ -94,3 +109,8 @@ std::vector DescribeVcoRouteEntri return vcoRouteEntries_; } +std::vector DescribeVcoRouteEntriesResult::getVpnRouteCounts()const +{ + return vpnRouteCounts_; +} + diff --git a/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc b/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc index 901c3af34..d3000078b 100644 --- a/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc +++ b/vpc/src/model/DescribeVirtualBorderRoutersRequest.cc @@ -43,6 +43,15 @@ void DescribeVirtualBorderRoutersRequest::setPageNumber(int pageNumber) { setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } +std::string DescribeVirtualBorderRoutersRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeVirtualBorderRoutersRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeVirtualBorderRoutersRequest::getRegionId() const { return regionId_; } @@ -88,6 +97,20 @@ void DescribeVirtualBorderRoutersRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::vector DescribeVirtualBorderRoutersRequest::getTags() const { + return tags_; +} + +void DescribeVirtualBorderRoutersRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Value", tagsObj.value); + setParameter(tagsObjStr + ".Key", tagsObj.key); + } +} + std::vector DescribeVirtualBorderRoutersRequest::getFilter() const { return filter_; } diff --git a/vpc/src/model/DescribeVirtualBorderRoutersResult.cc b/vpc/src/model/DescribeVirtualBorderRoutersResult.cc index f1960afe2..c557d32ca 100644 --- a/vpc/src/model/DescribeVirtualBorderRoutersResult.cc +++ b/vpc/src/model/DescribeVirtualBorderRoutersResult.cc @@ -109,6 +109,16 @@ void DescribeVirtualBorderRoutersResult::parse(const std::string &payload) virtualBorderRouterSetObject.physicalConnectionId = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionId"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Bandwidth"].isNull()) virtualBorderRouterSetObject.bandwidth = std::stoi(valueVirtualBorderRouterSetVirtualBorderRouterType["Bandwidth"].asString()); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["ResourceGroupId"].isNull()) + virtualBorderRouterSetObject.resourceGroupId = valueVirtualBorderRouterSetVirtualBorderRouterType["ResourceGroupId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["EcrId"].isNull()) + virtualBorderRouterSetObject.ecrId = valueVirtualBorderRouterSetVirtualBorderRouterType["EcrId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["SitelinkEnable"].isNull()) + virtualBorderRouterSetObject.sitelinkEnable = valueVirtualBorderRouterSetVirtualBorderRouterType["SitelinkEnable"].asString() == "true"; + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["EcrAttatchStatus"].isNull()) + virtualBorderRouterSetObject.ecrAttatchStatus = valueVirtualBorderRouterSetVirtualBorderRouterType["EcrAttatchStatus"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["EcrOwnerId"].isNull()) + virtualBorderRouterSetObject.ecrOwnerId = valueVirtualBorderRouterSetVirtualBorderRouterType["EcrOwnerId"].asString(); auto allAssociatedPhysicalConnectionsNode = valueVirtualBorderRouterSetVirtualBorderRouterType["AssociatedPhysicalConnections"]["AssociatedPhysicalConnection"]; for (auto valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedPhysicalConnectionsAssociatedPhysicalConnection : allAssociatedPhysicalConnectionsNode) { @@ -157,6 +167,16 @@ void DescribeVirtualBorderRoutersResult::parse(const std::string &payload) associatedCensObject.cenStatus = valueVirtualBorderRouterSetVirtualBorderRouterTypeAssociatedCensAssociatedCen["CenStatus"].asString(); virtualBorderRouterSetObject.associatedCens.push_back(associatedCensObject); } + auto allTagsNode = valueVirtualBorderRouterSetVirtualBorderRouterType["Tags"]["TagsItem"]; + for (auto valueVirtualBorderRouterSetVirtualBorderRouterTypeTagsTagsItem : allTagsNode) + { + VirtualBorderRouterType::TagsItem tagsObject; + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeTagsTagsItem["Key"].isNull()) + tagsObject.key = valueVirtualBorderRouterSetVirtualBorderRouterTypeTagsTagsItem["Key"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterTypeTagsTagsItem["Value"].isNull()) + tagsObject.value = valueVirtualBorderRouterSetVirtualBorderRouterTypeTagsTagsItem["Value"].asString(); + virtualBorderRouterSetObject.tags.push_back(tagsObject); + } virtualBorderRouterSet_.push_back(virtualBorderRouterSetObject); } if(!value["PageNumber"].isNull()) diff --git a/vpc/src/model/DescribeVpcAttributeResult.cc b/vpc/src/model/DescribeVpcAttributeResult.cc index 88c46da4d..f2be728a8 100644 --- a/vpc/src/model/DescribeVpcAttributeResult.cc +++ b/vpc/src/model/DescribeVpcAttributeResult.cc @@ -71,6 +71,32 @@ void DescribeVpcAttributeResult::parse(const std::string &payload) ipv6CidrBlocksObject.ipv6CidrBlock = valueIpv6CidrBlocksIpv6CidrBlock["Ipv6CidrBlock"].asString(); ipv6CidrBlocks_.push_back(ipv6CidrBlocksObject); } + auto allTagsNode = value["Tags"]["Tag"]; + for (auto valueTagsTag : allTagsNode) + { + Tag tagsObject; + if(!valueTagsTag["Key"].isNull()) + tagsObject.key = valueTagsTag["Key"].asString(); + if(!valueTagsTag["Value"].isNull()) + tagsObject.value = valueTagsTag["Value"].asString(); + tags_.push_back(tagsObject); + } + auto allAssociatedPropagationSourcesNode = value["AssociatedPropagationSources"]["AssociatedPropagationSourcesItem"]; + for (auto valueAssociatedPropagationSourcesAssociatedPropagationSourcesItem : allAssociatedPropagationSourcesNode) + { + AssociatedPropagationSourcesItem associatedPropagationSourcesObject; + if(!valueAssociatedPropagationSourcesAssociatedPropagationSourcesItem["SourceType"].isNull()) + associatedPropagationSourcesObject.sourceType = valueAssociatedPropagationSourcesAssociatedPropagationSourcesItem["SourceType"].asString(); + if(!valueAssociatedPropagationSourcesAssociatedPropagationSourcesItem["SourceOwnerId"].isNull()) + associatedPropagationSourcesObject.sourceOwnerId = std::stol(valueAssociatedPropagationSourcesAssociatedPropagationSourcesItem["SourceOwnerId"].asString()); + if(!valueAssociatedPropagationSourcesAssociatedPropagationSourcesItem["SourceInstanceId"].isNull()) + associatedPropagationSourcesObject.sourceInstanceId = valueAssociatedPropagationSourcesAssociatedPropagationSourcesItem["SourceInstanceId"].asString(); + if(!valueAssociatedPropagationSourcesAssociatedPropagationSourcesItem["Status"].isNull()) + associatedPropagationSourcesObject.status = valueAssociatedPropagationSourcesAssociatedPropagationSourcesItem["Status"].asString(); + if(!valueAssociatedPropagationSourcesAssociatedPropagationSourcesItem["RoutePropagated"].isNull()) + associatedPropagationSourcesObject.routePropagated = valueAssociatedPropagationSourcesAssociatedPropagationSourcesItem["RoutePropagated"].asString() == "true"; + associatedPropagationSources_.push_back(associatedPropagationSourcesObject); + } auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; for (const auto &item : allVSwitchIds) vSwitchIds_.push_back(item.asString()); @@ -116,22 +142,16 @@ void DescribeVpcAttributeResult::parse(const std::string &payload) supportIpv4Gateway_ = value["SupportIpv4Gateway"].asString() == "true"; if(!value["Ipv4GatewayId"].isNull()) ipv4GatewayId_ = value["Ipv4GatewayId"].asString(); + if(!value["EnabledIpv6"].isNull()) + enabledIpv6_ = value["EnabledIpv6"].asString() == "true"; + if(!value["DnsHostnameStatus"].isNull()) + dnsHostnameStatus_ = value["DnsHostnameStatus"].asString(); } -std::string DescribeVpcAttributeResult::getStatus()const +std::vector DescribeVpcAttributeResult::getAssociatedPropagationSources()const { - return status_; -} - -bool DescribeVpcAttributeResult::getIsDefault()const -{ - return isDefault_; -} - -std::string DescribeVpcAttributeResult::getDhcpOptionsSetStatus()const -{ - return dhcpOptionsSetStatus_; + return associatedPropagationSources_; } std::string DescribeVpcAttributeResult::getDescription()const @@ -149,21 +169,6 @@ std::string DescribeVpcAttributeResult::getResourceGroupId()const return resourceGroupId_; } -bool DescribeVpcAttributeResult::getSupportIpv4Gateway()const -{ - return supportIpv4Gateway_; -} - -std::string DescribeVpcAttributeResult::getIpv4GatewayId()const -{ - return ipv4GatewayId_; -} - -std::vector DescribeVpcAttributeResult::getVSwitchIds()const -{ - return vSwitchIds_; -} - std::vector DescribeVpcAttributeResult::getSecondaryCidrBlocks()const { return secondaryCidrBlocks_; @@ -184,6 +189,11 @@ std::string DescribeVpcAttributeResult::getNetworkAclNum()const return networkAclNum_; } +std::string DescribeVpcAttributeResult::getDnsHostnameStatus()const +{ + return dnsHostnameStatus_; +} + std::string DescribeVpcAttributeResult::getVRouterId()const { return vRouterId_; @@ -194,11 +204,6 @@ std::string DescribeVpcAttributeResult::getDhcpOptionsSetId()const return dhcpOptionsSetId_; } -std::string DescribeVpcAttributeResult::getVpcId()const -{ - return vpcId_; -} - long DescribeVpcAttributeResult::getOwnerId()const { return ownerId_; @@ -209,6 +214,56 @@ std::vector DescribeVpcAttributeResul return associatedCens_; } +bool DescribeVpcAttributeResult::getEnabledIpv6()const +{ + return enabledIpv6_; +} + +std::vector DescribeVpcAttributeResult::getCloudResources()const +{ + return cloudResources_; +} + +std::vector DescribeVpcAttributeResult::getTags()const +{ + return tags_; +} + +std::string DescribeVpcAttributeResult::getStatus()const +{ + return status_; +} + +bool DescribeVpcAttributeResult::getIsDefault()const +{ + return isDefault_; +} + +std::string DescribeVpcAttributeResult::getDhcpOptionsSetStatus()const +{ + return dhcpOptionsSetStatus_; +} + +bool DescribeVpcAttributeResult::getSupportIpv4Gateway()const +{ + return supportIpv4Gateway_; +} + +std::string DescribeVpcAttributeResult::getIpv4GatewayId()const +{ + return ipv4GatewayId_; +} + +std::vector DescribeVpcAttributeResult::getVSwitchIds()const +{ + return vSwitchIds_; +} + +std::string DescribeVpcAttributeResult::getVpcId()const +{ + return vpcId_; +} + std::string DescribeVpcAttributeResult::getCreationTime()const { return creationTime_; @@ -234,8 +289,3 @@ std::string DescribeVpcAttributeResult::getIpv6CidrBlock()const return ipv6CidrBlock_; } -std::vector DescribeVpcAttributeResult::getCloudResources()const -{ - return cloudResources_; -} - diff --git a/vpc/src/model/DescribeVpcsRequest.cc b/vpc/src/model/DescribeVpcsRequest.cc index 2559f3ba5..d2bc77614 100644 --- a/vpc/src/model/DescribeVpcsRequest.cc +++ b/vpc/src/model/DescribeVpcsRequest.cc @@ -43,6 +43,15 @@ void DescribeVpcsRequest::setVpcOwnerId(long vpcOwnerId) { setParameter(std::string("VpcOwnerId"), std::to_string(vpcOwnerId)); } +bool DescribeVpcsRequest::getEnableIpv6() const { + return enableIpv6_; +} + +void DescribeVpcsRequest::setEnableIpv6(bool enableIpv6) { + enableIpv6_ = enableIpv6; + setParameter(std::string("EnableIpv6"), enableIpv6 ? "true" : "false"); +} + int DescribeVpcsRequest::getPageNumber() const { return pageNumber_; } diff --git a/vpc/src/model/DescribeVpcsResult.cc b/vpc/src/model/DescribeVpcsResult.cc index c14bd4e0c..50ec209b5 100644 --- a/vpc/src/model/DescribeVpcsResult.cc +++ b/vpc/src/model/DescribeVpcsResult.cc @@ -79,6 +79,10 @@ void DescribeVpcsResult::parse(const std::string &payload) vpcsObject.ipv6CidrBlock = valueVpcsVpc["Ipv6CidrBlock"].asString(); if(!valueVpcsVpc["CenStatus"].isNull()) vpcsObject.cenStatus = valueVpcsVpc["CenStatus"].asString(); + if(!valueVpcsVpc["EnabledIpv6"].isNull()) + vpcsObject.enabledIpv6 = valueVpcsVpc["EnabledIpv6"].asString() == "true"; + if(!valueVpcsVpc["DnsHostnameStatus"].isNull()) + vpcsObject.dnsHostnameStatus = valueVpcsVpc["DnsHostnameStatus"].asString(); auto allTagsNode = valueVpcsVpc["Tags"]["Tag"]; for (auto valueVpcsVpcTagsTag : allTagsNode) { diff --git a/vpc/src/model/DescribeVpnAttachmentsResult.cc b/vpc/src/model/DescribeVpnAttachmentsResult.cc index 348df1bbe..4a660dfb3 100644 --- a/vpc/src/model/DescribeVpnAttachmentsResult.cc +++ b/vpc/src/model/DescribeVpnAttachmentsResult.cc @@ -57,6 +57,8 @@ void DescribeVpnAttachmentsResult::parse(const std::string &payload) vpnAttachmentsObject.transitRouterName = valueVpnAttachmentsvpnAttachment["TransitRouterName"].asString(); if(!valueVpnAttachmentsvpnAttachment["CrossAccountAuthorized"].isNull()) vpnAttachmentsObject.crossAccountAuthorized = valueVpnAttachmentsvpnAttachment["CrossAccountAuthorized"].asString() == "true"; + if(!valueVpnAttachmentsvpnAttachment["Tag"].isNull()) + vpnAttachmentsObject.tag = valueVpnAttachmentsvpnAttachment["Tag"].asString(); auto allTagsNode = valueVpnAttachmentsvpnAttachment["Tags"]["Tag"]; for (auto valueVpnAttachmentsvpnAttachmentTagsTag : allTagsNode) { diff --git a/vpc/src/model/DescribeVpnConnectionLogsRequest.cc b/vpc/src/model/DescribeVpnConnectionLogsRequest.cc index b3652116d..5a47afbc7 100644 --- a/vpc/src/model/DescribeVpnConnectionLogsRequest.cc +++ b/vpc/src/model/DescribeVpnConnectionLogsRequest.cc @@ -115,6 +115,15 @@ void DescribeVpnConnectionLogsRequest::setVpnConnectionId(const std::string &vpn setParameter(std::string("VpnConnectionId"), vpnConnectionId); } +std::string DescribeVpnConnectionLogsRequest::getTunnelId() const { + return tunnelId_; +} + +void DescribeVpnConnectionLogsRequest::setTunnelId(const std::string &tunnelId) { + tunnelId_ = tunnelId; + setParameter(std::string("TunnelId"), tunnelId); +} + int DescribeVpnConnectionLogsRequest::getTo() const { return to_; } diff --git a/vpc/src/model/DescribeVpnConnectionResult.cc b/vpc/src/model/DescribeVpnConnectionResult.cc index f5b629629..035a0410b 100644 --- a/vpc/src/model/DescribeVpnConnectionResult.cc +++ b/vpc/src/model/DescribeVpnConnectionResult.cc @@ -49,6 +49,75 @@ void DescribeVpnConnectionResult::parse(const std::string &payload) tagsObject.value = valueTagsTag["Value"].asString(); tags_.push_back(tagsObject); } + auto allTunnelOptionsSpecificationNode = value["TunnelOptionsSpecification"]["TunnelOptions"]; + for (auto valueTunnelOptionsSpecificationTunnelOptions : allTunnelOptionsSpecificationNode) + { + TunnelOptions tunnelOptionsSpecificationObject; + if(!valueTunnelOptionsSpecificationTunnelOptions["TunnelId"].isNull()) + tunnelOptionsSpecificationObject.tunnelId = valueTunnelOptionsSpecificationTunnelOptions["TunnelId"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["CustomerGatewayId"].isNull()) + tunnelOptionsSpecificationObject.customerGatewayId = valueTunnelOptionsSpecificationTunnelOptions["CustomerGatewayId"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["EnableDpd"].isNull()) + tunnelOptionsSpecificationObject.enableDpd = valueTunnelOptionsSpecificationTunnelOptions["EnableDpd"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["EnableNatTraversal"].isNull()) + tunnelOptionsSpecificationObject.enableNatTraversal = valueTunnelOptionsSpecificationTunnelOptions["EnableNatTraversal"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["InternetIp"].isNull()) + tunnelOptionsSpecificationObject.internetIp = valueTunnelOptionsSpecificationTunnelOptions["InternetIp"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["RemoteCaCertificate"].isNull()) + tunnelOptionsSpecificationObject.remoteCaCertificate = valueTunnelOptionsSpecificationTunnelOptions["RemoteCaCertificate"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["Role"].isNull()) + tunnelOptionsSpecificationObject.role = valueTunnelOptionsSpecificationTunnelOptions["Role"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["TunnelIndex"].isNull()) + tunnelOptionsSpecificationObject.tunnelIndex = std::stoi(valueTunnelOptionsSpecificationTunnelOptions["TunnelIndex"].asString()); + if(!valueTunnelOptionsSpecificationTunnelOptions["State"].isNull()) + tunnelOptionsSpecificationObject.state = valueTunnelOptionsSpecificationTunnelOptions["State"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["Status"].isNull()) + tunnelOptionsSpecificationObject.status = valueTunnelOptionsSpecificationTunnelOptions["Status"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["ZoneNo"].isNull()) + tunnelOptionsSpecificationObject.zoneNo = valueTunnelOptionsSpecificationTunnelOptions["ZoneNo"].asString(); + auto tunnelBgpConfigNode = value["TunnelBgpConfig"]; + if(!tunnelBgpConfigNode["BgpStatus"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.bgpStatus = tunnelBgpConfigNode["BgpStatus"].asString(); + if(!tunnelBgpConfigNode["LocalAsn"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.localAsn = tunnelBgpConfigNode["LocalAsn"].asString(); + if(!tunnelBgpConfigNode["LocalBgpIp"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.localBgpIp = tunnelBgpConfigNode["LocalBgpIp"].asString(); + if(!tunnelBgpConfigNode["PeerAsn"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.peerAsn = tunnelBgpConfigNode["PeerAsn"].asString(); + if(!tunnelBgpConfigNode["PeerBgpIp"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.peerBgpIp = tunnelBgpConfigNode["PeerBgpIp"].asString(); + if(!tunnelBgpConfigNode["TunnelCidr"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.tunnelCidr = tunnelBgpConfigNode["TunnelCidr"].asString(); + auto tunnelIkeConfigNode = value["TunnelIkeConfig"]; + if(!tunnelIkeConfigNode["IkeAuthAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeAuthAlg = tunnelIkeConfigNode["IkeAuthAlg"].asString(); + if(!tunnelIkeConfigNode["IkeEncAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeEncAlg = tunnelIkeConfigNode["IkeEncAlg"].asString(); + if(!tunnelIkeConfigNode["IkeLifetime"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeLifetime = tunnelIkeConfigNode["IkeLifetime"].asString(); + if(!tunnelIkeConfigNode["IkeMode"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeMode = tunnelIkeConfigNode["IkeMode"].asString(); + if(!tunnelIkeConfigNode["IkePfs"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikePfs = tunnelIkeConfigNode["IkePfs"].asString(); + if(!tunnelIkeConfigNode["IkeVersion"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeVersion = tunnelIkeConfigNode["IkeVersion"].asString(); + if(!tunnelIkeConfigNode["LocalId"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.localId = tunnelIkeConfigNode["LocalId"].asString(); + if(!tunnelIkeConfigNode["Psk"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.psk = tunnelIkeConfigNode["Psk"].asString(); + if(!tunnelIkeConfigNode["RemoteId"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.remoteId = tunnelIkeConfigNode["RemoteId"].asString(); + auto tunnelIpsecConfigNode = value["TunnelIpsecConfig"]; + if(!tunnelIpsecConfigNode["IpsecAuthAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecAuthAlg = tunnelIpsecConfigNode["IpsecAuthAlg"].asString(); + if(!tunnelIpsecConfigNode["IpsecEncAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecEncAlg = tunnelIpsecConfigNode["IpsecEncAlg"].asString(); + if(!tunnelIpsecConfigNode["IpsecLifetime"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecLifetime = tunnelIpsecConfigNode["IpsecLifetime"].asString(); + if(!tunnelIpsecConfigNode["IpsecPfs"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecPfs = tunnelIpsecConfigNode["IpsecPfs"].asString(); + tunnelOptionsSpecification_.push_back(tunnelOptionsSpecificationObject); + } auto ikeConfigNode = value["IkeConfig"]; if(!ikeConfigNode["RemoteId"].isNull()) ikeConfig_.remoteId = ikeConfigNode["RemoteId"].asString(); @@ -153,6 +222,10 @@ void DescribeVpnConnectionResult::parse(const std::string &payload) transitRouterName_ = value["TransitRouterName"].asString(); if(!value["CrossAccountAuthorized"].isNull()) crossAccountAuthorized_ = value["CrossAccountAuthorized"].asString() == "true"; + if(!value["EnableTunnelsBgp"].isNull()) + enableTunnelsBgp_ = value["EnableTunnelsBgp"].asString() == "true"; + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -161,6 +234,16 @@ std::string DescribeVpnConnectionResult::getAttachType()const return attachType_; } +std::string DescribeVpnConnectionResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +bool DescribeVpnConnectionResult::getEnableTunnelsBgp()const +{ + return enableTunnelsBgp_; +} + bool DescribeVpnConnectionResult::getCrossAccountAuthorized()const { return crossAccountAuthorized_; @@ -261,6 +344,11 @@ std::string DescribeVpnConnectionResult::getTransitRouterName()const return transitRouterName_; } +std::vector DescribeVpnConnectionResult::getTunnelOptionsSpecification()const +{ + return tunnelOptionsSpecification_; +} + DescribeVpnConnectionResult::VcoHealthCheck DescribeVpnConnectionResult::getVcoHealthCheck()const { return vcoHealthCheck_; diff --git a/vpc/src/model/DescribeVpnConnectionsRequest.cc b/vpc/src/model/DescribeVpnConnectionsRequest.cc index e8bd83d7a..c6075da1c 100644 --- a/vpc/src/model/DescribeVpnConnectionsRequest.cc +++ b/vpc/src/model/DescribeVpnConnectionsRequest.cc @@ -52,6 +52,15 @@ void DescribeVpnConnectionsRequest::setPageNumber(int pageNumber) { setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } +std::string DescribeVpnConnectionsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeVpnConnectionsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeVpnConnectionsRequest::getRegionId() const { return regionId_; } diff --git a/vpc/src/model/DescribeVpnConnectionsResult.cc b/vpc/src/model/DescribeVpnConnectionsResult.cc index 6309494b4..f7f675c78 100644 --- a/vpc/src/model/DescribeVpnConnectionsResult.cc +++ b/vpc/src/model/DescribeVpnConnectionsResult.cc @@ -85,6 +85,10 @@ void DescribeVpnConnectionsResult::parse(const std::string &payload) vpnConnectionsObject.crossAccountAuthorized = valueVpnConnectionsVpnConnection["CrossAccountAuthorized"].asString() == "true"; if(!valueVpnConnectionsVpnConnection["InternetIp"].isNull()) vpnConnectionsObject.internetIp = valueVpnConnectionsVpnConnection["InternetIp"].asString(); + if(!valueVpnConnectionsVpnConnection["EnableTunnelsBgp"].isNull()) + vpnConnectionsObject.enableTunnelsBgp = valueVpnConnectionsVpnConnection["EnableTunnelsBgp"].asString() == "true"; + if(!valueVpnConnectionsVpnConnection["ResourceGroupId"].isNull()) + vpnConnectionsObject.resourceGroupId = valueVpnConnectionsVpnConnection["ResourceGroupId"].asString(); auto allTagNode = valueVpnConnectionsVpnConnection["Tag"]["TagItem"]; for (auto valueVpnConnectionsVpnConnectionTagTagItem : allTagNode) { @@ -95,6 +99,75 @@ void DescribeVpnConnectionsResult::parse(const std::string &payload) tagObject.value = valueVpnConnectionsVpnConnectionTagTagItem["Value"].asString(); vpnConnectionsObject.tag.push_back(tagObject); } + auto allTunnelOptionsSpecificationNode = valueVpnConnectionsVpnConnection["TunnelOptionsSpecification"]["TunnelOptions"]; + for (auto valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions : allTunnelOptionsSpecificationNode) + { + VpnConnection::TunnelOptions tunnelOptionsSpecificationObject; + if(!valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["TunnelId"].isNull()) + tunnelOptionsSpecificationObject.tunnelId = valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["TunnelId"].asString(); + if(!valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["CustomerGatewayId"].isNull()) + tunnelOptionsSpecificationObject.customerGatewayId = valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["CustomerGatewayId"].asString(); + if(!valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["EnableDpd"].isNull()) + tunnelOptionsSpecificationObject.enableDpd = valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["EnableDpd"].asString(); + if(!valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["EnableNatTraversal"].isNull()) + tunnelOptionsSpecificationObject.enableNatTraversal = valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["EnableNatTraversal"].asString(); + if(!valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["InternetIp"].isNull()) + tunnelOptionsSpecificationObject.internetIp = valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["InternetIp"].asString(); + if(!valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["RemoteCaCertificate"].isNull()) + tunnelOptionsSpecificationObject.remoteCaCertificate = valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["RemoteCaCertificate"].asString(); + if(!valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["Role"].isNull()) + tunnelOptionsSpecificationObject.role = valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["Role"].asString(); + if(!valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["TunnelIndex"].isNull()) + tunnelOptionsSpecificationObject.tunnelIndex = std::stoi(valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["TunnelIndex"].asString()); + if(!valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["State"].isNull()) + tunnelOptionsSpecificationObject.state = valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["State"].asString(); + if(!valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["Status"].isNull()) + tunnelOptionsSpecificationObject.status = valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["Status"].asString(); + if(!valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["ZoneNo"].isNull()) + tunnelOptionsSpecificationObject.zoneNo = valueVpnConnectionsVpnConnectionTunnelOptionsSpecificationTunnelOptions["ZoneNo"].asString(); + auto tunnelBgpConfigNode = value["TunnelBgpConfig"]; + if(!tunnelBgpConfigNode["BgpStatus"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.bgpStatus = tunnelBgpConfigNode["BgpStatus"].asString(); + if(!tunnelBgpConfigNode["LocalAsn"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.localAsn = tunnelBgpConfigNode["LocalAsn"].asString(); + if(!tunnelBgpConfigNode["LocalBgpIp"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.localBgpIp = tunnelBgpConfigNode["LocalBgpIp"].asString(); + if(!tunnelBgpConfigNode["PeerAsn"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.peerAsn = tunnelBgpConfigNode["PeerAsn"].asString(); + if(!tunnelBgpConfigNode["PeerBgpIp"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.peerBgpIp = tunnelBgpConfigNode["PeerBgpIp"].asString(); + if(!tunnelBgpConfigNode["TunnelCidr"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.tunnelCidr = tunnelBgpConfigNode["TunnelCidr"].asString(); + auto tunnelIkeConfigNode = value["TunnelIkeConfig"]; + if(!tunnelIkeConfigNode["IkeAuthAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeAuthAlg = tunnelIkeConfigNode["IkeAuthAlg"].asString(); + if(!tunnelIkeConfigNode["IkeEncAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeEncAlg = tunnelIkeConfigNode["IkeEncAlg"].asString(); + if(!tunnelIkeConfigNode["IkeLifetime"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeLifetime = tunnelIkeConfigNode["IkeLifetime"].asString(); + if(!tunnelIkeConfigNode["IkeMode"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeMode = tunnelIkeConfigNode["IkeMode"].asString(); + if(!tunnelIkeConfigNode["IkePfs"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikePfs = tunnelIkeConfigNode["IkePfs"].asString(); + if(!tunnelIkeConfigNode["IkeVersion"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeVersion = tunnelIkeConfigNode["IkeVersion"].asString(); + if(!tunnelIkeConfigNode["LocalId"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.localId = tunnelIkeConfigNode["LocalId"].asString(); + if(!tunnelIkeConfigNode["Psk"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.psk = tunnelIkeConfigNode["Psk"].asString(); + if(!tunnelIkeConfigNode["RemoteId"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.remoteId = tunnelIkeConfigNode["RemoteId"].asString(); + auto tunnelIpsecConfigNode = value["TunnelIpsecConfig"]; + if(!tunnelIpsecConfigNode["IpsecAuthAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecAuthAlg = tunnelIpsecConfigNode["IpsecAuthAlg"].asString(); + if(!tunnelIpsecConfigNode["IpsecEncAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecEncAlg = tunnelIpsecConfigNode["IpsecEncAlg"].asString(); + if(!tunnelIpsecConfigNode["IpsecLifetime"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecLifetime = tunnelIpsecConfigNode["IpsecLifetime"].asString(); + if(!tunnelIpsecConfigNode["IpsecPfs"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecPfs = tunnelIpsecConfigNode["IpsecPfs"].asString(); + vpnConnectionsObject.tunnelOptionsSpecification.push_back(tunnelOptionsSpecificationObject); + } auto ikeConfigNode = value["IkeConfig"]; if(!ikeConfigNode["RemoteId"].isNull()) vpnConnectionsObject.ikeConfig.remoteId = ikeConfigNode["RemoteId"].asString(); diff --git a/vpc/src/model/DescribeVpnGatewayAvailableZonesRequest.cc b/vpc/src/model/DescribeVpnGatewayAvailableZonesRequest.cc new file mode 100644 index 000000000..0f86a96e7 --- /dev/null +++ b/vpc/src/model/DescribeVpnGatewayAvailableZonesRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::DescribeVpnGatewayAvailableZonesRequest; + +DescribeVpnGatewayAvailableZonesRequest::DescribeVpnGatewayAvailableZonesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DescribeVpnGatewayAvailableZones") { + setMethod(HttpRequest::Method::Get); +} + +DescribeVpnGatewayAvailableZonesRequest::~DescribeVpnGatewayAvailableZonesRequest() {} + +long DescribeVpnGatewayAvailableZonesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeVpnGatewayAvailableZonesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeVpnGatewayAvailableZonesRequest::getSpec() const { + return spec_; +} + +void DescribeVpnGatewayAvailableZonesRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); +} + +std::string DescribeVpnGatewayAvailableZonesRequest::getRegionId() const { + return regionId_; +} + +void DescribeVpnGatewayAvailableZonesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeVpnGatewayAvailableZonesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeVpnGatewayAvailableZonesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeVpnGatewayAvailableZonesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeVpnGatewayAvailableZonesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeVpnGatewayAvailableZonesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVpnGatewayAvailableZonesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeVpnGatewayAvailableZonesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DescribeVpnGatewayAvailableZonesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/vpc/src/model/DescribeVpnGatewayAvailableZonesResult.cc b/vpc/src/model/DescribeVpnGatewayAvailableZonesResult.cc new file mode 100644 index 000000000..cd705d297 --- /dev/null +++ b/vpc/src/model/DescribeVpnGatewayAvailableZonesResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DescribeVpnGatewayAvailableZonesResult::DescribeVpnGatewayAvailableZonesResult() : + ServiceResult() +{} + +DescribeVpnGatewayAvailableZonesResult::DescribeVpnGatewayAvailableZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpnGatewayAvailableZonesResult::~DescribeVpnGatewayAvailableZonesResult() +{} + +void DescribeVpnGatewayAvailableZonesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAvailableZoneIdListNode = value["AvailableZoneIdList"]["AvailableZoneId"]; + for (auto valueAvailableZoneIdListAvailableZoneId : allAvailableZoneIdListNode) + { + AvailableZoneId availableZoneIdListObject; + if(!valueAvailableZoneIdListAvailableZoneId["ZoneId"].isNull()) + availableZoneIdListObject.zoneId = valueAvailableZoneIdListAvailableZoneId["ZoneId"].asString(); + if(!valueAvailableZoneIdListAvailableZoneId["ZoneName"].isNull()) + availableZoneIdListObject.zoneName = valueAvailableZoneIdListAvailableZoneId["ZoneName"].asString(); + availableZoneIdList_.push_back(availableZoneIdListObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::vector DescribeVpnGatewayAvailableZonesResult::getAvailableZoneIdList()const +{ + return availableZoneIdList_; +} + +std::string DescribeVpnGatewayAvailableZonesResult::getRegionId()const +{ + return regionId_; +} + diff --git a/vpc/src/model/DescribeVpnGatewayResult.cc b/vpc/src/model/DescribeVpnGatewayResult.cc index be1fa75a1..ed9d98e6b 100644 --- a/vpc/src/model/DescribeVpnGatewayResult.cc +++ b/vpc/src/model/DescribeVpnGatewayResult.cc @@ -64,6 +64,9 @@ void DescribeVpnGatewayResult::parse(const std::string &payload) reservationData_.reservationMaxConnections = std::stoi(reservationDataNode["ReservationMaxConnections"].asString()); if(!reservationDataNode["ReservationEndTime"].isNull()) reservationData_.reservationEndTime = reservationDataNode["ReservationEndTime"].asString(); + auto allEniInstanceIds = value["EniInstanceIds"]["EniInstanceId"]; + for (const auto &item : allEniInstanceIds) + eniInstanceIds_.push_back(item.asString()); if(!value["VpnType"].isNull()) vpnType_ = value["VpnType"].asString(); if(!value["Status"].isNull()) @@ -104,14 +107,17 @@ void DescribeVpnGatewayResult::parse(const std::string &payload) name_ = value["Name"].asString(); if(!value["NetworkType"].isNull()) networkType_ = value["NetworkType"].asString(); + if(!value["DisasterRecoveryInternetIp"].isNull()) + disasterRecoveryInternetIp_ = value["DisasterRecoveryInternetIp"].asString(); + if(!value["DisasterRecoveryVSwitchId"].isNull()) + disasterRecoveryVSwitchId_ = value["DisasterRecoveryVSwitchId"].asString(); + if(!value["SslVpnInternetIp"].isNull()) + sslVpnInternetIp_ = value["SslVpnInternetIp"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } -std::string DescribeVpnGatewayResult::getStatus()const -{ - return status_; -} - std::string DescribeVpnGatewayResult::getIpsecVpn()const { return ipsecVpn_; @@ -132,9 +138,9 @@ std::string DescribeVpnGatewayResult::getDescription()const return description_; } -bool DescribeVpnGatewayResult::getEnableBgp()const +std::string DescribeVpnGatewayResult::getDisasterRecoveryVSwitchId()const { - return enableBgp_; + return disasterRecoveryVSwitchId_; } long DescribeVpnGatewayResult::getEndTime()const @@ -142,14 +148,9 @@ long DescribeVpnGatewayResult::getEndTime()const return endTime_; } -long DescribeVpnGatewayResult::getCreateTime()const +std::string DescribeVpnGatewayResult::getResourceGroupId()const { - return createTime_; -} - -std::string DescribeVpnGatewayResult::getVSwitchId()const -{ - return vSwitchId_; + return resourceGroupId_; } bool DescribeVpnGatewayResult::getAutoPropagate()const @@ -167,9 +168,9 @@ std::string DescribeVpnGatewayResult::getName()const return name_; } -std::string DescribeVpnGatewayResult::getVpcId()const +std::vector DescribeVpnGatewayResult::getEniInstanceIds()const { - return vpcId_; + return eniInstanceIds_; } std::string DescribeVpnGatewayResult::getInternetIp()const @@ -177,14 +178,9 @@ std::string DescribeVpnGatewayResult::getInternetIp()const return internetIp_; } -std::string DescribeVpnGatewayResult::getVpnGatewayId()const +std::string DescribeVpnGatewayResult::getDisasterRecoveryInternetIp()const { - return vpnGatewayId_; -} - -std::string DescribeVpnGatewayResult::getChargeType()const -{ - return chargeType_; + return disasterRecoveryInternetIp_; } std::string DescribeVpnGatewayResult::getNetworkType()const @@ -192,16 +188,6 @@ std::string DescribeVpnGatewayResult::getNetworkType()const return networkType_; } -std::string DescribeVpnGatewayResult::getTag()const -{ - return tag_; -} - -std::string DescribeVpnGatewayResult::getSpec()const -{ - return spec_; -} - long DescribeVpnGatewayResult::getSslMaxConnections()const { return sslMaxConnections_; @@ -217,3 +203,53 @@ DescribeVpnGatewayResult::ReservationData DescribeVpnGatewayResult::getReservati return reservationData_; } +std::string DescribeVpnGatewayResult::getStatus()const +{ + return status_; +} + +bool DescribeVpnGatewayResult::getEnableBgp()const +{ + return enableBgp_; +} + +long DescribeVpnGatewayResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeVpnGatewayResult::getVSwitchId()const +{ + return vSwitchId_; +} + +std::string DescribeVpnGatewayResult::getVpcId()const +{ + return vpcId_; +} + +std::string DescribeVpnGatewayResult::getVpnGatewayId()const +{ + return vpnGatewayId_; +} + +std::string DescribeVpnGatewayResult::getChargeType()const +{ + return chargeType_; +} + +std::string DescribeVpnGatewayResult::getSslVpnInternetIp()const +{ + return sslVpnInternetIp_; +} + +std::string DescribeVpnGatewayResult::getTag()const +{ + return tag_; +} + +std::string DescribeVpnGatewayResult::getSpec()const +{ + return spec_; +} + diff --git a/vpc/src/model/DescribeVpnGatewaysRequest.cc b/vpc/src/model/DescribeVpnGatewaysRequest.cc index 3453c8bb8..7244619a3 100644 --- a/vpc/src/model/DescribeVpnGatewaysRequest.cc +++ b/vpc/src/model/DescribeVpnGatewaysRequest.cc @@ -52,6 +52,15 @@ void DescribeVpnGatewaysRequest::setPageNumber(int pageNumber) { setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } +std::string DescribeVpnGatewaysRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeVpnGatewaysRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeVpnGatewaysRequest::getRegionId() const { return regionId_; } diff --git a/vpc/src/model/DescribeVpnGatewaysResult.cc b/vpc/src/model/DescribeVpnGatewaysResult.cc index 4399515ef..cc9e00444 100644 --- a/vpc/src/model/DescribeVpnGatewaysResult.cc +++ b/vpc/src/model/DescribeVpnGatewaysResult.cc @@ -83,6 +83,14 @@ void DescribeVpnGatewaysResult::parse(const std::string &payload) vpnGatewaysObject.name = valueVpnGatewaysVpnGateway["Name"].asString(); if(!valueVpnGatewaysVpnGateway["NetworkType"].isNull()) vpnGatewaysObject.networkType = valueVpnGatewaysVpnGateway["NetworkType"].asString(); + if(!valueVpnGatewaysVpnGateway["DisasterRecoveryInternetIp"].isNull()) + vpnGatewaysObject.disasterRecoveryInternetIp = valueVpnGatewaysVpnGateway["DisasterRecoveryInternetIp"].asString(); + if(!valueVpnGatewaysVpnGateway["DisasterRecoveryVSwitchId"].isNull()) + vpnGatewaysObject.disasterRecoveryVSwitchId = valueVpnGatewaysVpnGateway["DisasterRecoveryVSwitchId"].asString(); + if(!valueVpnGatewaysVpnGateway["SslVpnInternetIp"].isNull()) + vpnGatewaysObject.sslVpnInternetIp = valueVpnGatewaysVpnGateway["SslVpnInternetIp"].asString(); + if(!valueVpnGatewaysVpnGateway["ResourceGroupId"].isNull()) + vpnGatewaysObject.resourceGroupId = valueVpnGatewaysVpnGateway["ResourceGroupId"].asString(); auto allTagsNode = valueVpnGatewaysVpnGateway["Tags"]["Tag"]; for (auto valueVpnGatewaysVpnGatewayTagsTag : allTagsNode) { @@ -108,6 +116,9 @@ void DescribeVpnGatewaysResult::parse(const std::string &payload) vpnGatewaysObject.reservationData.reservationMaxConnections = std::stoi(reservationDataNode["ReservationMaxConnections"].asString()); if(!reservationDataNode["ReservationEndTime"].isNull()) vpnGatewaysObject.reservationData.reservationEndTime = reservationDataNode["ReservationEndTime"].asString(); + auto allEniInstanceIds = value["EniInstanceIds"]["EniInstanceId"]; + for (auto value : allEniInstanceIds) + vpnGatewaysObject.eniInstanceIds.push_back(value.asString()); vpnGateways_.push_back(vpnGatewaysObject); } if(!value["PageSize"].isNull()) diff --git a/vpc/src/model/DescribeVpnPbrRouteEntriesResult.cc b/vpc/src/model/DescribeVpnPbrRouteEntriesResult.cc index 5914869ed..0a6763eb0 100644 --- a/vpc/src/model/DescribeVpnPbrRouteEntriesResult.cc +++ b/vpc/src/model/DescribeVpnPbrRouteEntriesResult.cc @@ -59,6 +59,8 @@ void DescribeVpnPbrRouteEntriesResult::parse(const std::string &payload) vpnPbrRouteEntriesObject.routeSource = valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteSource"].asString(); if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["Priority"].isNull()) vpnPbrRouteEntriesObject.priority = std::stoi(valueVpnPbrRouteEntriesVpnPbrRouteEntry["Priority"].asString()); + if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["NextHopTunnelId"].isNull()) + vpnPbrRouteEntriesObject.nextHopTunnelId = valueVpnPbrRouteEntriesVpnPbrRouteEntry["NextHopTunnelId"].asString(); vpnPbrRouteEntries_.push_back(vpnPbrRouteEntriesObject); } if(!value["PageSize"].isNull()) diff --git a/vpc/src/model/DescribeVpnRouteEntriesResult.cc b/vpc/src/model/DescribeVpnRouteEntriesResult.cc index f4515f3b7..0325b2b49 100644 --- a/vpc/src/model/DescribeVpnRouteEntriesResult.cc +++ b/vpc/src/model/DescribeVpnRouteEntriesResult.cc @@ -63,8 +63,22 @@ void DescribeVpnRouteEntriesResult::parse(const std::string &payload) vpnRouteEntriesObject.source = valueVpnRouteEntriesVpnRouteEntry["Source"].asString(); if(!valueVpnRouteEntriesVpnRouteEntry["VpnInstanceId"].isNull()) vpnRouteEntriesObject.vpnInstanceId = valueVpnRouteEntriesVpnRouteEntry["VpnInstanceId"].asString(); + if(!valueVpnRouteEntriesVpnRouteEntry["NextHopTunnelId"].isNull()) + vpnRouteEntriesObject.nextHopTunnelId = valueVpnRouteEntriesVpnRouteEntry["NextHopTunnelId"].asString(); vpnRouteEntries_.push_back(vpnRouteEntriesObject); } + auto allVpnRouteCountsNode = value["VpnRouteCounts"]["VpnRouteCount"]; + for (auto valueVpnRouteCountsVpnRouteCount : allVpnRouteCountsNode) + { + VpnRouteCount vpnRouteCountsObject; + if(!valueVpnRouteCountsVpnRouteCount["RouteEntryType"].isNull()) + vpnRouteCountsObject.routeEntryType = valueVpnRouteCountsVpnRouteCount["RouteEntryType"].asString(); + if(!valueVpnRouteCountsVpnRouteCount["RouteCount"].isNull()) + vpnRouteCountsObject.routeCount = std::stoi(valueVpnRouteCountsVpnRouteCount["RouteCount"].asString()); + if(!valueVpnRouteCountsVpnRouteCount["Source"].isNull()) + vpnRouteCountsObject.source = valueVpnRouteCountsVpnRouteCount["Source"].asString(); + vpnRouteCounts_.push_back(vpnRouteCountsObject); + } if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) @@ -94,3 +108,8 @@ int DescribeVpnRouteEntriesResult::getPageNumber()const return pageNumber_; } +std::vector DescribeVpnRouteEntriesResult::getVpnRouteCounts()const +{ + return vpnRouteCounts_; +} + diff --git a/vpc/src/model/DiagnoseVpnConnectionsRequest.cc b/vpc/src/model/DiagnoseVpnConnectionsRequest.cc new file mode 100644 index 000000000..ef8b69b46 --- /dev/null +++ b/vpc/src/model/DiagnoseVpnConnectionsRequest.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::Vpc::Model::DiagnoseVpnConnectionsRequest; + +DiagnoseVpnConnectionsRequest::DiagnoseVpnConnectionsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "DiagnoseVpnConnections") { + setMethod(HttpRequest::Method::Post); +} + +DiagnoseVpnConnectionsRequest::~DiagnoseVpnConnectionsRequest() {} + +std::vector DiagnoseVpnConnectionsRequest::getTunnelIds() const { + return tunnelIds_; +} + +void DiagnoseVpnConnectionsRequest::setTunnelIds(const std::vector &tunnelIds) { + tunnelIds_ = tunnelIds; +} + +long DiagnoseVpnConnectionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DiagnoseVpnConnectionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DiagnoseVpnConnectionsRequest::getVpnGatewayId() const { + return vpnGatewayId_; +} + +void DiagnoseVpnConnectionsRequest::setVpnGatewayId(const std::string &vpnGatewayId) { + vpnGatewayId_ = vpnGatewayId; + setParameter(std::string("VpnGatewayId"), vpnGatewayId); +} + +int DiagnoseVpnConnectionsRequest::getPageNumber() const { + return pageNumber_; +} + +void DiagnoseVpnConnectionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DiagnoseVpnConnectionsRequest::getRegionId() const { + return regionId_; +} + +void DiagnoseVpnConnectionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector DiagnoseVpnConnectionsRequest::getVpnConnectionIds() const { + return vpnConnectionIds_; +} + +void DiagnoseVpnConnectionsRequest::setVpnConnectionIds(const std::vector &vpnConnectionIds) { + vpnConnectionIds_ = vpnConnectionIds; +} + +int DiagnoseVpnConnectionsRequest::getPageSize() const { + return pageSize_; +} + +void DiagnoseVpnConnectionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/vpc/src/model/DiagnoseVpnConnectionsResult.cc b/vpc/src/model/DiagnoseVpnConnectionsResult.cc new file mode 100644 index 000000000..e47a51b94 --- /dev/null +++ b/vpc/src/model/DiagnoseVpnConnectionsResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +DiagnoseVpnConnectionsResult::DiagnoseVpnConnectionsResult() : + ServiceResult() +{} + +DiagnoseVpnConnectionsResult::DiagnoseVpnConnectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DiagnoseVpnConnectionsResult::~DiagnoseVpnConnectionsResult() +{} + +void DiagnoseVpnConnectionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVpnConnectionsNode = value["VpnConnections"]["VpnConnection"]; + for (auto valueVpnConnectionsVpnConnection : allVpnConnectionsNode) + { + VpnConnection vpnConnectionsObject; + if(!valueVpnConnectionsVpnConnection["MismatchRemoteParam"].isNull()) + vpnConnectionsObject.mismatchRemoteParam = valueVpnConnectionsVpnConnection["MismatchRemoteParam"].asString(); + if(!valueVpnConnectionsVpnConnection["MismatchLocalParam"].isNull()) + vpnConnectionsObject.mismatchLocalParam = valueVpnConnectionsVpnConnection["MismatchLocalParam"].asString(); + if(!valueVpnConnectionsVpnConnection["VpnConnectionId"].isNull()) + vpnConnectionsObject.vpnConnectionId = valueVpnConnectionsVpnConnection["VpnConnectionId"].asString(); + if(!valueVpnConnectionsVpnConnection["SourceLog"].isNull()) + vpnConnectionsObject.sourceLog = valueVpnConnectionsVpnConnection["SourceLog"].asString(); + if(!valueVpnConnectionsVpnConnection["FailedReasonCode"].isNull()) + vpnConnectionsObject.failedReasonCode = valueVpnConnectionsVpnConnection["FailedReasonCode"].asString(); + if(!valueVpnConnectionsVpnConnection["FailedTime"].isNull()) + vpnConnectionsObject.failedTime = std::stol(valueVpnConnectionsVpnConnection["FailedTime"].asString()); + if(!valueVpnConnectionsVpnConnection["FailedReason"].isNull()) + vpnConnectionsObject.failedReason = valueVpnConnectionsVpnConnection["FailedReason"].asString(); + if(!valueVpnConnectionsVpnConnection["Severity"].isNull()) + vpnConnectionsObject.severity = valueVpnConnectionsVpnConnection["Severity"].asString(); + if(!valueVpnConnectionsVpnConnection["TunnelId"].isNull()) + vpnConnectionsObject.tunnelId = valueVpnConnectionsVpnConnection["TunnelId"].asString(); + vpnConnections_.push_back(vpnConnectionsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DiagnoseVpnConnectionsResult::getTotalCount()const +{ + return totalCount_; +} + +int DiagnoseVpnConnectionsResult::getPageSize()const +{ + return pageSize_; +} + +int DiagnoseVpnConnectionsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DiagnoseVpnConnectionsResult::getVpnConnections()const +{ + return vpnConnections_; +} + diff --git a/vpc/src/model/DissociateRouteTableFromGatewayRequest.cc b/vpc/src/model/DissociateRouteTableFromGatewayRequest.cc index d458b1fb9..cf96978f3 100644 --- a/vpc/src/model/DissociateRouteTableFromGatewayRequest.cc +++ b/vpc/src/model/DissociateRouteTableFromGatewayRequest.cc @@ -70,6 +70,15 @@ void DissociateRouteTableFromGatewayRequest::setRouteTableId(const std::string & setParameter(std::string("RouteTableId"), routeTableId); } +std::string DissociateRouteTableFromGatewayRequest::getGatewayType() const { + return gatewayType_; +} + +void DissociateRouteTableFromGatewayRequest::setGatewayType(const std::string &gatewayType) { + gatewayType_ = gatewayType; + setParameter(std::string("GatewayType"), gatewayType); +} + bool DissociateRouteTableFromGatewayRequest::getDryRun() const { return dryRun_; } diff --git a/vpc/src/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.cc b/vpc/src/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.cc index f4febfb70..e4ef21d21 100644 --- a/vpc/src/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.cc +++ b/vpc/src/model/DissociateRouteTablesFromVpcGatewayEndpointRequest.cc @@ -34,15 +34,6 @@ void DissociateRouteTablesFromVpcGatewayEndpointRequest::setResourceOwnerId(long setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -bool DissociateRouteTablesFromVpcGatewayEndpointRequest::getDryRun() const { - return dryRun_; -} - -void DissociateRouteTablesFromVpcGatewayEndpointRequest::setDryRun(bool dryRun) { - dryRun_ = dryRun; - setParameter(std::string("DryRun"), dryRun ? "true" : "false"); -} - std::string DissociateRouteTablesFromVpcGatewayEndpointRequest::getClientToken() const { return clientToken_; } @@ -52,15 +43,6 @@ void DissociateRouteTablesFromVpcGatewayEndpointRequest::setClientToken(const st setParameter(std::string("ClientToken"), clientToken); } -std::string DissociateRouteTablesFromVpcGatewayEndpointRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DissociateRouteTablesFromVpcGatewayEndpointRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - std::string DissociateRouteTablesFromVpcGatewayEndpointRequest::getEndpointId() const { return endpointId_; } @@ -70,6 +52,33 @@ void DissociateRouteTablesFromVpcGatewayEndpointRequest::setEndpointId(const std setParameter(std::string("EndpointId"), endpointId); } +std::string DissociateRouteTablesFromVpcGatewayEndpointRequest::getRegionId() const { + return regionId_; +} + +void DissociateRouteTablesFromVpcGatewayEndpointRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool DissociateRouteTablesFromVpcGatewayEndpointRequest::getDryRun() const { + return dryRun_; +} + +void DissociateRouteTablesFromVpcGatewayEndpointRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DissociateRouteTablesFromVpcGatewayEndpointRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DissociateRouteTablesFromVpcGatewayEndpointRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + std::string DissociateRouteTablesFromVpcGatewayEndpointRequest::getOwnerAccount() const { return ownerAccount_; } @@ -88,15 +97,6 @@ void DissociateRouteTablesFromVpcGatewayEndpointRequest::setOwnerId(long ownerId setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string DissociateRouteTablesFromVpcGatewayEndpointRequest::getRegionId() const { - return regionId_; -} - -void DissociateRouteTablesFromVpcGatewayEndpointRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::vector DissociateRouteTablesFromVpcGatewayEndpointRequest::getRouteTableIds() const { return routeTableIds_; } diff --git a/vpc/src/model/DownloadVpnConnectionConfigResult.cc b/vpc/src/model/DownloadVpnConnectionConfigResult.cc index 613fb7a64..ffb5885aa 100644 --- a/vpc/src/model/DownloadVpnConnectionConfigResult.cc +++ b/vpc/src/model/DownloadVpnConnectionConfigResult.cc @@ -48,6 +48,64 @@ void DownloadVpnConnectionConfigResult::parse(const std::string &payload) vpnConnectionConfig_.remoteSubnet = vpnConnectionConfigNode["RemoteSubnet"].asString(); if(!vpnConnectionConfigNode["LocalSubnet"].isNull()) vpnConnectionConfig_.localSubnet = vpnConnectionConfigNode["LocalSubnet"].asString(); + auto allTunnelsConfigNode = vpnConnectionConfigNode["TunnelsConfig"]["TunnelConfig"]; + for (auto vpnConnectionConfigNodeTunnelsConfigTunnelConfig : allTunnelsConfigNode) + { + VpnConnectionConfig::TunnelConfig tunnelConfigObject; + if(!vpnConnectionConfigNodeTunnelsConfigTunnelConfig["TunnelId"].isNull()) + tunnelConfigObject.tunnelId = vpnConnectionConfigNodeTunnelsConfigTunnelConfig["TunnelId"].asString(); + if(!vpnConnectionConfigNodeTunnelsConfigTunnelConfig["Local"].isNull()) + tunnelConfigObject.local = vpnConnectionConfigNodeTunnelsConfigTunnelConfig["Local"].asString(); + if(!vpnConnectionConfigNodeTunnelsConfigTunnelConfig["Remote"].isNull()) + tunnelConfigObject.remote = vpnConnectionConfigNodeTunnelsConfigTunnelConfig["Remote"].asString(); + auto ikeConfig1Node = value["IkeConfig"]; + if(!ikeConfig1Node["Psk"].isNull()) + tunnelConfigObject.ikeConfig1.psk = ikeConfig1Node["Psk"].asString(); + if(!ikeConfig1Node["IkeVersion"].isNull()) + tunnelConfigObject.ikeConfig1.ikeVersion = ikeConfig1Node["IkeVersion"].asString(); + if(!ikeConfig1Node["IkeMode"].isNull()) + tunnelConfigObject.ikeConfig1.ikeMode = ikeConfig1Node["IkeMode"].asString(); + if(!ikeConfig1Node["IkeEncAlg"].isNull()) + tunnelConfigObject.ikeConfig1.ikeEncAlg = ikeConfig1Node["IkeEncAlg"].asString(); + if(!ikeConfig1Node["IkeAuthAlg"].isNull()) + tunnelConfigObject.ikeConfig1.ikeAuthAlg = ikeConfig1Node["IkeAuthAlg"].asString(); + if(!ikeConfig1Node["IkePfs"].isNull()) + tunnelConfigObject.ikeConfig1.ikePfs = ikeConfig1Node["IkePfs"].asString(); + if(!ikeConfig1Node["IkeLifetime"].isNull()) + tunnelConfigObject.ikeConfig1.ikeLifetime = std::stol(ikeConfig1Node["IkeLifetime"].asString()); + if(!ikeConfig1Node["LocalId"].isNull()) + tunnelConfigObject.ikeConfig1.localId = ikeConfig1Node["LocalId"].asString(); + if(!ikeConfig1Node["RemoteId"].isNull()) + tunnelConfigObject.ikeConfig1.remoteId = ikeConfig1Node["RemoteId"].asString(); + auto ipsecConfig2Node = value["IpsecConfig"]; + if(!ipsecConfig2Node["IpsecAuthAlg"].isNull()) + tunnelConfigObject.ipsecConfig2.ipsecAuthAlg = ipsecConfig2Node["IpsecAuthAlg"].asString(); + if(!ipsecConfig2Node["IpsecEncAlg"].isNull()) + tunnelConfigObject.ipsecConfig2.ipsecEncAlg = ipsecConfig2Node["IpsecEncAlg"].asString(); + if(!ipsecConfig2Node["IpsecPfs"].isNull()) + tunnelConfigObject.ipsecConfig2.ipsecPfs = ipsecConfig2Node["IpsecPfs"].asString(); + if(!ipsecConfig2Node["IpsecLifetime"].isNull()) + tunnelConfigObject.ipsecConfig2.ipsecLifetime = std::stol(ipsecConfig2Node["IpsecLifetime"].asString()); + vpnConnectionConfig_.tunnelsConfig.push_back(tunnelConfigObject); + } + auto allBgpConfigsNode = vpnConnectionConfigNode["BgpConfigs"]["BgpConfig"]; + for (auto vpnConnectionConfigNodeBgpConfigsBgpConfig : allBgpConfigsNode) + { + VpnConnectionConfig::BgpConfig bgpConfigObject; + if(!vpnConnectionConfigNodeBgpConfigsBgpConfig["LocalAsn"].isNull()) + bgpConfigObject.localAsn = vpnConnectionConfigNodeBgpConfigsBgpConfig["LocalAsn"].asString(); + if(!vpnConnectionConfigNodeBgpConfigsBgpConfig["LocalBgpIp"].isNull()) + bgpConfigObject.localBgpIp = vpnConnectionConfigNodeBgpConfigsBgpConfig["LocalBgpIp"].asString(); + if(!vpnConnectionConfigNodeBgpConfigsBgpConfig["PeerAsn"].isNull()) + bgpConfigObject.peerAsn = vpnConnectionConfigNodeBgpConfigsBgpConfig["PeerAsn"].asString(); + if(!vpnConnectionConfigNodeBgpConfigsBgpConfig["PeerBgpIp"].isNull()) + bgpConfigObject.peerBgpIp = vpnConnectionConfigNodeBgpConfigsBgpConfig["PeerBgpIp"].asString(); + if(!vpnConnectionConfigNodeBgpConfigsBgpConfig["TunnelCidr"].isNull()) + bgpConfigObject.tunnelCidr = vpnConnectionConfigNodeBgpConfigsBgpConfig["TunnelCidr"].asString(); + if(!vpnConnectionConfigNodeBgpConfigsBgpConfig["TunnelId"].isNull()) + bgpConfigObject.tunnelId = vpnConnectionConfigNodeBgpConfigsBgpConfig["TunnelId"].asString(); + vpnConnectionConfig_.bgpConfigs.push_back(bgpConfigObject); + } auto ikeConfigNode = vpnConnectionConfigNode["IkeConfig"]; if(!ikeConfigNode["RemoteId"].isNull()) vpnConnectionConfig_.ikeConfig.remoteId = ikeConfigNode["RemoteId"].asString(); @@ -70,10 +128,10 @@ void DownloadVpnConnectionConfigResult::parse(const std::string &payload) auto ipsecConfigNode = vpnConnectionConfigNode["IpsecConfig"]; if(!ipsecConfigNode["IpsecAuthAlg"].isNull()) vpnConnectionConfig_.ipsecConfig.ipsecAuthAlg = ipsecConfigNode["IpsecAuthAlg"].asString(); - if(!ipsecConfigNode["IpsecLifetime"].isNull()) - vpnConnectionConfig_.ipsecConfig.ipsecLifetime = std::stol(ipsecConfigNode["IpsecLifetime"].asString()); if(!ipsecConfigNode["IpsecEncAlg"].isNull()) vpnConnectionConfig_.ipsecConfig.ipsecEncAlg = ipsecConfigNode["IpsecEncAlg"].asString(); + if(!ipsecConfigNode["IpsecLifetime"].isNull()) + vpnConnectionConfig_.ipsecConfig.ipsecLifetime = std::stol(ipsecConfigNode["IpsecLifetime"].asString()); if(!ipsecConfigNode["IpsecPfs"].isNull()) vpnConnectionConfig_.ipsecConfig.ipsecPfs = ipsecConfigNode["IpsecPfs"].asString(); diff --git a/vpc/src/model/EnablePhysicalConnectionRequest.cc b/vpc/src/model/EnablePhysicalConnectionRequest.cc index 9ab44fb25..d9f5f595a 100644 --- a/vpc/src/model/EnablePhysicalConnectionRequest.cc +++ b/vpc/src/model/EnablePhysicalConnectionRequest.cc @@ -79,6 +79,15 @@ void EnablePhysicalConnectionRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +bool EnablePhysicalConnectionRequest::getByPassSp() const { + return byPassSp_; +} + +void EnablePhysicalConnectionRequest::setByPassSp(bool byPassSp) { + byPassSp_ = byPassSp; + setParameter(std::string("ByPassSp"), byPassSp ? "true" : "false"); +} + std::string EnablePhysicalConnectionRequest::getPhysicalConnectionId() const { return physicalConnectionId_; } diff --git a/vpc/src/model/GetDhcpOptionsSetResult.cc b/vpc/src/model/GetDhcpOptionsSetResult.cc index 2f1bd7cb3..91c4d632b 100644 --- a/vpc/src/model/GetDhcpOptionsSetResult.cc +++ b/vpc/src/model/GetDhcpOptionsSetResult.cc @@ -49,6 +49,16 @@ void GetDhcpOptionsSetResult::parse(const std::string &payload) associateVpcsObject.vpcId = valueAssociateVpcsAssociateVpc["VpcId"].asString(); associateVpcs_.push_back(associateVpcsObject); } + auto allTagsNode = value["Tags"]["Tag"]; + for (auto valueTagsTag : allTagsNode) + { + Tag tagsObject; + if(!valueTagsTag["Key"].isNull()) + tagsObject.key = valueTagsTag["Key"].asString(); + if(!valueTagsTag["Value"].isNull()) + tagsObject.value = valueTagsTag["Value"].asString(); + tags_.push_back(tagsObject); + } auto dhcpOptionsNode = value["DhcpOptions"]; if(!dhcpOptionsNode["TFTPServerName"].isNull()) dhcpOptions_.tFTPServerName = dhcpOptionsNode["TFTPServerName"].asString(); @@ -72,6 +82,10 @@ void GetDhcpOptionsSetResult::parse(const std::string &payload) dhcpOptionsSetName_ = value["DhcpOptionsSetName"].asString(); if(!value["OwnerId"].isNull()) ownerId_ = std::stol(value["OwnerId"].asString()); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); } @@ -95,6 +109,11 @@ long GetDhcpOptionsSetResult::getOwnerId()const return ownerId_; } +std::string GetDhcpOptionsSetResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::vector GetDhcpOptionsSetResult::getAssociateVpcs()const { return associateVpcs_; @@ -110,3 +129,13 @@ std::string GetDhcpOptionsSetResult::getDhcpOptionsSetDescription()const return dhcpOptionsSetDescription_; } +std::string GetDhcpOptionsSetResult::getCreationTime()const +{ + return creationTime_; +} + +std::vector GetDhcpOptionsSetResult::getTags()const +{ + return tags_; +} + diff --git a/vpc/src/model/GetNatGatewayAttributeResult.cc b/vpc/src/model/GetNatGatewayAttributeResult.cc index 60ed2f54e..75e303da7 100644 --- a/vpc/src/model/GetNatGatewayAttributeResult.cc +++ b/vpc/src/model/GetNatGatewayAttributeResult.cc @@ -89,6 +89,20 @@ void GetNatGatewayAttributeResult::parse(const std::string &payload) auto deletionProtectionInfoNode = value["DeletionProtectionInfo"]; if(!deletionProtectionInfoNode["Enabled"].isNull()) deletionProtectionInfo_.enabled = deletionProtectionInfoNode["Enabled"].asString() == "true"; + auto logDeliveryNode = value["LogDelivery"]; + if(!logDeliveryNode["LogDeliveryType"].isNull()) + logDelivery_.logDeliveryType = logDeliveryNode["LogDeliveryType"].asString(); + if(!logDeliveryNode["LogDestination"].isNull()) + logDelivery_.logDestination = logDeliveryNode["LogDestination"].asString(); + if(!logDeliveryNode["DeliveryStatus"].isNull()) + logDelivery_.deliveryStatus = logDeliveryNode["DeliveryStatus"].asString(); + if(!logDeliveryNode["DeliverLogsErrorMessage"].isNull()) + logDelivery_.deliverLogsErrorMessage = logDeliveryNode["DeliverLogsErrorMessage"].asString(); + auto accessModeNode = value["AccessMode"]; + if(!accessModeNode["ModeValue"].isNull()) + accessMode_.modeValue = accessModeNode["ModeValue"].asString(); + if(!accessModeNode["TunnelType"].isNull()) + accessMode_.tunnelType = accessModeNode["TunnelType"].asString(); if(!value["VpcId"].isNull()) vpcId_ = value["VpcId"].asString(); if(!value["CreationTime"].isNull()) @@ -119,19 +133,11 @@ void GetNatGatewayAttributeResult::parse(const std::string &payload) privateLinkEnabled_ = value["PrivateLinkEnabled"].asString() == "true"; if(!value["PrivateLinkMode"].isNull()) privateLinkMode_ = value["PrivateLinkMode"].asString(); + if(!value["EnableSessionLog"].isNull()) + enableSessionLog_ = value["EnableSessionLog"].asString() == "true"; } -std::string GetNatGatewayAttributeResult::getStatus()const -{ - return status_; -} - -GetNatGatewayAttributeResult::ForwardTable GetNatGatewayAttributeResult::getForwardTable()const -{ - return forwardTable_; -} - std::string GetNatGatewayAttributeResult::getDescription()const { return description_; @@ -142,19 +148,14 @@ std::string GetNatGatewayAttributeResult::getResourceGroupId()const return resourceGroupId_; } -std::vector GetNatGatewayAttributeResult::getIpList()const -{ - return ipList_; -} - bool GetNatGatewayAttributeResult::getPrivateLinkEnabled()const { return privateLinkEnabled_; } -std::string GetNatGatewayAttributeResult::getPrivateLinkMode()const +bool GetNatGatewayAttributeResult::getEnableSessionLog()const { - return privateLinkMode_; + return enableSessionLog_; } GetNatGatewayAttributeResult::BillingConfig GetNatGatewayAttributeResult::getBillingConfig()const @@ -167,14 +168,9 @@ GetNatGatewayAttributeResult::DeletionProtectionInfo GetNatGatewayAttributeResul return deletionProtectionInfo_; } -GetNatGatewayAttributeResult::SnatTable GetNatGatewayAttributeResult::getSnatTable()const +GetNatGatewayAttributeResult::LogDelivery GetNatGatewayAttributeResult::getLogDelivery()const { - return snatTable_; -} - -std::string GetNatGatewayAttributeResult::getNatType()const -{ - return natType_; + return logDelivery_; } std::string GetNatGatewayAttributeResult::getBusinessStatus()const @@ -187,26 +183,11 @@ std::string GetNatGatewayAttributeResult::getName()const return name_; } -bool GetNatGatewayAttributeResult::getEcsMetricEnabled()const -{ - return ecsMetricEnabled_; -} - -std::string GetNatGatewayAttributeResult::getVpcId()const -{ - return vpcId_; -} - std::string GetNatGatewayAttributeResult::getNetworkType()const { return networkType_; } -GetNatGatewayAttributeResult::FullNatTable GetNatGatewayAttributeResult::getFullNatTable()const -{ - return fullNatTable_; -} - std::string GetNatGatewayAttributeResult::getExpiredTime()const { return expiredTime_; @@ -217,11 +198,61 @@ GetNatGatewayAttributeResult::PrivateInfo GetNatGatewayAttributeResult::getPriva return privateInfo_; } +std::string GetNatGatewayAttributeResult::getStatus()const +{ + return status_; +} + +GetNatGatewayAttributeResult::ForwardTable GetNatGatewayAttributeResult::getForwardTable()const +{ + return forwardTable_; +} + +std::vector GetNatGatewayAttributeResult::getIpList()const +{ + return ipList_; +} + +std::string GetNatGatewayAttributeResult::getPrivateLinkMode()const +{ + return privateLinkMode_; +} + +GetNatGatewayAttributeResult::SnatTable GetNatGatewayAttributeResult::getSnatTable()const +{ + return snatTable_; +} + +std::string GetNatGatewayAttributeResult::getNatType()const +{ + return natType_; +} + +bool GetNatGatewayAttributeResult::getEcsMetricEnabled()const +{ + return ecsMetricEnabled_; +} + +std::string GetNatGatewayAttributeResult::getVpcId()const +{ + return vpcId_; +} + +GetNatGatewayAttributeResult::FullNatTable GetNatGatewayAttributeResult::getFullNatTable()const +{ + return fullNatTable_; +} + std::string GetNatGatewayAttributeResult::getCreationTime()const { return creationTime_; } +GetNatGatewayAttributeResult::AccessMode GetNatGatewayAttributeResult::getAccessMode()const +{ + return accessMode_; +} + std::string GetNatGatewayAttributeResult::getRegionId()const { return regionId_; diff --git a/vpc/src/model/GetNatGatewayConvertStatusRequest.cc b/vpc/src/model/GetNatGatewayConvertStatusRequest.cc deleted file mode 100644 index df8b8166d..000000000 --- a/vpc/src/model/GetNatGatewayConvertStatusRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::GetNatGatewayConvertStatusRequest; - -GetNatGatewayConvertStatusRequest::GetNatGatewayConvertStatusRequest() - : RpcServiceRequest("vpc", "2016-04-28", "GetNatGatewayConvertStatus") { - setMethod(HttpRequest::Method::Post); -} - -GetNatGatewayConvertStatusRequest::~GetNatGatewayConvertStatusRequest() {} - -long GetNatGatewayConvertStatusRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void GetNatGatewayConvertStatusRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string GetNatGatewayConvertStatusRequest::getRegionId() const { - return regionId_; -} - -void GetNatGatewayConvertStatusRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string GetNatGatewayConvertStatusRequest::getNatGatewayId() const { - return natGatewayId_; -} - -void GetNatGatewayConvertStatusRequest::setNatGatewayId(const std::string &natGatewayId) { - natGatewayId_ = natGatewayId; - setParameter(std::string("NatGatewayId"), natGatewayId); -} - -std::string GetNatGatewayConvertStatusRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void GetNatGatewayConvertStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string GetNatGatewayConvertStatusRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void GetNatGatewayConvertStatusRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long GetNatGatewayConvertStatusRequest::getOwnerId() const { - return ownerId_; -} - -void GetNatGatewayConvertStatusRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - diff --git a/vpc/src/model/GetNatGatewayConvertStatusResult.cc b/vpc/src/model/GetNatGatewayConvertStatusResult.cc deleted file mode 100644 index c7ca4a337..000000000 --- a/vpc/src/model/GetNatGatewayConvertStatusResult.cc +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES 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::Vpc; -using namespace AlibabaCloud::Vpc::Model; - -GetNatGatewayConvertStatusResult::GetNatGatewayConvertStatusResult() : - ServiceResult() -{} - -GetNatGatewayConvertStatusResult::GetNatGatewayConvertStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetNatGatewayConvertStatusResult::~GetNatGatewayConvertStatusResult() -{} - -void GetNatGatewayConvertStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allConvertStepsNode = value["ConvertSteps"]["ConvertStep"]; - for (auto valueConvertStepsConvertStep : allConvertStepsNode) - { - ConvertStep convertStepsObject; - if(!valueConvertStepsConvertStep["StepStartTime"].isNull()) - convertStepsObject.stepStartTime = valueConvertStepsConvertStep["StepStartTime"].asString(); - if(!valueConvertStepsConvertStep["StepName"].isNull()) - convertStepsObject.stepName = valueConvertStepsConvertStep["StepName"].asString(); - if(!valueConvertStepsConvertStep["StepStatus"].isNull()) - convertStepsObject.stepStatus = valueConvertStepsConvertStep["StepStatus"].asString(); - convertSteps_.push_back(convertStepsObject); - } - if(!value["AliUid"].isNull()) - aliUid_ = std::stol(value["AliUid"].asString()); - if(!value["DstNatType"].isNull()) - dstNatType_ = value["DstNatType"].asString(); - if(!value["Bid"].isNull()) - bid_ = value["Bid"].asString(); - if(!value["NatGatewayId"].isNull()) - natGatewayId_ = value["NatGatewayId"].asString(); - -} - -std::string GetNatGatewayConvertStatusResult::getDstNatType()const -{ - return dstNatType_; -} - -std::vector GetNatGatewayConvertStatusResult::getConvertSteps()const -{ - return convertSteps_; -} - -std::string GetNatGatewayConvertStatusResult::getBid()const -{ - return bid_; -} - -std::string GetNatGatewayConvertStatusResult::getNatGatewayId()const -{ - return natGatewayId_; -} - -long GetNatGatewayConvertStatusResult::getAliUid()const -{ - return aliUid_; -} - diff --git a/vpc/src/model/GetPublicIpAddressPoolServiceStatusRequest.cc b/vpc/src/model/GetPublicIpAddressPoolServiceStatusRequest.cc new file mode 100644 index 000000000..5f77cfac1 --- /dev/null +++ b/vpc/src/model/GetPublicIpAddressPoolServiceStatusRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::GetPublicIpAddressPoolServiceStatusRequest; + +GetPublicIpAddressPoolServiceStatusRequest::GetPublicIpAddressPoolServiceStatusRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetPublicIpAddressPoolServiceStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetPublicIpAddressPoolServiceStatusRequest::~GetPublicIpAddressPoolServiceStatusRequest() {} + +long GetPublicIpAddressPoolServiceStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetPublicIpAddressPoolServiceStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetPublicIpAddressPoolServiceStatusRequest::getClientToken() const { + return clientToken_; +} + +void GetPublicIpAddressPoolServiceStatusRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetPublicIpAddressPoolServiceStatusRequest::getRegionId() const { + return regionId_; +} + +void GetPublicIpAddressPoolServiceStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetPublicIpAddressPoolServiceStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetPublicIpAddressPoolServiceStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetPublicIpAddressPoolServiceStatusRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetPublicIpAddressPoolServiceStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetPublicIpAddressPoolServiceStatusRequest::getOwnerId() const { + return ownerId_; +} + +void GetPublicIpAddressPoolServiceStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/GetPublicIpAddressPoolServiceStatusResult.cc b/vpc/src/model/GetPublicIpAddressPoolServiceStatusResult.cc new file mode 100644 index 000000000..7713e033f --- /dev/null +++ b/vpc/src/model/GetPublicIpAddressPoolServiceStatusResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +GetPublicIpAddressPoolServiceStatusResult::GetPublicIpAddressPoolServiceStatusResult() : + ServiceResult() +{} + +GetPublicIpAddressPoolServiceStatusResult::GetPublicIpAddressPoolServiceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPublicIpAddressPoolServiceStatusResult::~GetPublicIpAddressPoolServiceStatusResult() +{} + +void GetPublicIpAddressPoolServiceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Enabled"].isNull()) + enabled_ = value["Enabled"].asString() == "true"; + +} + +bool GetPublicIpAddressPoolServiceStatusResult::getEnabled()const +{ + return enabled_; +} + diff --git a/vpc/src/model/GetTrafficMirrorServiceStatusRequest.cc b/vpc/src/model/GetTrafficMirrorServiceStatusRequest.cc index 82c01caab..58ba23011 100644 --- a/vpc/src/model/GetTrafficMirrorServiceStatusRequest.cc +++ b/vpc/src/model/GetTrafficMirrorServiceStatusRequest.cc @@ -25,6 +25,51 @@ GetTrafficMirrorServiceStatusRequest::GetTrafficMirrorServiceStatusRequest() GetTrafficMirrorServiceStatusRequest::~GetTrafficMirrorServiceStatusRequest() {} +long GetTrafficMirrorServiceStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetTrafficMirrorServiceStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetTrafficMirrorServiceStatusRequest::getClientToken() const { + return clientToken_; +} + +void GetTrafficMirrorServiceStatusRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetTrafficMirrorServiceStatusRequest::getRegionId() const { + return regionId_; +} + +void GetTrafficMirrorServiceStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetTrafficMirrorServiceStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetTrafficMirrorServiceStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetTrafficMirrorServiceStatusRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetTrafficMirrorServiceStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + long GetTrafficMirrorServiceStatusRequest::getOwnerId() const { return ownerId_; } diff --git a/vpc/src/model/GetVSwitchCidrReservationUsageRequest.cc b/vpc/src/model/GetVSwitchCidrReservationUsageRequest.cc new file mode 100644 index 000000000..a2a54c072 --- /dev/null +++ b/vpc/src/model/GetVSwitchCidrReservationUsageRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::GetVSwitchCidrReservationUsageRequest; + +GetVSwitchCidrReservationUsageRequest::GetVSwitchCidrReservationUsageRequest() + : RpcServiceRequest("vpc", "2016-04-28", "GetVSwitchCidrReservationUsage") { + setMethod(HttpRequest::Method::Post); +} + +GetVSwitchCidrReservationUsageRequest::~GetVSwitchCidrReservationUsageRequest() {} + +long GetVSwitchCidrReservationUsageRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetVSwitchCidrReservationUsageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GetVSwitchCidrReservationUsageRequest::getNextToken() const { + return nextToken_; +} + +void GetVSwitchCidrReservationUsageRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string GetVSwitchCidrReservationUsageRequest::getRegionId() const { + return regionId_; +} + +void GetVSwitchCidrReservationUsageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetVSwitchCidrReservationUsageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetVSwitchCidrReservationUsageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetVSwitchCidrReservationUsageRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetVSwitchCidrReservationUsageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetVSwitchCidrReservationUsageRequest::getOwnerId() const { + return ownerId_; +} + +void GetVSwitchCidrReservationUsageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +long GetVSwitchCidrReservationUsageRequest::getMaxResults() const { + return maxResults_; +} + +void GetVSwitchCidrReservationUsageRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string GetVSwitchCidrReservationUsageRequest::getVSwitchCidrReservationId() const { + return vSwitchCidrReservationId_; +} + +void GetVSwitchCidrReservationUsageRequest::setVSwitchCidrReservationId(const std::string &vSwitchCidrReservationId) { + vSwitchCidrReservationId_ = vSwitchCidrReservationId; + setParameter(std::string("VSwitchCidrReservationId"), vSwitchCidrReservationId); +} + diff --git a/vpc/src/model/GetVSwitchCidrReservationUsageResult.cc b/vpc/src/model/GetVSwitchCidrReservationUsageResult.cc new file mode 100644 index 000000000..e019bd619 --- /dev/null +++ b/vpc/src/model/GetVSwitchCidrReservationUsageResult.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 +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +GetVSwitchCidrReservationUsageResult::GetVSwitchCidrReservationUsageResult() : + ServiceResult() +{} + +GetVSwitchCidrReservationUsageResult::GetVSwitchCidrReservationUsageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVSwitchCidrReservationUsageResult::~GetVSwitchCidrReservationUsageResult() +{} + +void GetVSwitchCidrReservationUsageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCidrReservationUsagesNode = value["CidrReservationUsages"]["VSwitchCidrReservationUsage"]; + for (auto valueCidrReservationUsagesVSwitchCidrReservationUsage : allCidrReservationUsagesNode) + { + VSwitchCidrReservationUsage cidrReservationUsagesObject; + if(!valueCidrReservationUsagesVSwitchCidrReservationUsage["VSwitchCidrReservationId"].isNull()) + cidrReservationUsagesObject.vSwitchCidrReservationId = valueCidrReservationUsagesVSwitchCidrReservationUsage["VSwitchCidrReservationId"].asString(); + if(!valueCidrReservationUsagesVSwitchCidrReservationUsage["VSwitchId"].isNull()) + cidrReservationUsagesObject.vSwitchId = valueCidrReservationUsagesVSwitchCidrReservationUsage["VSwitchId"].asString(); + if(!valueCidrReservationUsagesVSwitchCidrReservationUsage["ResourceId"].isNull()) + cidrReservationUsagesObject.resourceId = valueCidrReservationUsagesVSwitchCidrReservationUsage["ResourceId"].asString(); + if(!valueCidrReservationUsagesVSwitchCidrReservationUsage["ResourceType"].isNull()) + cidrReservationUsagesObject.resourceType = valueCidrReservationUsagesVSwitchCidrReservationUsage["ResourceType"].asString(); + if(!valueCidrReservationUsagesVSwitchCidrReservationUsage["IpPrefixId"].isNull()) + cidrReservationUsagesObject.ipPrefixId = valueCidrReservationUsagesVSwitchCidrReservationUsage["IpPrefixId"].asString(); + if(!valueCidrReservationUsagesVSwitchCidrReservationUsage["IpPrefixCidr"].isNull()) + cidrReservationUsagesObject.ipPrefixCidr = valueCidrReservationUsagesVSwitchCidrReservationUsage["IpPrefixCidr"].asString(); + cidrReservationUsages_.push_back(cidrReservationUsagesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stol(value["MaxResults"].asString()); + +} + +long GetVSwitchCidrReservationUsageResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector GetVSwitchCidrReservationUsageResult::getCidrReservationUsages()const +{ + return cidrReservationUsages_; +} + +std::string GetVSwitchCidrReservationUsageResult::getNextToken()const +{ + return nextToken_; +} + +long GetVSwitchCidrReservationUsageResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/vpc/src/model/GetVpcGatewayEndpointAttributeResult.cc b/vpc/src/model/GetVpcGatewayEndpointAttributeResult.cc index c47f7fbb7..623fcf2ae 100644 --- a/vpc/src/model/GetVpcGatewayEndpointAttributeResult.cc +++ b/vpc/src/model/GetVpcGatewayEndpointAttributeResult.cc @@ -39,6 +39,16 @@ void GetVpcGatewayEndpointAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["Tag"]; + for (auto valueTagsTag : allTagsNode) + { + Tag tagsObject; + if(!valueTagsTag["Key"].isNull()) + tagsObject.key = valueTagsTag["Key"].asString(); + if(!valueTagsTag["Value"].isNull()) + tagsObject.value = valueTagsTag["Value"].asString(); + tags_.push_back(tagsObject); + } auto allRouteTables = value["RouteTables"]["RouteTable"]; for (const auto &item : allRouteTables) routeTables_.push_back(item.asString()); @@ -58,6 +68,8 @@ void GetVpcGatewayEndpointAttributeResult::parse(const std::string &payload) creationTime_ = value["CreationTime"].asString(); if(!value["EndpointStatus"].isNull()) endpointStatus_ = value["EndpointStatus"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -76,6 +88,11 @@ std::string GetVpcGatewayEndpointAttributeResult::getVpcId()const return vpcId_; } +std::string GetVpcGatewayEndpointAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string GetVpcGatewayEndpointAttributeResult::getServiceName()const { return serviceName_; @@ -106,3 +123,8 @@ std::string GetVpcGatewayEndpointAttributeResult::getEndpointDescription()const return endpointDescription_; } +std::vector GetVpcGatewayEndpointAttributeResult::getTags()const +{ + return tags_; +} + diff --git a/vpc/src/model/GetVpcPrefixListAssociationsRequest.cc b/vpc/src/model/GetVpcPrefixListAssociationsRequest.cc index ae094ab51..f5d96d97e 100644 --- a/vpc/src/model/GetVpcPrefixListAssociationsRequest.cc +++ b/vpc/src/model/GetVpcPrefixListAssociationsRequest.cc @@ -34,33 +34,6 @@ void GetVpcPrefixListAssociationsRequest::setResourceOwnerId(long resourceOwnerI setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string GetVpcPrefixListAssociationsRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void GetVpcPrefixListAssociationsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string GetVpcPrefixListAssociationsRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void GetVpcPrefixListAssociationsRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long GetVpcPrefixListAssociationsRequest::getOwnerId() const { - return ownerId_; -} - -void GetVpcPrefixListAssociationsRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - std::string GetVpcPrefixListAssociationsRequest::getPrefixListId() const { return prefixListId_; } @@ -88,6 +61,33 @@ void GetVpcPrefixListAssociationsRequest::setRegionId(const std::string ®ionI setParameter(std::string("RegionId"), regionId); } +std::string GetVpcPrefixListAssociationsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetVpcPrefixListAssociationsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetVpcPrefixListAssociationsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetVpcPrefixListAssociationsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetVpcPrefixListAssociationsRequest::getOwnerId() const { + return ownerId_; +} + +void GetVpcPrefixListAssociationsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + long GetVpcPrefixListAssociationsRequest::getMaxResults() const { return maxResults_; } diff --git a/vpc/src/model/GetVpcPrefixListEntriesRequest.cc b/vpc/src/model/GetVpcPrefixListEntriesRequest.cc index b34d42b52..f3554e4af 100644 --- a/vpc/src/model/GetVpcPrefixListEntriesRequest.cc +++ b/vpc/src/model/GetVpcPrefixListEntriesRequest.cc @@ -34,33 +34,6 @@ void GetVpcPrefixListEntriesRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string GetVpcPrefixListEntriesRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void GetVpcPrefixListEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string GetVpcPrefixListEntriesRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void GetVpcPrefixListEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long GetVpcPrefixListEntriesRequest::getOwnerId() const { - return ownerId_; -} - -void GetVpcPrefixListEntriesRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - std::string GetVpcPrefixListEntriesRequest::getPrefixListId() const { return prefixListId_; } @@ -88,6 +61,33 @@ void GetVpcPrefixListEntriesRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string GetVpcPrefixListEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetVpcPrefixListEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetVpcPrefixListEntriesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetVpcPrefixListEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetVpcPrefixListEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void GetVpcPrefixListEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + long GetVpcPrefixListEntriesRequest::getMaxResults() const { return maxResults_; } diff --git a/vpc/src/model/ListDhcpOptionsSetsRequest.cc b/vpc/src/model/ListDhcpOptionsSetsRequest.cc index 94de3f7ae..f8a485ec7 100644 --- a/vpc/src/model/ListDhcpOptionsSetsRequest.cc +++ b/vpc/src/model/ListDhcpOptionsSetsRequest.cc @@ -34,6 +34,15 @@ void ListDhcpOptionsSetsRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string ListDhcpOptionsSetsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListDhcpOptionsSetsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string ListDhcpOptionsSetsRequest::getRegionId() const { return regionId_; } @@ -96,6 +105,20 @@ void ListDhcpOptionsSetsRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::vector ListDhcpOptionsSetsRequest::getTags() const { + return tags_; +} + +void ListDhcpOptionsSetsRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Key", tagsObj.key); + setParameter(tagsObjStr + ".Value", tagsObj.value); + } +} + std::string ListDhcpOptionsSetsRequest::getDhcpOptionsSetName() const { return dhcpOptionsSetName_; } diff --git a/vpc/src/model/ListDhcpOptionsSetsResult.cc b/vpc/src/model/ListDhcpOptionsSetsResult.cc index 8356c5e92..c15669b79 100644 --- a/vpc/src/model/ListDhcpOptionsSetsResult.cc +++ b/vpc/src/model/ListDhcpOptionsSetsResult.cc @@ -55,6 +55,20 @@ void ListDhcpOptionsSetsResult::parse(const std::string &payload) dhcpOptionsSetsObject.associateVpcCount = std::stoi(valueDhcpOptionsSetsDhcpOptionsSet["AssociateVpcCount"].asString()); if(!valueDhcpOptionsSetsDhcpOptionsSet["OwnerId"].isNull()) dhcpOptionsSetsObject.ownerId = std::stol(valueDhcpOptionsSetsDhcpOptionsSet["OwnerId"].asString()); + if(!valueDhcpOptionsSetsDhcpOptionsSet["ResourceGroupId"].isNull()) + dhcpOptionsSetsObject.resourceGroupId = valueDhcpOptionsSetsDhcpOptionsSet["ResourceGroupId"].asString(); + if(!valueDhcpOptionsSetsDhcpOptionsSet["CreationTime"].isNull()) + dhcpOptionsSetsObject.creationTime = valueDhcpOptionsSetsDhcpOptionsSet["CreationTime"].asString(); + auto allTagsNode = valueDhcpOptionsSetsDhcpOptionsSet["Tags"]["Tag"]; + for (auto valueDhcpOptionsSetsDhcpOptionsSetTagsTag : allTagsNode) + { + DhcpOptionsSet::Tag tagsObject; + if(!valueDhcpOptionsSetsDhcpOptionsSetTagsTag["Key"].isNull()) + tagsObject.key = valueDhcpOptionsSetsDhcpOptionsSetTagsTag["Key"].asString(); + if(!valueDhcpOptionsSetsDhcpOptionsSetTagsTag["Value"].isNull()) + tagsObject.value = valueDhcpOptionsSetsDhcpOptionsSetTagsTag["Value"].asString(); + dhcpOptionsSetsObject.tags.push_back(tagsObject); + } auto dhcpOptionsNode = value["DhcpOptions"]; if(!dhcpOptionsNode["DomainNameServers"].isNull()) dhcpOptionsSetsObject.dhcpOptions.domainNameServers = dhcpOptionsNode["DomainNameServers"].asString(); @@ -68,6 +82,8 @@ void ListDhcpOptionsSetsResult::parse(const std::string &payload) } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); } @@ -76,6 +92,11 @@ std::vector ListDhcpOptionsSetsResult return dhcpOptionsSets_; } +std::string ListDhcpOptionsSetsResult::getTotalCount()const +{ + return totalCount_; +} + std::string ListDhcpOptionsSetsResult::getNextToken()const { return nextToken_; diff --git a/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc b/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc index f23476854..f3cd487bc 100644 --- a/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc +++ b/vpc/src/model/ListEnhanhcedNatGatewayAvailableZonesRequest.cc @@ -70,6 +70,18 @@ void ListEnhanhcedNatGatewayAvailableZonesRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::vector ListEnhanhcedNatGatewayAvailableZonesRequest::getFilter() const { + return filter_; +} + +void ListEnhanhcedNatGatewayAvailableZonesRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + setParameter(std::string("Filter") + "." + std::to_string(dep1 + 1) + ".Key", filter[dep1].key); + setParameter(std::string("Filter") + "." + std::to_string(dep1 + 1) + ".Value", filter[dep1].value); + } +} + std::string ListEnhanhcedNatGatewayAvailableZonesRequest::getAcceptLanguage() const { return acceptLanguage_; } diff --git a/vpc/src/model/ListFullNatEntriesRequest.cc b/vpc/src/model/ListFullNatEntriesRequest.cc index e7962baaa..1d19912bc 100644 --- a/vpc/src/model/ListFullNatEntriesRequest.cc +++ b/vpc/src/model/ListFullNatEntriesRequest.cc @@ -69,6 +69,15 @@ void ListFullNatEntriesRequest::setFullNatEntryId(const std::string &fullNatEntr setParameter(std::string("FullNatEntryId"), fullNatEntryId); } +std::string ListFullNatEntriesRequest::getNatIpPort() const { + return natIpPort_; +} + +void ListFullNatEntriesRequest::setNatIpPort(const std::string &natIpPort) { + natIpPort_ = natIpPort; + setParameter(std::string("NatIpPort"), natIpPort); +} + std::string ListFullNatEntriesRequest::getFullNatTableId() const { return fullNatTableId_; } @@ -149,6 +158,15 @@ void ListFullNatEntriesRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string ListFullNatEntriesRequest::getNatIp() const { + return natIp_; +} + +void ListFullNatEntriesRequest::setNatIp(const std::string &natIp) { + natIp_ = natIp; + setParameter(std::string("NatIp"), natIp); +} + long ListFullNatEntriesRequest::getMaxResults() const { return maxResults_; } diff --git a/vpc/src/model/ListIpsecServersRequest.cc b/vpc/src/model/ListIpsecServersRequest.cc index d31a67d84..4dd31c363 100644 --- a/vpc/src/model/ListIpsecServersRequest.cc +++ b/vpc/src/model/ListIpsecServersRequest.cc @@ -52,6 +52,15 @@ void ListIpsecServersRequest::setCallerBid(const std::string &callerBid) { setParameter(std::string("callerBid"), callerBid); } +std::string ListIpsecServersRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListIpsecServersRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string ListIpsecServersRequest::getRegionId() const { return regionId_; } diff --git a/vpc/src/model/ListIpsecServersResult.cc b/vpc/src/model/ListIpsecServersResult.cc index 94c94817b..efeff09ad 100644 --- a/vpc/src/model/ListIpsecServersResult.cc +++ b/vpc/src/model/ListIpsecServersResult.cc @@ -73,6 +73,8 @@ void ListIpsecServersResult::parse(const std::string &payload) ipsecServersObject.maxConnections = std::stoi(valueIpsecServersIpsecServer["MaxConnections"].asString()); if(!valueIpsecServersIpsecServer["ClientIpPool"].isNull()) ipsecServersObject.clientIpPool = valueIpsecServersIpsecServer["ClientIpPool"].asString(); + if(!valueIpsecServersIpsecServer["ResourceGroupId"].isNull()) + ipsecServersObject.resourceGroupId = valueIpsecServersIpsecServer["ResourceGroupId"].asString(); auto ikeConfigNode = value["IkeConfig"]; if(!ikeConfigNode["RemoteId"].isNull()) ipsecServersObject.ikeConfig.remoteId = ikeConfigNode["RemoteId"].asString(); diff --git a/vpc/src/model/ListPrefixListsResult.cc b/vpc/src/model/ListPrefixListsResult.cc index 6a1417f9f..6c824aa1e 100644 --- a/vpc/src/model/ListPrefixListsResult.cc +++ b/vpc/src/model/ListPrefixListsResult.cc @@ -67,6 +67,8 @@ void ListPrefixListsResult::parse(const std::string &payload) prefixListsObject.regionId = valuePrefixListsPrefixList["RegionId"].asString(); if(!valuePrefixListsPrefixList["ResourceGroupId"].isNull()) prefixListsObject.resourceGroupId = valuePrefixListsPrefixList["ResourceGroupId"].asString(); + if(!valuePrefixListsPrefixList["PrefixListType"].isNull()) + prefixListsObject.prefixListType = valuePrefixListsPrefixList["PrefixListType"].asString(); auto allTagsNode = valuePrefixListsPrefixList["Tags"]["Tag"]; for (auto valuePrefixListsPrefixListTagsTag : allTagsNode) { diff --git a/vpc/src/model/ListPublicIpAddressPoolsRequest.cc b/vpc/src/model/ListPublicIpAddressPoolsRequest.cc index 53f5ac572..2847b54bd 100644 --- a/vpc/src/model/ListPublicIpAddressPoolsRequest.cc +++ b/vpc/src/model/ListPublicIpAddressPoolsRequest.cc @@ -34,6 +34,15 @@ void ListPublicIpAddressPoolsRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +bool ListPublicIpAddressPoolsRequest::getSecurityProtectionEnabled() const { + return securityProtectionEnabled_; +} + +void ListPublicIpAddressPoolsRequest::setSecurityProtectionEnabled(bool securityProtectionEnabled) { + securityProtectionEnabled_ = securityProtectionEnabled; + setParameter(std::string("SecurityProtectionEnabled"), securityProtectionEnabled ? "true" : "false"); +} + std::string ListPublicIpAddressPoolsRequest::getIsp() const { return isp_; } @@ -43,6 +52,15 @@ void ListPublicIpAddressPoolsRequest::setIsp(const std::string &isp) { setParameter(std::string("Isp"), isp); } +int ListPublicIpAddressPoolsRequest::getSecurityProtectionEnabledForCommonBuy() const { + return securityProtectionEnabledForCommonBuy_; +} + +void ListPublicIpAddressPoolsRequest::setSecurityProtectionEnabledForCommonBuy(int securityProtectionEnabledForCommonBuy) { + securityProtectionEnabledForCommonBuy_ = securityProtectionEnabledForCommonBuy; + setParameter(std::string("SecurityProtectionEnabledForCommonBuy"), std::to_string(securityProtectionEnabledForCommonBuy)); +} + std::string ListPublicIpAddressPoolsRequest::getResourceGroupId() const { return resourceGroupId_; } diff --git a/vpc/src/model/ListPublicIpAddressPoolsResult.cc b/vpc/src/model/ListPublicIpAddressPoolsResult.cc index f5fe751e3..3efbc0803 100644 --- a/vpc/src/model/ListPublicIpAddressPoolsResult.cc +++ b/vpc/src/model/ListPublicIpAddressPoolsResult.cc @@ -64,13 +64,17 @@ void ListPublicIpAddressPoolsResult::parse(const std::string &payload) if(!valuePublicIpAddressPoolListPublicIpAddressPool["IpAddressRemaining"].isNull()) publicIpAddressPoolListObject.ipAddressRemaining = valuePublicIpAddressPoolListPublicIpAddressPool["IpAddressRemaining"].asString() == "true"; if(!valuePublicIpAddressPoolListPublicIpAddressPool["UserType"].isNull()) - publicIpAddressPoolListObject.userType = valuePublicIpAddressPoolListPublicIpAddressPool["UserType"].asString() == "true"; + publicIpAddressPoolListObject.userType = valuePublicIpAddressPoolListPublicIpAddressPool["UserType"].asString(); if(!valuePublicIpAddressPoolListPublicIpAddressPool["OwnerId"].isNull()) publicIpAddressPoolListObject.ownerId = std::stol(valuePublicIpAddressPoolListPublicIpAddressPool["OwnerId"].asString()); if(!valuePublicIpAddressPoolListPublicIpAddressPool["ShareType"].isNull()) publicIpAddressPoolListObject.shareType = valuePublicIpAddressPoolListPublicIpAddressPool["ShareType"].asString(); if(!valuePublicIpAddressPoolListPublicIpAddressPool["ResourceGroupId"].isNull()) publicIpAddressPoolListObject.resourceGroupId = valuePublicIpAddressPoolListPublicIpAddressPool["ResourceGroupId"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["BizType"].isNull()) + publicIpAddressPoolListObject.bizType = valuePublicIpAddressPoolListPublicIpAddressPool["BizType"].asString(); + if(!valuePublicIpAddressPoolListPublicIpAddressPool["BusinessStatus"].isNull()) + publicIpAddressPoolListObject.businessStatus = valuePublicIpAddressPoolListPublicIpAddressPool["BusinessStatus"].asString(); auto allPublicIpCidrBlockListNode = valuePublicIpAddressPoolListPublicIpAddressPool["PublicIpCidrBlockList"]["PublicIpCidrBlock"]; for (auto valuePublicIpAddressPoolListPublicIpAddressPoolPublicIpCidrBlockListPublicIpCidrBlock : allPublicIpCidrBlockListNode) { @@ -97,6 +101,12 @@ void ListPublicIpAddressPoolsResult::parse(const std::string &payload) tagsObject.value = valuePublicIpAddressPoolListPublicIpAddressPoolTagsTag["Value"].asString(); publicIpAddressPoolListObject.tags.push_back(tagsObject); } + auto allZones = value["Zones"]["Zone"]; + for (auto value : allZones) + publicIpAddressPoolListObject.zones.push_back(value.asString()); + auto allSecurityProtectionTypes = value["SecurityProtectionTypes"]["SecurityProtectionType"]; + for (auto value : allSecurityProtectionTypes) + publicIpAddressPoolListObject.securityProtectionTypes.push_back(value.asString()); publicIpAddressPoolList_.push_back(publicIpAddressPoolListObject); } if(!value["NextToken"].isNull()) diff --git a/vpc/src/model/ListTrafficMirrorFiltersResult.cc b/vpc/src/model/ListTrafficMirrorFiltersResult.cc index b84ef178c..77f2767d6 100644 --- a/vpc/src/model/ListTrafficMirrorFiltersResult.cc +++ b/vpc/src/model/ListTrafficMirrorFiltersResult.cc @@ -53,6 +53,8 @@ void ListTrafficMirrorFiltersResult::parse(const std::string &payload) trafficMirrorFiltersObject.trafficMirrorFilterName = valueTrafficMirrorFiltersTrafficMirrorFilter["TrafficMirrorFilterName"].asString(); if(!valueTrafficMirrorFiltersTrafficMirrorFilter["ResourceGroupId"].isNull()) trafficMirrorFiltersObject.resourceGroupId = valueTrafficMirrorFiltersTrafficMirrorFilter["ResourceGroupId"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilter["CreationTime"].isNull()) + trafficMirrorFiltersObject.creationTime = valueTrafficMirrorFiltersTrafficMirrorFilter["CreationTime"].asString(); auto allIngressRulesNode = valueTrafficMirrorFiltersTrafficMirrorFilter["IngressRules"]["TrafficMirrorRule"]; for (auto valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule : allIngressRulesNode) { @@ -67,6 +69,8 @@ void ListTrafficMirrorFiltersResult::parse(const std::string &payload) ingressRulesObject.trafficDirection = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficDirection"].asString(); if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Protocol"].isNull()) ingressRulesObject.protocol = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["Protocol"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["IpVersion"].isNull()) + ingressRulesObject.ipVersion = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["IpVersion"].asString(); if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["DestinationPortRange"].isNull()) ingressRulesObject.destinationPortRange = valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["DestinationPortRange"].asString(); if(!valueTrafficMirrorFiltersTrafficMirrorFilterIngressRulesTrafficMirrorRule["TrafficMirrorFilterRuleId"].isNull()) @@ -95,6 +99,8 @@ void ListTrafficMirrorFiltersResult::parse(const std::string &payload) egressRulesObject.trafficDirection = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficDirection"].asString(); if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Protocol"].isNull()) egressRulesObject.protocol = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["Protocol"].asString(); + if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["IpVersion"].isNull()) + egressRulesObject.ipVersion = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["IpVersion"].asString(); if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["DestinationPortRange"].isNull()) egressRulesObject.destinationPortRange = valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["DestinationPortRange"].asString(); if(!valueTrafficMirrorFiltersTrafficMirrorFilterEgressRulesTrafficMirrorRule["TrafficMirrorFilterRuleId"].isNull()) @@ -125,6 +131,10 @@ void ListTrafficMirrorFiltersResult::parse(const std::string &payload) nextToken_ = value["NextToken"].asString(); if(!value["TotalCount"].isNull()) totalCount_ = value["TotalCount"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); } @@ -143,3 +153,13 @@ std::string ListTrafficMirrorFiltersResult::getNextToken()const return nextToken_; } +int ListTrafficMirrorFiltersResult::getMaxResults()const +{ + return maxResults_; +} + +int ListTrafficMirrorFiltersResult::getCount()const +{ + return count_; +} + diff --git a/vpc/src/model/ListTrafficMirrorSessionsResult.cc b/vpc/src/model/ListTrafficMirrorSessionsResult.cc index 4d3cd76e3..aee30a65c 100644 --- a/vpc/src/model/ListTrafficMirrorSessionsResult.cc +++ b/vpc/src/model/ListTrafficMirrorSessionsResult.cc @@ -69,6 +69,10 @@ void ListTrafficMirrorSessionsResult::parse(const std::string &payload) trafficMirrorSessionsObject.trafficMirrorSessionName = valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSessionName"].asString(); if(!valueTrafficMirrorSessionsTrafficMirrorSession["ResourceGroupId"].isNull()) trafficMirrorSessionsObject.resourceGroupId = valueTrafficMirrorSessionsTrafficMirrorSession["ResourceGroupId"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["CreationTime"].isNull()) + trafficMirrorSessionsObject.creationTime = valueTrafficMirrorSessionsTrafficMirrorSession["CreationTime"].asString(); + if(!valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSourceTruncateMode"].isNull()) + trafficMirrorSessionsObject.trafficMirrorSourceTruncateMode = std::stoi(valueTrafficMirrorSessionsTrafficMirrorSession["TrafficMirrorSourceTruncateMode"].asString()); auto allTagsNode = valueTrafficMirrorSessionsTrafficMirrorSession["Tags"]["Tag"]; for (auto valueTrafficMirrorSessionsTrafficMirrorSessionTagsTag : allTagsNode) { diff --git a/vpc/src/model/ListVSwitchCidrReservationsRequest.cc b/vpc/src/model/ListVSwitchCidrReservationsRequest.cc new file mode 100644 index 000000000..6f97b686f --- /dev/null +++ b/vpc/src/model/ListVSwitchCidrReservationsRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ListVSwitchCidrReservationsRequest; + +ListVSwitchCidrReservationsRequest::ListVSwitchCidrReservationsRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListVSwitchCidrReservations") { + setMethod(HttpRequest::Method::Post); +} + +ListVSwitchCidrReservationsRequest::~ListVSwitchCidrReservationsRequest() {} + +long ListVSwitchCidrReservationsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListVSwitchCidrReservationsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListVSwitchCidrReservationsRequest::getVSwitchCidrReservationType() const { + return vSwitchCidrReservationType_; +} + +void ListVSwitchCidrReservationsRequest::setVSwitchCidrReservationType(const std::string &vSwitchCidrReservationType) { + vSwitchCidrReservationType_ = vSwitchCidrReservationType; + setParameter(std::string("VSwitchCidrReservationType"), vSwitchCidrReservationType); +} + +std::string ListVSwitchCidrReservationsRequest::getNextToken() const { + return nextToken_; +} + +void ListVSwitchCidrReservationsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector ListVSwitchCidrReservationsRequest::getVSwitchCidrReservationIds() const { + return vSwitchCidrReservationIds_; +} + +void ListVSwitchCidrReservationsRequest::setVSwitchCidrReservationIds(const std::vector &vSwitchCidrReservationIds) { + vSwitchCidrReservationIds_ = vSwitchCidrReservationIds; +} + +std::string ListVSwitchCidrReservationsRequest::getRegionId() const { + return regionId_; +} + +void ListVSwitchCidrReservationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListVSwitchCidrReservationsRequest::getIpVersion() const { + return ipVersion_; +} + +void ListVSwitchCidrReservationsRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); +} + +std::string ListVSwitchCidrReservationsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListVSwitchCidrReservationsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListVSwitchCidrReservationsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListVSwitchCidrReservationsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListVSwitchCidrReservationsRequest::getOwnerId() const { + return ownerId_; +} + +void ListVSwitchCidrReservationsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector ListVSwitchCidrReservationsRequest::getTags() const { + return tags_; +} + +void ListVSwitchCidrReservationsRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Key", tagsObj.key); + setParameter(tagsObjStr + ".Value", tagsObj.value); + } +} + +std::string ListVSwitchCidrReservationsRequest::getVSwitchId() const { + return vSwitchId_; +} + +void ListVSwitchCidrReservationsRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +long ListVSwitchCidrReservationsRequest::getMaxResults() const { + return maxResults_; +} + +void ListVSwitchCidrReservationsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListVSwitchCidrReservationsResult.cc b/vpc/src/model/ListVSwitchCidrReservationsResult.cc new file mode 100644 index 000000000..622456fed --- /dev/null +++ b/vpc/src/model/ListVSwitchCidrReservationsResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListVSwitchCidrReservationsResult::ListVSwitchCidrReservationsResult() : + ServiceResult() +{} + +ListVSwitchCidrReservationsResult::ListVSwitchCidrReservationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVSwitchCidrReservationsResult::~ListVSwitchCidrReservationsResult() +{} + +void ListVSwitchCidrReservationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVSwitchCidrReservationsNode = value["VSwitchCidrReservations"]["VSwitchCidrReservation"]; + for (auto valueVSwitchCidrReservationsVSwitchCidrReservation : allVSwitchCidrReservationsNode) + { + VSwitchCidrReservation vSwitchCidrReservationsObject; + if(!valueVSwitchCidrReservationsVSwitchCidrReservation["VpcId"].isNull()) + vSwitchCidrReservationsObject.vpcId = valueVSwitchCidrReservationsVSwitchCidrReservation["VpcId"].asString(); + if(!valueVSwitchCidrReservationsVSwitchCidrReservation["VSwitchId"].isNull()) + vSwitchCidrReservationsObject.vSwitchId = valueVSwitchCidrReservationsVSwitchCidrReservation["VSwitchId"].asString(); + if(!valueVSwitchCidrReservationsVSwitchCidrReservation["VSwitchCidrReservationId"].isNull()) + vSwitchCidrReservationsObject.vSwitchCidrReservationId = valueVSwitchCidrReservationsVSwitchCidrReservation["VSwitchCidrReservationId"].asString(); + if(!valueVSwitchCidrReservationsVSwitchCidrReservation["VSwitchCidrReservationCidr"].isNull()) + vSwitchCidrReservationsObject.vSwitchCidrReservationCidr = valueVSwitchCidrReservationsVSwitchCidrReservation["VSwitchCidrReservationCidr"].asString(); + if(!valueVSwitchCidrReservationsVSwitchCidrReservation["VSwitchCidrReservationName"].isNull()) + vSwitchCidrReservationsObject.vSwitchCidrReservationName = valueVSwitchCidrReservationsVSwitchCidrReservation["VSwitchCidrReservationName"].asString(); + if(!valueVSwitchCidrReservationsVSwitchCidrReservation["VSwitchCidrReservationDescription"].isNull()) + vSwitchCidrReservationsObject.vSwitchCidrReservationDescription = valueVSwitchCidrReservationsVSwitchCidrReservation["VSwitchCidrReservationDescription"].asString(); + if(!valueVSwitchCidrReservationsVSwitchCidrReservation["IpVersion"].isNull()) + vSwitchCidrReservationsObject.ipVersion = valueVSwitchCidrReservationsVSwitchCidrReservation["IpVersion"].asString(); + if(!valueVSwitchCidrReservationsVSwitchCidrReservation["CreationTime"].isNull()) + vSwitchCidrReservationsObject.creationTime = valueVSwitchCidrReservationsVSwitchCidrReservation["CreationTime"].asString(); + if(!valueVSwitchCidrReservationsVSwitchCidrReservation["Type"].isNull()) + vSwitchCidrReservationsObject.type = valueVSwitchCidrReservationsVSwitchCidrReservation["Type"].asString(); + if(!valueVSwitchCidrReservationsVSwitchCidrReservation["AvailableCidrCount"].isNull()) + vSwitchCidrReservationsObject.availableCidrCount = std::stoi(valueVSwitchCidrReservationsVSwitchCidrReservation["AvailableCidrCount"].asString()); + if(!valueVSwitchCidrReservationsVSwitchCidrReservation["AssignedCidrCount"].isNull()) + vSwitchCidrReservationsObject.assignedCidrCount = std::stoi(valueVSwitchCidrReservationsVSwitchCidrReservation["AssignedCidrCount"].asString()); + if(!valueVSwitchCidrReservationsVSwitchCidrReservation["Status"].isNull()) + vSwitchCidrReservationsObject.status = valueVSwitchCidrReservationsVSwitchCidrReservation["Status"].asString(); + auto allTagsNode = valueVSwitchCidrReservationsVSwitchCidrReservation["Tags"]["Tag"]; + for (auto valueVSwitchCidrReservationsVSwitchCidrReservationTagsTag : allTagsNode) + { + VSwitchCidrReservation::Tag tagsObject; + if(!valueVSwitchCidrReservationsVSwitchCidrReservationTagsTag["Key"].isNull()) + tagsObject.key = valueVSwitchCidrReservationsVSwitchCidrReservationTagsTag["Key"].asString(); + if(!valueVSwitchCidrReservationsVSwitchCidrReservationTagsTag["Value"].isNull()) + tagsObject.value = valueVSwitchCidrReservationsVSwitchCidrReservationTagsTag["Value"].asString(); + vSwitchCidrReservationsObject.tags.push_back(tagsObject); + } + vSwitchCidrReservations_.push_back(vSwitchCidrReservationsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stol(value["MaxResults"].asString()); + +} + +long ListVSwitchCidrReservationsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListVSwitchCidrReservationsResult::getVSwitchCidrReservations()const +{ + return vSwitchCidrReservations_; +} + +std::string ListVSwitchCidrReservationsResult::getNextToken()const +{ + return nextToken_; +} + +long ListVSwitchCidrReservationsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/vpc/src/model/ListVirtualPhysicalConnectionsResult.cc b/vpc/src/model/ListVirtualPhysicalConnectionsResult.cc index f37511054..0b3f81970 100644 --- a/vpc/src/model/ListVirtualPhysicalConnectionsResult.cc +++ b/vpc/src/model/ListVirtualPhysicalConnectionsResult.cc @@ -103,6 +103,16 @@ void ListVirtualPhysicalConnectionsResult::parse(const std::string &payload) virtualPhysicalConnectionsObject.expectSpec = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ExpectSpec"].asString(); if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ResourceGroupId"].isNull()) virtualPhysicalConnectionsObject.resourceGroupId = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["ResourceGroupId"].asString(); + auto allTagsNode = valueVirtualPhysicalConnectionsVirtualPhysicalConnection["Tags"]["tagsItem"]; + for (auto valueVirtualPhysicalConnectionsVirtualPhysicalConnectionTagstagsItem : allTagsNode) + { + VirtualPhysicalConnection::TagsItem tagsObject; + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnectionTagstagsItem["Key"].isNull()) + tagsObject.key = valueVirtualPhysicalConnectionsVirtualPhysicalConnectionTagstagsItem["Key"].asString(); + if(!valueVirtualPhysicalConnectionsVirtualPhysicalConnectionTagstagsItem["Value"].isNull()) + tagsObject.value = valueVirtualPhysicalConnectionsVirtualPhysicalConnectionTagstagsItem["Value"].asString(); + virtualPhysicalConnectionsObject.tags.push_back(tagsObject); + } virtualPhysicalConnections_.push_back(virtualPhysicalConnectionsObject); } if(!value["NextToken"].isNull()) diff --git a/vpc/src/model/ListVpcEndpointServicesByEndUserResult.cc b/vpc/src/model/ListVpcEndpointServicesByEndUserResult.cc index 83435bb31..759bcfd0c 100644 --- a/vpc/src/model/ListVpcEndpointServicesByEndUserResult.cc +++ b/vpc/src/model/ListVpcEndpointServicesByEndUserResult.cc @@ -59,6 +59,8 @@ void ListVpcEndpointServicesByEndUserResult::parse(const std::string &payload) nextToken_ = value["NextToken"].asString(); if(!value["MaxResults"].isNull()) maxResults_ = std::stol(value["MaxResults"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); } @@ -67,6 +69,11 @@ std::vector ListVpcEndpointServ return services_; } +std::string ListVpcEndpointServicesByEndUserResult::getTotalCount()const +{ + return totalCount_; +} + std::string ListVpcEndpointServicesByEndUserResult::getNextToken()const { return nextToken_; diff --git a/vpc/src/model/ListVpcGatewayEndpointsRequest.cc b/vpc/src/model/ListVpcGatewayEndpointsRequest.cc index 581d3ed3a..67889a9db 100644 --- a/vpc/src/model/ListVpcGatewayEndpointsRequest.cc +++ b/vpc/src/model/ListVpcGatewayEndpointsRequest.cc @@ -43,6 +43,15 @@ void ListVpcGatewayEndpointsRequest::setEndpointId(const std::string &endpointId setParameter(std::string("EndpointId"), endpointId); } +std::string ListVpcGatewayEndpointsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListVpcGatewayEndpointsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string ListVpcGatewayEndpointsRequest::getNextToken() const { return nextToken_; } @@ -97,6 +106,20 @@ void ListVpcGatewayEndpointsRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::vector ListVpcGatewayEndpointsRequest::getTags() const { + return tags_; +} + +void ListVpcGatewayEndpointsRequest::setTags(const std::vector &tags) { + tags_ = tags; + for(int dep1 = 0; dep1 != tags.size(); dep1++) { + auto tagsObj = tags.at(dep1); + std::string tagsObjStr = std::string("Tags") + "." + std::to_string(dep1 + 1); + setParameter(tagsObjStr + ".Key", tagsObj.key); + setParameter(tagsObjStr + ".Value", tagsObj.value); + } +} + std::string ListVpcGatewayEndpointsRequest::getEndpointName() const { return endpointName_; } @@ -106,6 +129,15 @@ void ListVpcGatewayEndpointsRequest::setEndpointName(const std::string &endpoint setParameter(std::string("EndpointName"), endpointName); } +std::string ListVpcGatewayEndpointsRequest::getVpcId() const { + return vpcId_; +} + +void ListVpcGatewayEndpointsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + long ListVpcGatewayEndpointsRequest::getMaxResults() const { return maxResults_; } diff --git a/vpc/src/model/ListVpcGatewayEndpointsResult.cc b/vpc/src/model/ListVpcGatewayEndpointsResult.cc index b776d00d9..8be5594b2 100644 --- a/vpc/src/model/ListVpcGatewayEndpointsResult.cc +++ b/vpc/src/model/ListVpcGatewayEndpointsResult.cc @@ -59,6 +59,18 @@ void ListVpcGatewayEndpointsResult::parse(const std::string &payload) endpointsObject.creationTime = valueEndpointsEndpoint["CreationTime"].asString(); if(!valueEndpointsEndpoint["EndpointStatus"].isNull()) endpointsObject.endpointStatus = valueEndpointsEndpoint["EndpointStatus"].asString(); + if(!valueEndpointsEndpoint["ResourceGroupId"].isNull()) + endpointsObject.resourceGroupId = valueEndpointsEndpoint["ResourceGroupId"].asString(); + auto allTagsNode = valueEndpointsEndpoint["Tags"]["Tag"]; + for (auto valueEndpointsEndpointTagsTag : allTagsNode) + { + Endpoint::Tag tagsObject; + if(!valueEndpointsEndpointTagsTag["Key"].isNull()) + tagsObject.key = valueEndpointsEndpointTagsTag["Key"].asString(); + if(!valueEndpointsEndpointTagsTag["Value"].isNull()) + tagsObject.value = valueEndpointsEndpointTagsTag["Value"].asString(); + endpointsObject.tags.push_back(tagsObject); + } auto allAssociatedRouteTables = value["AssociatedRouteTables"]["RouteTable"]; for (auto value : allAssociatedRouteTables) endpointsObject.associatedRouteTables.push_back(value.asString()); diff --git a/vpc/src/model/ListVpcPublishedRouteEntriesRequest.cc b/vpc/src/model/ListVpcPublishedRouteEntriesRequest.cc new file mode 100644 index 000000000..980ccbe15 --- /dev/null +++ b/vpc/src/model/ListVpcPublishedRouteEntriesRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ListVpcPublishedRouteEntriesRequest; + +ListVpcPublishedRouteEntriesRequest::ListVpcPublishedRouteEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ListVpcPublishedRouteEntries") { + setMethod(HttpRequest::Method::Post); +} + +ListVpcPublishedRouteEntriesRequest::~ListVpcPublishedRouteEntriesRequest() {} + +long ListVpcPublishedRouteEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListVpcPublishedRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListVpcPublishedRouteEntriesRequest::getTargetType() const { + return targetType_; +} + +void ListVpcPublishedRouteEntriesRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::string ListVpcPublishedRouteEntriesRequest::getRegionId() const { + return regionId_; +} + +void ListVpcPublishedRouteEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListVpcPublishedRouteEntriesRequest::getNextToken() const { + return nextToken_; +} + +void ListVpcPublishedRouteEntriesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListVpcPublishedRouteEntriesRequest::getRouteTableId() const { + return routeTableId_; +} + +void ListVpcPublishedRouteEntriesRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); +} + +std::string ListVpcPublishedRouteEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListVpcPublishedRouteEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListVpcPublishedRouteEntriesRequest::getDestinationCidrBlock() const { + return destinationCidrBlock_; +} + +void ListVpcPublishedRouteEntriesRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) { + destinationCidrBlock_ = destinationCidrBlock; + setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock); +} + +std::string ListVpcPublishedRouteEntriesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListVpcPublishedRouteEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListVpcPublishedRouteEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void ListVpcPublishedRouteEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListVpcPublishedRouteEntriesRequest::getTargetInstanceId() const { + return targetInstanceId_; +} + +void ListVpcPublishedRouteEntriesRequest::setTargetInstanceId(const std::string &targetInstanceId) { + targetInstanceId_ = targetInstanceId; + setParameter(std::string("TargetInstanceId"), targetInstanceId); +} + +int ListVpcPublishedRouteEntriesRequest::getMaxResults() const { + return maxResults_; +} + +void ListVpcPublishedRouteEntriesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/vpc/src/model/ListVpcPublishedRouteEntriesResult.cc b/vpc/src/model/ListVpcPublishedRouteEntriesResult.cc new file mode 100644 index 000000000..2d56adf44 --- /dev/null +++ b/vpc/src/model/ListVpcPublishedRouteEntriesResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ListVpcPublishedRouteEntriesResult::ListVpcPublishedRouteEntriesResult() : + ServiceResult() +{} + +ListVpcPublishedRouteEntriesResult::ListVpcPublishedRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVpcPublishedRouteEntriesResult::~ListVpcPublishedRouteEntriesResult() +{} + +void ListVpcPublishedRouteEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRouteEntriesNode = value["RouteEntries"]["RouteEntry"]; + for (auto valueRouteEntriesRouteEntry : allRouteEntriesNode) + { + RouteEntry routeEntriesObject; + if(!valueRouteEntriesRouteEntry["RouteEntryId"].isNull()) + routeEntriesObject.routeEntryId = valueRouteEntriesRouteEntry["RouteEntryId"].asString(); + if(!valueRouteEntriesRouteEntry["DestinationCidrBlock"].isNull()) + routeEntriesObject.destinationCidrBlock = valueRouteEntriesRouteEntry["DestinationCidrBlock"].asString(); + if(!valueRouteEntriesRouteEntry["RouteTableId"].isNull()) + routeEntriesObject.routeTableId = valueRouteEntriesRouteEntry["RouteTableId"].asString(); + auto allRoutePublishTargetsNode = valueRouteEntriesRouteEntry["RoutePublishTargets"]["RoutePublishTarget"]; + for (auto valueRouteEntriesRouteEntryRoutePublishTargetsRoutePublishTarget : allRoutePublishTargetsNode) + { + RouteEntry::RoutePublishTarget routePublishTargetsObject; + if(!valueRouteEntriesRouteEntryRoutePublishTargetsRoutePublishTarget["PublishStatus"].isNull()) + routePublishTargetsObject.publishStatus = valueRouteEntriesRouteEntryRoutePublishTargetsRoutePublishTarget["PublishStatus"].asString(); + if(!valueRouteEntriesRouteEntryRoutePublishTargetsRoutePublishTarget["PublishTargetType"].isNull()) + routePublishTargetsObject.publishTargetType = valueRouteEntriesRouteEntryRoutePublishTargetsRoutePublishTarget["PublishTargetType"].asString(); + if(!valueRouteEntriesRouteEntryRoutePublishTargetsRoutePublishTarget["PublishTargetInstanceId"].isNull()) + routePublishTargetsObject.publishTargetInstanceId = valueRouteEntriesRouteEntryRoutePublishTargetsRoutePublishTarget["PublishTargetInstanceId"].asString(); + routeEntriesObject.routePublishTargets.push_back(routePublishTargetsObject); + } + routeEntries_.push_back(routeEntriesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::vector ListVpcPublishedRouteEntriesResult::getRouteEntries()const +{ + return routeEntries_; +} + +std::string ListVpcPublishedRouteEntriesResult::getNextToken()const +{ + return nextToken_; +} + diff --git a/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc b/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc index 4bc142dea..e03b02e01 100644 --- a/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc +++ b/vpc/src/model/ModifyCustomerGatewayAttributeResult.cc @@ -49,6 +49,8 @@ void ModifyCustomerGatewayAttributeResult::parse(const std::string &payload) createTime_ = std::stol(value["CreateTime"].asString()); if(!value["Name"].isNull()) name_ = value["Name"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -62,6 +64,11 @@ std::string ModifyCustomerGatewayAttributeResult::getCustomerGatewayId()const return customerGatewayId_; } +std::string ModifyCustomerGatewayAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + long ModifyCustomerGatewayAttributeResult::getCreateTime()const { return createTime_; diff --git a/vpc/src/model/ModifyEipForwardModeRequest.cc b/vpc/src/model/ModifyEipForwardModeRequest.cc new file mode 100644 index 000000000..c8ed76842 --- /dev/null +++ b/vpc/src/model/ModifyEipForwardModeRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyEipForwardModeRequest; + +ModifyEipForwardModeRequest::ModifyEipForwardModeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyEipForwardMode") { + setMethod(HttpRequest::Method::Post); +} + +ModifyEipForwardModeRequest::~ModifyEipForwardModeRequest() {} + +long ModifyEipForwardModeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyEipForwardModeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyEipForwardModeRequest::getClientToken() const { + return clientToken_; +} + +void ModifyEipForwardModeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyEipForwardModeRequest::getMode() const { + return mode_; +} + +void ModifyEipForwardModeRequest::setMode(const std::string &mode) { + mode_ = mode; + setParameter(std::string("Mode"), mode); +} + +std::string ModifyEipForwardModeRequest::getRegionId() const { + return regionId_; +} + +void ModifyEipForwardModeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyEipForwardModeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyEipForwardModeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long ModifyEipForwardModeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyEipForwardModeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyEipForwardModeRequest::getInstanceId() const { + return instanceId_; +} + +void ModifyEipForwardModeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/vpc/src/model/ModifyEipForwardModeResult.cc b/vpc/src/model/ModifyEipForwardModeResult.cc new file mode 100644 index 000000000..50f5d3a1e --- /dev/null +++ b/vpc/src/model/ModifyEipForwardModeResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyEipForwardModeResult::ModifyEipForwardModeResult() : + ServiceResult() +{} + +ModifyEipForwardModeResult::ModifyEipForwardModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEipForwardModeResult::~ModifyEipForwardModeResult() +{} + +void ModifyEipForwardModeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyExpressConnectTrafficQosQueueRequest.cc b/vpc/src/model/ModifyExpressConnectTrafficQosQueueRequest.cc new file mode 100644 index 000000000..b7dc98010 --- /dev/null +++ b/vpc/src/model/ModifyExpressConnectTrafficQosQueueRequest.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::Vpc::Model::ModifyExpressConnectTrafficQosQueueRequest; + +ModifyExpressConnectTrafficQosQueueRequest::ModifyExpressConnectTrafficQosQueueRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyExpressConnectTrafficQosQueue") { + setMethod(HttpRequest::Method::Post); +} + +ModifyExpressConnectTrafficQosQueueRequest::~ModifyExpressConnectTrafficQosQueueRequest() {} + +std::string ModifyExpressConnectTrafficQosQueueRequest::getQueueName() const { + return queueName_; +} + +void ModifyExpressConnectTrafficQosQueueRequest::setQueueName(const std::string &queueName) { + queueName_ = queueName; + setParameter(std::string("QueueName"), queueName); +} + +std::string ModifyExpressConnectTrafficQosQueueRequest::getClientToken() const { + return clientToken_; +} + +void ModifyExpressConnectTrafficQosQueueRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyExpressConnectTrafficQosQueueRequest::getQueueDescription() const { + return queueDescription_; +} + +void ModifyExpressConnectTrafficQosQueueRequest::setQueueDescription(const std::string &queueDescription) { + queueDescription_ = queueDescription; + setParameter(std::string("QueueDescription"), queueDescription); +} + +std::string ModifyExpressConnectTrafficQosQueueRequest::getRegionId() const { + return regionId_; +} + +void ModifyExpressConnectTrafficQosQueueRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyExpressConnectTrafficQosQueueRequest::getQosId() const { + return qosId_; +} + +void ModifyExpressConnectTrafficQosQueueRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); +} + +std::string ModifyExpressConnectTrafficQosQueueRequest::getQueueId() const { + return queueId_; +} + +void ModifyExpressConnectTrafficQosQueueRequest::setQueueId(const std::string &queueId) { + queueId_ = queueId; + setParameter(std::string("QueueId"), queueId); +} + +std::string ModifyExpressConnectTrafficQosQueueRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyExpressConnectTrafficQosQueueRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyExpressConnectTrafficQosQueueRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyExpressConnectTrafficQosQueueRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyExpressConnectTrafficQosQueueRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyExpressConnectTrafficQosQueueRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyExpressConnectTrafficQosQueueRequest::getBandwidthPercent() const { + return bandwidthPercent_; +} + +void ModifyExpressConnectTrafficQosQueueRequest::setBandwidthPercent(const std::string &bandwidthPercent) { + bandwidthPercent_ = bandwidthPercent; + setParameter(std::string("BandwidthPercent"), bandwidthPercent); +} + diff --git a/vpc/src/model/ModifyExpressConnectTrafficQosQueueResult.cc b/vpc/src/model/ModifyExpressConnectTrafficQosQueueResult.cc new file mode 100644 index 000000000..ef51282b3 --- /dev/null +++ b/vpc/src/model/ModifyExpressConnectTrafficQosQueueResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyExpressConnectTrafficQosQueueResult::ModifyExpressConnectTrafficQosQueueResult() : + ServiceResult() +{} + +ModifyExpressConnectTrafficQosQueueResult::ModifyExpressConnectTrafficQosQueueResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyExpressConnectTrafficQosQueueResult::~ModifyExpressConnectTrafficQosQueueResult() +{} + +void ModifyExpressConnectTrafficQosQueueResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyExpressConnectTrafficQosRequest.cc b/vpc/src/model/ModifyExpressConnectTrafficQosRequest.cc new file mode 100644 index 000000000..215e73e2c --- /dev/null +++ b/vpc/src/model/ModifyExpressConnectTrafficQosRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyExpressConnectTrafficQosRequest; + +ModifyExpressConnectTrafficQosRequest::ModifyExpressConnectTrafficQosRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyExpressConnectTrafficQos") { + setMethod(HttpRequest::Method::Post); +} + +ModifyExpressConnectTrafficQosRequest::~ModifyExpressConnectTrafficQosRequest() {} + +std::string ModifyExpressConnectTrafficQosRequest::getClientToken() const { + return clientToken_; +} + +void ModifyExpressConnectTrafficQosRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::vector ModifyExpressConnectTrafficQosRequest::getRemoveInstanceList() const { + return removeInstanceList_; +} + +void ModifyExpressConnectTrafficQosRequest::setRemoveInstanceList(const std::vector &removeInstanceList) { + removeInstanceList_ = removeInstanceList; + for(int dep1 = 0; dep1 != removeInstanceList.size(); dep1++) { + auto removeInstanceListObj = removeInstanceList.at(dep1); + std::string removeInstanceListObjStr = std::string("RemoveInstanceList") + "." + std::to_string(dep1 + 1); + setParameter(removeInstanceListObjStr + ".InstanceId", removeInstanceListObj.instanceId); + setParameter(removeInstanceListObjStr + ".InstanceType", removeInstanceListObj.instanceType); + } +} + +std::vector ModifyExpressConnectTrafficQosRequest::getAddInstanceList() const { + return addInstanceList_; +} + +void ModifyExpressConnectTrafficQosRequest::setAddInstanceList(const std::vector &addInstanceList) { + addInstanceList_ = addInstanceList; + for(int dep1 = 0; dep1 != addInstanceList.size(); dep1++) { + auto addInstanceListObj = addInstanceList.at(dep1); + std::string addInstanceListObjStr = std::string("AddInstanceList") + "." + std::to_string(dep1 + 1); + setParameter(addInstanceListObjStr + ".InstanceId", addInstanceListObj.instanceId); + setParameter(addInstanceListObjStr + ".InstanceType", addInstanceListObj.instanceType); + } +} + +std::string ModifyExpressConnectTrafficQosRequest::getRegionId() const { + return regionId_; +} + +void ModifyExpressConnectTrafficQosRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyExpressConnectTrafficQosRequest::getQosId() const { + return qosId_; +} + +void ModifyExpressConnectTrafficQosRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); +} + +std::string ModifyExpressConnectTrafficQosRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyExpressConnectTrafficQosRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyExpressConnectTrafficQosRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyExpressConnectTrafficQosRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyExpressConnectTrafficQosRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyExpressConnectTrafficQosRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyExpressConnectTrafficQosRequest::getQosName() const { + return qosName_; +} + +void ModifyExpressConnectTrafficQosRequest::setQosName(const std::string &qosName) { + qosName_ = qosName; + setParameter(std::string("QosName"), qosName); +} + +std::string ModifyExpressConnectTrafficQosRequest::getQosDescription() const { + return qosDescription_; +} + +void ModifyExpressConnectTrafficQosRequest::setQosDescription(const std::string &qosDescription) { + qosDescription_ = qosDescription; + setParameter(std::string("QosDescription"), qosDescription); +} + diff --git a/vpc/src/model/ModifyExpressConnectTrafficQosResult.cc b/vpc/src/model/ModifyExpressConnectTrafficQosResult.cc new file mode 100644 index 000000000..01a354d4a --- /dev/null +++ b/vpc/src/model/ModifyExpressConnectTrafficQosResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyExpressConnectTrafficQosResult::ModifyExpressConnectTrafficQosResult() : + ServiceResult() +{} + +ModifyExpressConnectTrafficQosResult::ModifyExpressConnectTrafficQosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyExpressConnectTrafficQosResult::~ModifyExpressConnectTrafficQosResult() +{} + +void ModifyExpressConnectTrafficQosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyExpressConnectTrafficQosRuleRequest.cc b/vpc/src/model/ModifyExpressConnectTrafficQosRuleRequest.cc new file mode 100644 index 000000000..da7e7bbfb --- /dev/null +++ b/vpc/src/model/ModifyExpressConnectTrafficQosRuleRequest.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::Vpc::Model::ModifyExpressConnectTrafficQosRuleRequest; + +ModifyExpressConnectTrafficQosRuleRequest::ModifyExpressConnectTrafficQosRuleRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyExpressConnectTrafficQosRule") { + setMethod(HttpRequest::Method::Post); +} + +ModifyExpressConnectTrafficQosRuleRequest::~ModifyExpressConnectTrafficQosRuleRequest() {} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getDstCidr() const { + return dstCidr_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setDstCidr(const std::string &dstCidr) { + dstCidr_ = dstCidr; + setParameter(std::string("DstCidr"), dstCidr); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getClientToken() const { + return clientToken_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getRuleName() const { + return ruleName_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getSrcCidr() const { + return srcCidr_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setSrcCidr(const std::string &srcCidr) { + srcCidr_ = srcCidr; + setParameter(std::string("SrcCidr"), srcCidr); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getDstIPv6Cidr() const { + return dstIPv6Cidr_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setDstIPv6Cidr(const std::string &dstIPv6Cidr) { + dstIPv6Cidr_ = dstIPv6Cidr; + setParameter(std::string("DstIPv6Cidr"), dstIPv6Cidr); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getDstPortRange() const { + return dstPortRange_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setDstPortRange(const std::string &dstPortRange) { + dstPortRange_ = dstPortRange; + setParameter(std::string("DstPortRange"), dstPortRange); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getProtocol() const { + return protocol_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getRegionId() const { + return regionId_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getQosId() const { + return qosId_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setQosId(const std::string &qosId) { + qosId_ = qosId; + setParameter(std::string("QosId"), qosId); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getQueueId() const { + return queueId_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setQueueId(const std::string &queueId) { + queueId_ = queueId; + setParameter(std::string("QueueId"), queueId); +} + +int ModifyExpressConnectTrafficQosRuleRequest::getMatchDscp() const { + return matchDscp_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setMatchDscp(int matchDscp) { + matchDscp_ = matchDscp; + setParameter(std::string("MatchDscp"), std::to_string(matchDscp)); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getRuleDescription() const { + return ruleDescription_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setRuleDescription(const std::string &ruleDescription) { + ruleDescription_ = ruleDescription; + setParameter(std::string("RuleDescription"), ruleDescription); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +int ModifyExpressConnectTrafficQosRuleRequest::getRemarkingDscp() const { + return remarkingDscp_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setRemarkingDscp(int remarkingDscp) { + remarkingDscp_ = remarkingDscp; + setParameter(std::string("RemarkingDscp"), std::to_string(remarkingDscp)); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +int ModifyExpressConnectTrafficQosRuleRequest::getPriority() const { + return priority_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + +long ModifyExpressConnectTrafficQosRuleRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getSrcPortRange() const { + return srcPortRange_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setSrcPortRange(const std::string &srcPortRange) { + srcPortRange_ = srcPortRange; + setParameter(std::string("SrcPortRange"), srcPortRange); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getRuleId() const { + return ruleId_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); +} + +std::string ModifyExpressConnectTrafficQosRuleRequest::getSrcIPv6Cidr() const { + return srcIPv6Cidr_; +} + +void ModifyExpressConnectTrafficQosRuleRequest::setSrcIPv6Cidr(const std::string &srcIPv6Cidr) { + srcIPv6Cidr_ = srcIPv6Cidr; + setParameter(std::string("SrcIPv6Cidr"), srcIPv6Cidr); +} + diff --git a/vpc/src/model/ModifyExpressConnectTrafficQosRuleResult.cc b/vpc/src/model/ModifyExpressConnectTrafficQosRuleResult.cc new file mode 100644 index 000000000..0782ebf80 --- /dev/null +++ b/vpc/src/model/ModifyExpressConnectTrafficQosRuleResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyExpressConnectTrafficQosRuleResult::ModifyExpressConnectTrafficQosRuleResult() : + ServiceResult() +{} + +ModifyExpressConnectTrafficQosRuleResult::ModifyExpressConnectTrafficQosRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyExpressConnectTrafficQosRuleResult::~ModifyExpressConnectTrafficQosRuleResult() +{} + +void ModifyExpressConnectTrafficQosRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyFlowLogAttributeRequest.cc b/vpc/src/model/ModifyFlowLogAttributeRequest.cc index 701bbbc55..75a8837b1 100644 --- a/vpc/src/model/ModifyFlowLogAttributeRequest.cc +++ b/vpc/src/model/ModifyFlowLogAttributeRequest.cc @@ -43,6 +43,15 @@ void ModifyFlowLogAttributeRequest::setDescription(const std::string &descriptio setParameter(std::string("Description"), description); } +bool ModifyFlowLogAttributeRequest::getEnableTrafficAnalyze() const { + return enableTrafficAnalyze_; +} + +void ModifyFlowLogAttributeRequest::setEnableTrafficAnalyze(bool enableTrafficAnalyze) { + enableTrafficAnalyze_ = enableTrafficAnalyze; + setParameter(std::string("EnableTrafficAnalyze"), enableTrafficAnalyze ? "true" : "false"); +} + std::string ModifyFlowLogAttributeRequest::getRegionId() const { return regionId_; } @@ -52,6 +61,33 @@ void ModifyFlowLogAttributeRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +bool ModifyFlowLogAttributeRequest::getDisableLogDelivery() const { + return disableLogDelivery_; +} + +void ModifyFlowLogAttributeRequest::setDisableLogDelivery(bool disableLogDelivery) { + disableLogDelivery_ = disableLogDelivery; + setParameter(std::string("DisableLogDelivery"), disableLogDelivery ? "true" : "false"); +} + +std::string ModifyFlowLogAttributeRequest::getIpVersion() const { + return ipVersion_; +} + +void ModifyFlowLogAttributeRequest::setIpVersion(const std::string &ipVersion) { + ipVersion_ = ipVersion; + setParameter(std::string("IpVersion"), ipVersion); +} + +bool ModifyFlowLogAttributeRequest::getEnableLogDelivery() const { + return enableLogDelivery_; +} + +void ModifyFlowLogAttributeRequest::setEnableLogDelivery(bool enableLogDelivery) { + enableLogDelivery_ = enableLogDelivery; + setParameter(std::string("EnableLogDelivery"), enableLogDelivery ? "true" : "false"); +} + std::string ModifyFlowLogAttributeRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -106,3 +142,12 @@ void ModifyFlowLogAttributeRequest::setFlowLogName(const std::string &flowLogNam setParameter(std::string("FlowLogName"), flowLogName); } +std::string ModifyFlowLogAttributeRequest::getTrafficAnalyzerId() const { + return trafficAnalyzerId_; +} + +void ModifyFlowLogAttributeRequest::setTrafficAnalyzerId(const std::string &trafficAnalyzerId) { + trafficAnalyzerId_ = trafficAnalyzerId; + setParameter(std::string("TrafficAnalyzerId"), trafficAnalyzerId); +} + diff --git a/vpc/src/model/ModifyForwardEntryRequest.cc b/vpc/src/model/ModifyForwardEntryRequest.cc index 6defcfb35..0408a5769 100644 --- a/vpc/src/model/ModifyForwardEntryRequest.cc +++ b/vpc/src/model/ModifyForwardEntryRequest.cc @@ -88,6 +88,15 @@ void ModifyForwardEntryRequest::setExternalIp(const std::string &externalIp) { setParameter(std::string("ExternalIp"), externalIp); } +bool ModifyForwardEntryRequest::getDryRun() const { + return dryRun_; +} + +void ModifyForwardEntryRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string ModifyForwardEntryRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/ModifyIpv6AddressAttributeRequest.cc b/vpc/src/model/ModifyIpv6AddressAttributeRequest.cc index 8f4016473..a12b4208d 100644 --- a/vpc/src/model/ModifyIpv6AddressAttributeRequest.cc +++ b/vpc/src/model/ModifyIpv6AddressAttributeRequest.cc @@ -34,6 +34,15 @@ void ModifyIpv6AddressAttributeRequest::setResourceOwnerId(long resourceOwnerId) setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string ModifyIpv6AddressAttributeRequest::getClientToken() const { + return clientToken_; +} + +void ModifyIpv6AddressAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + std::string ModifyIpv6AddressAttributeRequest::getDescription() const { return description_; } @@ -52,6 +61,15 @@ void ModifyIpv6AddressAttributeRequest::setRegionId(const std::string ®ionId) setParameter(std::string("RegionId"), regionId); } +bool ModifyIpv6AddressAttributeRequest::getDryRun() const { + return dryRun_; +} + +void ModifyIpv6AddressAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string ModifyIpv6AddressAttributeRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/ModifyIpv6GatewayAttributeRequest.cc b/vpc/src/model/ModifyIpv6GatewayAttributeRequest.cc index 9102aaa21..9b9a4e4c7 100644 --- a/vpc/src/model/ModifyIpv6GatewayAttributeRequest.cc +++ b/vpc/src/model/ModifyIpv6GatewayAttributeRequest.cc @@ -34,6 +34,15 @@ void ModifyIpv6GatewayAttributeRequest::setResourceOwnerId(long resourceOwnerId) setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string ModifyIpv6GatewayAttributeRequest::getClientToken() const { + return clientToken_; +} + +void ModifyIpv6GatewayAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + std::string ModifyIpv6GatewayAttributeRequest::getDescription() const { return description_; } @@ -52,6 +61,15 @@ void ModifyIpv6GatewayAttributeRequest::setRegionId(const std::string ®ionId) setParameter(std::string("RegionId"), regionId); } +bool ModifyIpv6GatewayAttributeRequest::getDryRun() const { + return dryRun_; +} + +void ModifyIpv6GatewayAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string ModifyIpv6GatewayAttributeRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/ModifyIpv6GatewaySpecRequest.cc b/vpc/src/model/ModifyIpv6GatewaySpecRequest.cc deleted file mode 100644 index d69ea0f85..000000000 --- a/vpc/src/model/ModifyIpv6GatewaySpecRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Vpc::Model::ModifyIpv6GatewaySpecRequest; - -ModifyIpv6GatewaySpecRequest::ModifyIpv6GatewaySpecRequest() - : RpcServiceRequest("vpc", "2016-04-28", "ModifyIpv6GatewaySpec") { - setMethod(HttpRequest::Method::Post); -} - -ModifyIpv6GatewaySpecRequest::~ModifyIpv6GatewaySpecRequest() {} - -long ModifyIpv6GatewaySpecRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ModifyIpv6GatewaySpecRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string ModifyIpv6GatewaySpecRequest::getClientToken() const { - return clientToken_; -} - -void ModifyIpv6GatewaySpecRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string ModifyIpv6GatewaySpecRequest::getSpec() const { - return spec_; -} - -void ModifyIpv6GatewaySpecRequest::setSpec(const std::string &spec) { - spec_ = spec; - setParameter(std::string("Spec"), spec); -} - -std::string ModifyIpv6GatewaySpecRequest::getRegionId() const { - return regionId_; -} - -void ModifyIpv6GatewaySpecRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ModifyIpv6GatewaySpecRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ModifyIpv6GatewaySpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string ModifyIpv6GatewaySpecRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ModifyIpv6GatewaySpecRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long ModifyIpv6GatewaySpecRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyIpv6GatewaySpecRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string ModifyIpv6GatewaySpecRequest::getIpv6GatewayId() const { - return ipv6GatewayId_; -} - -void ModifyIpv6GatewaySpecRequest::setIpv6GatewayId(const std::string &ipv6GatewayId) { - ipv6GatewayId_ = ipv6GatewayId; - setParameter(std::string("Ipv6GatewayId"), ipv6GatewayId); -} - diff --git a/vpc/src/model/ModifyIpv6InternetBandwidthRequest.cc b/vpc/src/model/ModifyIpv6InternetBandwidthRequest.cc index e8cd49ebe..7359b1416 100644 --- a/vpc/src/model/ModifyIpv6InternetBandwidthRequest.cc +++ b/vpc/src/model/ModifyIpv6InternetBandwidthRequest.cc @@ -61,6 +61,15 @@ void ModifyIpv6InternetBandwidthRequest::setRegionId(const std::string ®ionId setParameter(std::string("RegionId"), regionId); } +bool ModifyIpv6InternetBandwidthRequest::getDryRun() const { + return dryRun_; +} + +void ModifyIpv6InternetBandwidthRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + long ModifyIpv6InternetBandwidthRequest::getBandwidth() const { return bandwidth_; } diff --git a/vpc/src/model/ModifyNatGatewayAttributeRequest.cc b/vpc/src/model/ModifyNatGatewayAttributeRequest.cc index ed90dca7a..c5be30f50 100644 --- a/vpc/src/model/ModifyNatGatewayAttributeRequest.cc +++ b/vpc/src/model/ModifyNatGatewayAttributeRequest.cc @@ -52,6 +52,16 @@ void ModifyNatGatewayAttributeRequest::setDescription(const std::string &descrip setParameter(std::string("Description"), description); } +ModifyNatGatewayAttributeRequest::LogDelivery ModifyNatGatewayAttributeRequest::getLogDelivery() const { + return logDelivery_; +} + +void ModifyNatGatewayAttributeRequest::setLogDelivery(const ModifyNatGatewayAttributeRequest::LogDelivery &logDelivery) { + logDelivery_ = logDelivery; + setParameter(std::string("LogDelivery") + ".LogDeliveryType", logDelivery.logDeliveryType); + setParameter(std::string("LogDelivery") + ".LogDestination", logDelivery.logDestination); +} + bool ModifyNatGatewayAttributeRequest::getIcmpReplyEnabled() const { return icmpReplyEnabled_; } @@ -115,6 +125,15 @@ void ModifyNatGatewayAttributeRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +bool ModifyNatGatewayAttributeRequest::getEnableSessionLog() const { + return enableSessionLog_; +} + +void ModifyNatGatewayAttributeRequest::setEnableSessionLog(bool enableSessionLog) { + enableSessionLog_ = enableSessionLog; + setParameter(std::string("EnableSessionLog"), enableSessionLog ? "true" : "false"); +} + std::string ModifyNatGatewayAttributeRequest::getName() const { return name_; } diff --git a/vpc/src/model/ModifyNetworkAclAttributesRequest.cc b/vpc/src/model/ModifyNetworkAclAttributesRequest.cc index f3766f8f0..bef4d915b 100644 --- a/vpc/src/model/ModifyNetworkAclAttributesRequest.cc +++ b/vpc/src/model/ModifyNetworkAclAttributesRequest.cc @@ -70,6 +70,15 @@ void ModifyNetworkAclAttributesRequest::setNetworkAclId(const std::string &netwo setParameter(std::string("NetworkAclId"), networkAclId); } +bool ModifyNetworkAclAttributesRequest::getDryRun() const { + return dryRun_; +} + +void ModifyNetworkAclAttributesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string ModifyNetworkAclAttributesRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -79,6 +88,15 @@ void ModifyNetworkAclAttributesRequest::setResourceOwnerAccount(const std::strin setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } +std::string ModifyNetworkAclAttributesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyNetworkAclAttributesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + std::string ModifyNetworkAclAttributesRequest::getNetworkAclName() const { return networkAclName_; } diff --git a/vpc/src/model/ModifyRouteEntryRequest.cc b/vpc/src/model/ModifyRouteEntryRequest.cc index c25ac3cb5..381ae1e8f 100644 --- a/vpc/src/model/ModifyRouteEntryRequest.cc +++ b/vpc/src/model/ModifyRouteEntryRequest.cc @@ -52,6 +52,15 @@ void ModifyRouteEntryRequest::setDescription(const std::string &description) { setParameter(std::string("Description"), description); } +std::string ModifyRouteEntryRequest::getNewNextHopId() const { + return newNextHopId_; +} + +void ModifyRouteEntryRequest::setNewNextHopId(const std::string &newNextHopId) { + newNextHopId_ = newNextHopId; + setParameter(std::string("NewNextHopId"), newNextHopId); +} + std::string ModifyRouteEntryRequest::getRegionId() const { return regionId_; } @@ -61,6 +70,24 @@ void ModifyRouteEntryRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string ModifyRouteEntryRequest::getRouteTableId() const { + return routeTableId_; +} + +void ModifyRouteEntryRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); +} + +bool ModifyRouteEntryRequest::getDryRun() const { + return dryRun_; +} + +void ModifyRouteEntryRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string ModifyRouteEntryRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -79,6 +106,15 @@ void ModifyRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { setParameter(std::string("OwnerAccount"), ownerAccount); } +std::string ModifyRouteEntryRequest::getDestinationCidrBlock() const { + return destinationCidrBlock_; +} + +void ModifyRouteEntryRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) { + destinationCidrBlock_ = destinationCidrBlock; + setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock); +} + long ModifyRouteEntryRequest::getOwnerId() const { return ownerId_; } @@ -88,6 +124,15 @@ void ModifyRouteEntryRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string ModifyRouteEntryRequest::getNewNextHopType() const { + return newNextHopType_; +} + +void ModifyRouteEntryRequest::setNewNextHopType(const std::string &newNextHopType) { + newNextHopType_ = newNextHopType; + setParameter(std::string("NewNextHopType"), newNextHopType); +} + std::string ModifyRouteEntryRequest::getRouteEntryId() const { return routeEntryId_; } diff --git a/vpc/src/model/ModifyRouteTableAttributesRequest.cc b/vpc/src/model/ModifyRouteTableAttributesRequest.cc index 1e9c0e26c..1f100ee1c 100644 --- a/vpc/src/model/ModifyRouteTableAttributesRequest.cc +++ b/vpc/src/model/ModifyRouteTableAttributesRequest.cc @@ -106,6 +106,15 @@ void ModifyRouteTableAttributesRequest::setOwnerAccount(const std::string &owner setParameter(std::string("OwnerAccount"), ownerAccount); } +bool ModifyRouteTableAttributesRequest::getRoutePropagationEnable() const { + return routePropagationEnable_; +} + +void ModifyRouteTableAttributesRequest::setRoutePropagationEnable(bool routePropagationEnable) { + routePropagationEnable_ = routePropagationEnable; + setParameter(std::string("RoutePropagationEnable"), routePropagationEnable ? "true" : "false"); +} + long ModifyRouteTableAttributesRequest::getOwnerId() const { return ownerId_; } diff --git a/vpc/src/model/ModifySnatEntryRequest.cc b/vpc/src/model/ModifySnatEntryRequest.cc index 6d3a6e19f..9838061da 100644 --- a/vpc/src/model/ModifySnatEntryRequest.cc +++ b/vpc/src/model/ModifySnatEntryRequest.cc @@ -61,6 +61,15 @@ void ModifySnatEntryRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +int ModifySnatEntryRequest::getEipAffinity() const { + return eipAffinity_; +} + +void ModifySnatEntryRequest::setEipAffinity(int eipAffinity) { + eipAffinity_ = eipAffinity; + setParameter(std::string("EipAffinity"), std::to_string(eipAffinity)); +} + std::string ModifySnatEntryRequest::getSnatEntryId() const { return snatEntryId_; } @@ -70,6 +79,15 @@ void ModifySnatEntryRequest::setSnatEntryId(const std::string &snatEntryId) { setParameter(std::string("SnatEntryId"), snatEntryId); } +bool ModifySnatEntryRequest::getDryRun() const { + return dryRun_; +} + +void ModifySnatEntryRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string ModifySnatEntryRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -115,3 +133,12 @@ void ModifySnatEntryRequest::setSnatEntryName(const std::string &snatEntryName) setParameter(std::string("SnatEntryName"), snatEntryName); } +std::string ModifySnatEntryRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void ModifySnatEntryRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); +} + diff --git a/vpc/src/model/ModifySslVpnServerRequest.cc b/vpc/src/model/ModifySslVpnServerRequest.cc index 8d96f3dfe..300bf3549 100644 --- a/vpc/src/model/ModifySslVpnServerRequest.cc +++ b/vpc/src/model/ModifySslVpnServerRequest.cc @@ -106,6 +106,15 @@ void ModifySslVpnServerRequest::setCipher(const std::string &cipher) { setParameter(std::string("Cipher"), cipher); } +std::string ModifySslVpnServerRequest::getIDaaSApplicationId() const { + return iDaaSApplicationId_; +} + +void ModifySslVpnServerRequest::setIDaaSApplicationId(const std::string &iDaaSApplicationId) { + iDaaSApplicationId_ = iDaaSApplicationId; + setParameter(std::string("IDaaSApplicationId"), iDaaSApplicationId); +} + std::string ModifySslVpnServerRequest::getClientIpPool() const { return clientIpPool_; } @@ -115,6 +124,15 @@ void ModifySslVpnServerRequest::setClientIpPool(const std::string &clientIpPool) setParameter(std::string("ClientIpPool"), clientIpPool); } +bool ModifySslVpnServerRequest::getDryRun() const { + return dryRun_; +} + +void ModifySslVpnServerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::string ModifySslVpnServerRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/ModifySslVpnServerResult.cc b/vpc/src/model/ModifySslVpnServerResult.cc index 005e088ad..de3f45508 100644 --- a/vpc/src/model/ModifySslVpnServerResult.cc +++ b/vpc/src/model/ModifySslVpnServerResult.cc @@ -71,6 +71,12 @@ void ModifySslVpnServerResult::parse(const std::string &payload) clientIpPool_ = value["ClientIpPool"].asString(); if(!value["Proto"].isNull()) proto_ = value["Proto"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["IDaaSApplicationId"].isNull()) + iDaaSApplicationId_ = value["IDaaSApplicationId"].asString(); + if(!value["IDaaSInstanceVersion"].isNull()) + iDaaSInstanceVersion_ = value["IDaaSInstanceVersion"].asString(); } @@ -104,6 +110,11 @@ int ModifySslVpnServerResult::getMaxConnections()const return maxConnections_; } +std::string ModifySslVpnServerResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + bool ModifySslVpnServerResult::getEnableMultiFactorAuth()const { return enableMultiFactorAuth_; @@ -124,11 +135,21 @@ std::string ModifySslVpnServerResult::getSslVpnServerId()const return sslVpnServerId_; } +std::string ModifySslVpnServerResult::getIDaaSInstanceVersion()const +{ + return iDaaSInstanceVersion_; +} + std::string ModifySslVpnServerResult::getName()const { return name_; } +std::string ModifySslVpnServerResult::getIDaaSApplicationId()const +{ + return iDaaSApplicationId_; +} + std::string ModifySslVpnServerResult::getInternetIp()const { return internetIp_; diff --git a/vpc/src/model/ModifyTunnelAttributeRequest.cc b/vpc/src/model/ModifyTunnelAttributeRequest.cc new file mode 100644 index 000000000..557b13238 --- /dev/null +++ b/vpc/src/model/ModifyTunnelAttributeRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ModifyTunnelAttributeRequest; + +ModifyTunnelAttributeRequest::ModifyTunnelAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyTunnelAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyTunnelAttributeRequest::~ModifyTunnelAttributeRequest() {} + +long ModifyTunnelAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyTunnelAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyTunnelAttributeRequest::getClientToken() const { + return clientToken_; +} + +void ModifyTunnelAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyTunnelAttributeRequest::getRegionId() const { + return regionId_; +} + +void ModifyTunnelAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyTunnelAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyTunnelAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyTunnelAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyTunnelAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyTunnelAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyTunnelAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +ModifyTunnelAttributeRequest::TunnelOptionsSpecification ModifyTunnelAttributeRequest::getTunnelOptionsSpecification() const { + return tunnelOptionsSpecification_; +} + +void ModifyTunnelAttributeRequest::setTunnelOptionsSpecification(const ModifyTunnelAttributeRequest::TunnelOptionsSpecification &tunnelOptionsSpecification) { + tunnelOptionsSpecification_ = tunnelOptionsSpecification; + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIpsecConfig.IpsecPfs", tunnelOptionsSpecification.tunnelIpsecConfig.ipsecPfs); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIpsecConfig.IpsecLifetime", std::to_string(tunnelOptionsSpecification.tunnelIpsecConfig.ipsecLifetime)); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIpsecConfig.IpsecAuthAlg", tunnelOptionsSpecification.tunnelIpsecConfig.ipsecAuthAlg); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIpsecConfig.IpsecEncAlg", tunnelOptionsSpecification.tunnelIpsecConfig.ipsecEncAlg); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelBgpConfig.LocalAsn", std::to_string(tunnelOptionsSpecification.tunnelBgpConfig.localAsn)); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelBgpConfig.TunnelCidr", tunnelOptionsSpecification.tunnelBgpConfig.tunnelCidr); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelBgpConfig.LocalBgpIp", tunnelOptionsSpecification.tunnelBgpConfig.localBgpIp); + setParameter(std::string("TunnelOptionsSpecification") + ".RemoteCaCertificate", tunnelOptionsSpecification.remoteCaCertificate); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIkeConfig.IkeVersion", tunnelOptionsSpecification.tunnelIkeConfig.ikeVersion); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIkeConfig.IkeMode", tunnelOptionsSpecification.tunnelIkeConfig.ikeMode); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIkeConfig.IkeAuthAlg", tunnelOptionsSpecification.tunnelIkeConfig.ikeAuthAlg); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIkeConfig.Psk", tunnelOptionsSpecification.tunnelIkeConfig.psk); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIkeConfig.IkePfs", tunnelOptionsSpecification.tunnelIkeConfig.ikePfs); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIkeConfig.IkeLifetime", std::to_string(tunnelOptionsSpecification.tunnelIkeConfig.ikeLifetime)); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIkeConfig.LocalId", tunnelOptionsSpecification.tunnelIkeConfig.localId); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIkeConfig.IkeEncAlg", tunnelOptionsSpecification.tunnelIkeConfig.ikeEncAlg); + setParameter(std::string("TunnelOptionsSpecification") + ".TunnelIkeConfig.RemoteId", tunnelOptionsSpecification.tunnelIkeConfig.remoteId); + setParameter(std::string("TunnelOptionsSpecification") + ".EnableNatTraversal", tunnelOptionsSpecification.enableNatTraversal ? "true" : "false"); + setParameter(std::string("TunnelOptionsSpecification") + ".EnableDpd", tunnelOptionsSpecification.enableDpd ? "true" : "false"); + setParameter(std::string("TunnelOptionsSpecification") + ".CustomerGatewayId", tunnelOptionsSpecification.customerGatewayId); +} + +std::string ModifyTunnelAttributeRequest::getVpnConnectionId() const { + return vpnConnectionId_; +} + +void ModifyTunnelAttributeRequest::setVpnConnectionId(const std::string &vpnConnectionId) { + vpnConnectionId_ = vpnConnectionId; + setParameter(std::string("VpnConnectionId"), vpnConnectionId); +} + +std::string ModifyTunnelAttributeRequest::getTunnelId() const { + return tunnelId_; +} + +void ModifyTunnelAttributeRequest::setTunnelId(const std::string &tunnelId) { + tunnelId_ = tunnelId; + setParameter(std::string("TunnelId"), tunnelId); +} + diff --git a/vpc/src/model/ModifyTunnelAttributeResult.cc b/vpc/src/model/ModifyTunnelAttributeResult.cc new file mode 100644 index 000000000..a0ee3f9d4 --- /dev/null +++ b/vpc/src/model/ModifyTunnelAttributeResult.cc @@ -0,0 +1,163 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyTunnelAttributeResult::ModifyTunnelAttributeResult() : + ServiceResult() +{} + +ModifyTunnelAttributeResult::ModifyTunnelAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyTunnelAttributeResult::~ModifyTunnelAttributeResult() +{} + +void ModifyTunnelAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto tunnelIkeConfigNode = value["TunnelIkeConfig"]; + if(!tunnelIkeConfigNode["IkeAuthAlg"].isNull()) + tunnelIkeConfig_.ikeAuthAlg = tunnelIkeConfigNode["IkeAuthAlg"].asString(); + if(!tunnelIkeConfigNode["IkeEncAlg"].isNull()) + tunnelIkeConfig_.ikeEncAlg = tunnelIkeConfigNode["IkeEncAlg"].asString(); + if(!tunnelIkeConfigNode["IkeLifetime"].isNull()) + tunnelIkeConfig_.ikeLifetime = std::stol(tunnelIkeConfigNode["IkeLifetime"].asString()); + if(!tunnelIkeConfigNode["IkeMode"].isNull()) + tunnelIkeConfig_.ikeMode = tunnelIkeConfigNode["IkeMode"].asString(); + if(!tunnelIkeConfigNode["IkePfs"].isNull()) + tunnelIkeConfig_.ikePfs = tunnelIkeConfigNode["IkePfs"].asString(); + if(!tunnelIkeConfigNode["IkeVersion"].isNull()) + tunnelIkeConfig_.ikeVersion = tunnelIkeConfigNode["IkeVersion"].asString(); + if(!tunnelIkeConfigNode["LocalId"].isNull()) + tunnelIkeConfig_.localId = tunnelIkeConfigNode["LocalId"].asString(); + if(!tunnelIkeConfigNode["Psk"].isNull()) + tunnelIkeConfig_.psk = tunnelIkeConfigNode["Psk"].asString(); + if(!tunnelIkeConfigNode["RemoteId"].isNull()) + tunnelIkeConfig_.remoteId = tunnelIkeConfigNode["RemoteId"].asString(); + auto tunnelIpsecConfigNode = value["TunnelIpsecConfig"]; + if(!tunnelIpsecConfigNode["IpsecAuthAlg"].isNull()) + tunnelIpsecConfig_.ipsecAuthAlg = tunnelIpsecConfigNode["IpsecAuthAlg"].asString(); + if(!tunnelIpsecConfigNode["IpsecEncAlg"].isNull()) + tunnelIpsecConfig_.ipsecEncAlg = tunnelIpsecConfigNode["IpsecEncAlg"].asString(); + if(!tunnelIpsecConfigNode["IpsecLifetime"].isNull()) + tunnelIpsecConfig_.ipsecLifetime = std::stol(tunnelIpsecConfigNode["IpsecLifetime"].asString()); + if(!tunnelIpsecConfigNode["IpsecPfs"].isNull()) + tunnelIpsecConfig_.ipsecPfs = tunnelIpsecConfigNode["IpsecPfs"].asString(); + auto tunnelBgpConfigNode = value["TunnelBgpConfig"]; + if(!tunnelBgpConfigNode["EnableBgp"].isNull()) + tunnelBgpConfig_.enableBgp = tunnelBgpConfigNode["EnableBgp"].asString() == "true"; + if(!tunnelBgpConfigNode["LocalAsn"].isNull()) + tunnelBgpConfig_.localAsn = std::stol(tunnelBgpConfigNode["LocalAsn"].asString()); + if(!tunnelBgpConfigNode["LocalBgpIp"].isNull()) + tunnelBgpConfig_.localBgpIp = tunnelBgpConfigNode["LocalBgpIp"].asString(); + if(!tunnelBgpConfigNode["PeerAsn"].isNull()) + tunnelBgpConfig_.peerAsn = std::stol(tunnelBgpConfigNode["PeerAsn"].asString()); + if(!tunnelBgpConfigNode["PeerBgpIp"].isNull()) + tunnelBgpConfig_.peerBgpIp = tunnelBgpConfigNode["PeerBgpIp"].asString(); + if(!tunnelBgpConfigNode["TunnelCidr"].isNull()) + tunnelBgpConfig_.tunnelCidr = tunnelBgpConfigNode["TunnelCidr"].asString(); + if(!value["TunnelId"].isNull()) + tunnelId_ = value["TunnelId"].asString(); + if(!value["EnableNatTraversal"].isNull()) + enableNatTraversal_ = value["EnableNatTraversal"].asString() == "true"; + if(!value["EnableDpd"].isNull()) + enableDpd_ = value["EnableDpd"].asString() == "true"; + if(!value["RemoteCaCertificate"].isNull()) + remoteCaCertificate_ = value["RemoteCaCertificate"].asString(); + if(!value["CustomerGatewayId"].isNull()) + customerGatewayId_ = value["CustomerGatewayId"].asString(); + if(!value["Role"].isNull()) + role_ = value["Role"].asString(); + if(!value["ZoneNo"].isNull()) + zoneNo_ = value["ZoneNo"].asString(); + if(!value["InternetIp"].isNull()) + internetIp_ = value["InternetIp"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + +} + +std::string ModifyTunnelAttributeResult::getRole()const +{ + return role_; +} + +ModifyTunnelAttributeResult::TunnelIkeConfig ModifyTunnelAttributeResult::getTunnelIkeConfig()const +{ + return tunnelIkeConfig_; +} + +std::string ModifyTunnelAttributeResult::getCustomerGatewayId()const +{ + return customerGatewayId_; +} + +std::string ModifyTunnelAttributeResult::getInternetIp()const +{ + return internetIp_; +} + +ModifyTunnelAttributeResult::TunnelBgpConfig ModifyTunnelAttributeResult::getTunnelBgpConfig()const +{ + return tunnelBgpConfig_; +} + +std::string ModifyTunnelAttributeResult::getState()const +{ + return state_; +} + +std::string ModifyTunnelAttributeResult::getRemoteCaCertificate()const +{ + return remoteCaCertificate_; +} + +bool ModifyTunnelAttributeResult::getEnableNatTraversal()const +{ + return enableNatTraversal_; +} + +ModifyTunnelAttributeResult::TunnelIpsecConfig ModifyTunnelAttributeResult::getTunnelIpsecConfig()const +{ + return tunnelIpsecConfig_; +} + +std::string ModifyTunnelAttributeResult::getTunnelId()const +{ + return tunnelId_; +} + +bool ModifyTunnelAttributeResult::getEnableDpd()const +{ + return enableDpd_; +} + +std::string ModifyTunnelAttributeResult::getZoneNo()const +{ + return zoneNo_; +} + diff --git a/vpc/src/model/ModifyVSwitchCidrReservationAttributeRequest.cc b/vpc/src/model/ModifyVSwitchCidrReservationAttributeRequest.cc new file mode 100644 index 000000000..c15ec1015 --- /dev/null +++ b/vpc/src/model/ModifyVSwitchCidrReservationAttributeRequest.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::Vpc::Model::ModifyVSwitchCidrReservationAttributeRequest; + +ModifyVSwitchCidrReservationAttributeRequest::ModifyVSwitchCidrReservationAttributeRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ModifyVSwitchCidrReservationAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyVSwitchCidrReservationAttributeRequest::~ModifyVSwitchCidrReservationAttributeRequest() {} + +long ModifyVSwitchCidrReservationAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyVSwitchCidrReservationAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyVSwitchCidrReservationAttributeRequest::getClientToken() const { + return clientToken_; +} + +void ModifyVSwitchCidrReservationAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyVSwitchCidrReservationAttributeRequest::getVSwitchCidrReservationDescription() const { + return vSwitchCidrReservationDescription_; +} + +void ModifyVSwitchCidrReservationAttributeRequest::setVSwitchCidrReservationDescription(const std::string &vSwitchCidrReservationDescription) { + vSwitchCidrReservationDescription_ = vSwitchCidrReservationDescription; + setParameter(std::string("VSwitchCidrReservationDescription"), vSwitchCidrReservationDescription); +} + +std::string ModifyVSwitchCidrReservationAttributeRequest::getRegionId() const { + return regionId_; +} + +void ModifyVSwitchCidrReservationAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyVSwitchCidrReservationAttributeRequest::getVSwitchCidrReservationName() const { + return vSwitchCidrReservationName_; +} + +void ModifyVSwitchCidrReservationAttributeRequest::setVSwitchCidrReservationName(const std::string &vSwitchCidrReservationName) { + vSwitchCidrReservationName_ = vSwitchCidrReservationName; + setParameter(std::string("VSwitchCidrReservationName"), vSwitchCidrReservationName); +} + +bool ModifyVSwitchCidrReservationAttributeRequest::getDryRun() const { + return dryRun_; +} + +void ModifyVSwitchCidrReservationAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string ModifyVSwitchCidrReservationAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyVSwitchCidrReservationAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyVSwitchCidrReservationAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyVSwitchCidrReservationAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyVSwitchCidrReservationAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyVSwitchCidrReservationAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyVSwitchCidrReservationAttributeRequest::getVSwitchCidrReservationId() const { + return vSwitchCidrReservationId_; +} + +void ModifyVSwitchCidrReservationAttributeRequest::setVSwitchCidrReservationId(const std::string &vSwitchCidrReservationId) { + vSwitchCidrReservationId_ = vSwitchCidrReservationId; + setParameter(std::string("VSwitchCidrReservationId"), vSwitchCidrReservationId); +} + diff --git a/vpc/src/model/ModifyVSwitchCidrReservationAttributeResult.cc b/vpc/src/model/ModifyVSwitchCidrReservationAttributeResult.cc new file mode 100644 index 000000000..2e090a7eb --- /dev/null +++ b/vpc/src/model/ModifyVSwitchCidrReservationAttributeResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ModifyVSwitchCidrReservationAttributeResult::ModifyVSwitchCidrReservationAttributeResult() : + ServiceResult() +{} + +ModifyVSwitchCidrReservationAttributeResult::ModifyVSwitchCidrReservationAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVSwitchCidrReservationAttributeResult::~ModifyVSwitchCidrReservationAttributeResult() +{} + +void ModifyVSwitchCidrReservationAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc b/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc index a8e2380c5..c3710870c 100644 --- a/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc +++ b/vpc/src/model/ModifyVirtualBorderRouterAttributeRequest.cc @@ -214,6 +214,15 @@ void ModifyVirtualBorderRouterAttributeRequest::setMinRxInterval(long minRxInter setParameter(std::string("MinRxInterval"), std::to_string(minRxInterval)); } +bool ModifyVirtualBorderRouterAttributeRequest::getSitelinkEnable() const { + return sitelinkEnable_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setSitelinkEnable(bool sitelinkEnable) { + sitelinkEnable_ = sitelinkEnable; + setParameter(std::string("SitelinkEnable"), sitelinkEnable ? "true" : "false"); +} + std::string ModifyVirtualBorderRouterAttributeRequest::getLocalIpv6GatewayIp() const { return localIpv6GatewayIp_; } diff --git a/vpc/src/model/ModifyVpcAttributeRequest.cc b/vpc/src/model/ModifyVpcAttributeRequest.cc index 21883a596..d4fcf5dfc 100644 --- a/vpc/src/model/ModifyVpcAttributeRequest.cc +++ b/vpc/src/model/ModifyVpcAttributeRequest.cc @@ -79,6 +79,15 @@ void ModifyVpcAttributeRequest::setIpv6Isp(const std::string &ipv6Isp) { setParameter(std::string("Ipv6Isp"), ipv6Isp); } +bool ModifyVpcAttributeRequest::getEnableDnsHostname() const { + return enableDnsHostname_; +} + +void ModifyVpcAttributeRequest::setEnableDnsHostname(bool enableDnsHostname) { + enableDnsHostname_ = enableDnsHostname; + setParameter(std::string("EnableDnsHostname"), enableDnsHostname ? "true" : "false"); +} + std::string ModifyVpcAttributeRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/vpc/src/model/ModifyVpnAttachmentAttributeRequest.cc b/vpc/src/model/ModifyVpnAttachmentAttributeRequest.cc index 595ba503c..68d8c13b5 100644 --- a/vpc/src/model/ModifyVpnAttachmentAttributeRequest.cc +++ b/vpc/src/model/ModifyVpnAttachmentAttributeRequest.cc @@ -124,6 +124,15 @@ void ModifyVpnAttachmentAttributeRequest::setRemoteCaCert(const std::string &rem setParameter(std::string("RemoteCaCert"), remoteCaCert); } +bool ModifyVpnAttachmentAttributeRequest::getEnableTunnelsBgp() const { + return enableTunnelsBgp_; +} + +void ModifyVpnAttachmentAttributeRequest::setEnableTunnelsBgp(bool enableTunnelsBgp) { + enableTunnelsBgp_ = enableTunnelsBgp; + setParameter(std::string("EnableTunnelsBgp"), enableTunnelsBgp ? "true" : "false"); +} + std::string ModifyVpnAttachmentAttributeRequest::getRegionId() const { return regionId_; } @@ -178,6 +187,38 @@ void ModifyVpnAttachmentAttributeRequest::setEnableDpd(bool enableDpd) { setParameter(std::string("EnableDpd"), enableDpd ? "true" : "false"); } +std::vector ModifyVpnAttachmentAttributeRequest::getTunnelOptionsSpecification() const { + return tunnelOptionsSpecification_; +} + +void ModifyVpnAttachmentAttributeRequest::setTunnelOptionsSpecification(const std::vector &tunnelOptionsSpecification) { + tunnelOptionsSpecification_ = tunnelOptionsSpecification; + for(int dep1 = 0; dep1 != tunnelOptionsSpecification.size(); dep1++) { + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecPfs", tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecPfs); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecLifetime", std::to_string(tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecLifetime)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecAuthAlg", tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecAuthAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecEncAlg", tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecEncAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelBgpConfig.LocalAsn", std::to_string(tunnelOptionsSpecification[dep1].tunnelBgpConfig.localAsn)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelBgpConfig.TunnelCidr", tunnelOptionsSpecification[dep1].tunnelBgpConfig.tunnelCidr); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelBgpConfig.LocalBgpIp", tunnelOptionsSpecification[dep1].tunnelBgpConfig.localBgpIp); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".RemoteCaCertificate", tunnelOptionsSpecification[dep1].remoteCaCertificate); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelId", tunnelOptionsSpecification[dep1].tunnelId); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeVersion", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeVersion); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeMode", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeMode); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeAuthAlg", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeAuthAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.Psk", tunnelOptionsSpecification[dep1].tunnelIkeConfig.psk); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkePfs", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikePfs); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeLifetime", std::to_string(tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeLifetime)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.LocalId", tunnelOptionsSpecification[dep1].tunnelIkeConfig.localId); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeEncAlg", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeEncAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.RemoteId", tunnelOptionsSpecification[dep1].tunnelIkeConfig.remoteId); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".EnableNatTraversal", tunnelOptionsSpecification[dep1].enableNatTraversal ? "true" : "false"); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIndex", std::to_string(tunnelOptionsSpecification[dep1].tunnelIndex)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".EnableDpd", tunnelOptionsSpecification[dep1].enableDpd ? "true" : "false"); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".CustomerGatewayId", tunnelOptionsSpecification[dep1].customerGatewayId); + } +} + std::string ModifyVpnAttachmentAttributeRequest::getVpnConnectionId() const { return vpnConnectionId_; } diff --git a/vpc/src/model/ModifyVpnAttachmentAttributeResult.cc b/vpc/src/model/ModifyVpnAttachmentAttributeResult.cc index 4ac38a63c..7c142b4fb 100644 --- a/vpc/src/model/ModifyVpnAttachmentAttributeResult.cc +++ b/vpc/src/model/ModifyVpnAttachmentAttributeResult.cc @@ -39,6 +39,69 @@ void ModifyVpnAttachmentAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allTunnelOptionsSpecificationNode = value["TunnelOptionsSpecification"]["TunnelOptions"]; + for (auto valueTunnelOptionsSpecificationTunnelOptions : allTunnelOptionsSpecificationNode) + { + TunnelOptions tunnelOptionsSpecificationObject; + if(!valueTunnelOptionsSpecificationTunnelOptions["CustomerGatewayId"].isNull()) + tunnelOptionsSpecificationObject.customerGatewayId = valueTunnelOptionsSpecificationTunnelOptions["CustomerGatewayId"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["EnableDpd"].isNull()) + tunnelOptionsSpecificationObject.enableDpd = valueTunnelOptionsSpecificationTunnelOptions["EnableDpd"].asString() == "true"; + if(!valueTunnelOptionsSpecificationTunnelOptions["EnableNatTraversal"].isNull()) + tunnelOptionsSpecificationObject.enableNatTraversal = valueTunnelOptionsSpecificationTunnelOptions["EnableNatTraversal"].asString() == "true"; + if(!valueTunnelOptionsSpecificationTunnelOptions["InternetIp"].isNull()) + tunnelOptionsSpecificationObject.internetIp = valueTunnelOptionsSpecificationTunnelOptions["InternetIp"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["RemoteCaCertificate"].isNull()) + tunnelOptionsSpecificationObject.remoteCaCertificate = valueTunnelOptionsSpecificationTunnelOptions["RemoteCaCertificate"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["Role"].isNull()) + tunnelOptionsSpecificationObject.role = valueTunnelOptionsSpecificationTunnelOptions["Role"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["TunnelId"].isNull()) + tunnelOptionsSpecificationObject.tunnelId = valueTunnelOptionsSpecificationTunnelOptions["TunnelId"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["TunnelIndex"].isNull()) + tunnelOptionsSpecificationObject.tunnelIndex = std::stoi(valueTunnelOptionsSpecificationTunnelOptions["TunnelIndex"].asString()); + if(!valueTunnelOptionsSpecificationTunnelOptions["State"].isNull()) + tunnelOptionsSpecificationObject.state = valueTunnelOptionsSpecificationTunnelOptions["State"].asString(); + auto tunnelBgpConfigNode = value["TunnelBgpConfig"]; + if(!tunnelBgpConfigNode["LocalAsn"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.localAsn = std::stol(tunnelBgpConfigNode["LocalAsn"].asString()); + if(!tunnelBgpConfigNode["LocalBgpIp"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.localBgpIp = tunnelBgpConfigNode["LocalBgpIp"].asString(); + if(!tunnelBgpConfigNode["PeerAsn"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.peerAsn = std::stol(tunnelBgpConfigNode["PeerAsn"].asString()); + if(!tunnelBgpConfigNode["PeerBgpIp"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.peerBgpIp = tunnelBgpConfigNode["PeerBgpIp"].asString(); + if(!tunnelBgpConfigNode["TunnelCidr"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.tunnelCidr = tunnelBgpConfigNode["TunnelCidr"].asString(); + auto tunnelIkeConfigNode = value["TunnelIkeConfig"]; + if(!tunnelIkeConfigNode["IkeAuthAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeAuthAlg = tunnelIkeConfigNode["IkeAuthAlg"].asString(); + if(!tunnelIkeConfigNode["IkeEncAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeEncAlg = tunnelIkeConfigNode["IkeEncAlg"].asString(); + if(!tunnelIkeConfigNode["IkeLifetime"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeLifetime = std::stol(tunnelIkeConfigNode["IkeLifetime"].asString()); + if(!tunnelIkeConfigNode["IkeMode"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeMode = tunnelIkeConfigNode["IkeMode"].asString(); + if(!tunnelIkeConfigNode["IkePfs"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikePfs = tunnelIkeConfigNode["IkePfs"].asString(); + if(!tunnelIkeConfigNode["IkeVersion"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeVersion = tunnelIkeConfigNode["IkeVersion"].asString(); + if(!tunnelIkeConfigNode["LocalId"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.localId = tunnelIkeConfigNode["LocalId"].asString(); + if(!tunnelIkeConfigNode["Psk"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.psk = tunnelIkeConfigNode["Psk"].asString(); + if(!tunnelIkeConfigNode["RemoteId"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.remoteId = tunnelIkeConfigNode["RemoteId"].asString(); + auto tunnelIpsecConfigNode = value["TunnelIpsecConfig"]; + if(!tunnelIpsecConfigNode["IpsecAuthAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecAuthAlg = tunnelIpsecConfigNode["IpsecAuthAlg"].asString(); + if(!tunnelIpsecConfigNode["IpsecEncAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecEncAlg = tunnelIpsecConfigNode["IpsecEncAlg"].asString(); + if(!tunnelIpsecConfigNode["IpsecLifetime"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecLifetime = std::stol(tunnelIpsecConfigNode["IpsecLifetime"].asString()); + if(!tunnelIpsecConfigNode["IpsecPfs"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecPfs = tunnelIpsecConfigNode["IpsecPfs"].asString(); + tunnelOptionsSpecification_.push_back(tunnelOptionsSpecificationObject); + } auto ikeConfigNode = value["IkeConfig"]; if(!ikeConfigNode["Psk"].isNull()) ikeConfig_.psk = ikeConfigNode["Psk"].asString(); @@ -127,6 +190,10 @@ void ModifyVpnAttachmentAttributeResult::parse(const std::string &payload) attachInstanceId_ = value["AttachInstanceId"].asString(); if(!value["Spec"].isNull()) spec_ = value["Spec"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["EnableTunnelsBgp"].isNull()) + enableTunnelsBgp_ = value["EnableTunnelsBgp"].asString() == "true"; } @@ -155,6 +222,16 @@ std::string ModifyVpnAttachmentAttributeResult::getCustomerGatewayId()const return customerGatewayId_; } +std::string ModifyVpnAttachmentAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +bool ModifyVpnAttachmentAttributeResult::getEnableTunnelsBgp()const +{ + return enableTunnelsBgp_; +} + long ModifyVpnAttachmentAttributeResult::getCreateTime()const { return createTime_; @@ -170,6 +247,11 @@ bool ModifyVpnAttachmentAttributeResult::getEffectImmediately()const return effectImmediately_; } +std::vector ModifyVpnAttachmentAttributeResult::getTunnelOptionsSpecification()const +{ + return tunnelOptionsSpecification_; +} + ModifyVpnAttachmentAttributeResult::VcoHealthCheck ModifyVpnAttachmentAttributeResult::getVcoHealthCheck()const { return vcoHealthCheck_; diff --git a/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc b/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc index 85150b4f4..1f0527400 100644 --- a/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc +++ b/vpc/src/model/ModifyVpnConnectionAttributeRequest.cc @@ -97,6 +97,15 @@ void ModifyVpnConnectionAttributeRequest::setLocalSubnet(const std::string &loca setParameter(std::string("LocalSubnet"), localSubnet); } +bool ModifyVpnConnectionAttributeRequest::getEnableTunnelsBgp() const { + return enableTunnelsBgp_; +} + +void ModifyVpnConnectionAttributeRequest::setEnableTunnelsBgp(bool enableTunnelsBgp) { + enableTunnelsBgp_ = enableTunnelsBgp; + setParameter(std::string("EnableTunnelsBgp"), enableTunnelsBgp ? "true" : "false"); +} + std::string ModifyVpnConnectionAttributeRequest::getRegionId() const { return regionId_; } @@ -160,6 +169,38 @@ void ModifyVpnConnectionAttributeRequest::setEnableDpd(bool enableDpd) { setParameter(std::string("EnableDpd"), enableDpd ? "true" : "false"); } +std::vector ModifyVpnConnectionAttributeRequest::getTunnelOptionsSpecification() const { + return tunnelOptionsSpecification_; +} + +void ModifyVpnConnectionAttributeRequest::setTunnelOptionsSpecification(const std::vector &tunnelOptionsSpecification) { + tunnelOptionsSpecification_ = tunnelOptionsSpecification; + for(int dep1 = 0; dep1 != tunnelOptionsSpecification.size(); dep1++) { + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecPfs", tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecPfs); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecLifetime", std::to_string(tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecLifetime)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecAuthAlg", tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecAuthAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIpsecConfig.IpsecEncAlg", tunnelOptionsSpecification[dep1].tunnelIpsecConfig.ipsecEncAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".Role", tunnelOptionsSpecification[dep1].role); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelBgpConfig.LocalAsn", std::to_string(tunnelOptionsSpecification[dep1].tunnelBgpConfig.localAsn)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelBgpConfig.TunnelCidr", tunnelOptionsSpecification[dep1].tunnelBgpConfig.tunnelCidr); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelBgpConfig.LocalBgpIp", tunnelOptionsSpecification[dep1].tunnelBgpConfig.localBgpIp); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".RemoteCaCertificate", tunnelOptionsSpecification[dep1].remoteCaCertificate); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelId", tunnelOptionsSpecification[dep1].tunnelId); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeVersion", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeVersion); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeMode", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeMode); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeAuthAlg", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeAuthAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.Psk", tunnelOptionsSpecification[dep1].tunnelIkeConfig.psk); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkePfs", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikePfs); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeLifetime", std::to_string(tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeLifetime)); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.LocalId", tunnelOptionsSpecification[dep1].tunnelIkeConfig.localId); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.IkeEncAlg", tunnelOptionsSpecification[dep1].tunnelIkeConfig.ikeEncAlg); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".TunnelIkeConfig.RemoteId", tunnelOptionsSpecification[dep1].tunnelIkeConfig.remoteId); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".EnableNatTraversal", tunnelOptionsSpecification[dep1].enableNatTraversal ? "true" : "false"); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".EnableDpd", tunnelOptionsSpecification[dep1].enableDpd ? "true" : "false"); + setBodyParameter(std::string("TunnelOptionsSpecification") + "." + std::to_string(dep1 + 1) + ".CustomerGatewayId", tunnelOptionsSpecification[dep1].customerGatewayId); + } +} + std::string ModifyVpnConnectionAttributeRequest::getRemoteCaCertificate() const { return remoteCaCertificate_; } diff --git a/vpc/src/model/ModifyVpnConnectionAttributeResult.cc b/vpc/src/model/ModifyVpnConnectionAttributeResult.cc index 160bba059..980133669 100644 --- a/vpc/src/model/ModifyVpnConnectionAttributeResult.cc +++ b/vpc/src/model/ModifyVpnConnectionAttributeResult.cc @@ -39,6 +39,69 @@ void ModifyVpnConnectionAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allTunnelOptionsSpecificationNode = value["TunnelOptionsSpecification"]["TunnelOptions"]; + for (auto valueTunnelOptionsSpecificationTunnelOptions : allTunnelOptionsSpecificationNode) + { + TunnelOptions tunnelOptionsSpecificationObject; + if(!valueTunnelOptionsSpecificationTunnelOptions["CustomerGatewayId"].isNull()) + tunnelOptionsSpecificationObject.customerGatewayId = valueTunnelOptionsSpecificationTunnelOptions["CustomerGatewayId"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["EnableDpd"].isNull()) + tunnelOptionsSpecificationObject.enableDpd = valueTunnelOptionsSpecificationTunnelOptions["EnableDpd"].asString() == "true"; + if(!valueTunnelOptionsSpecificationTunnelOptions["EnableNatTraversal"].isNull()) + tunnelOptionsSpecificationObject.enableNatTraversal = valueTunnelOptionsSpecificationTunnelOptions["EnableNatTraversal"].asString() == "true"; + if(!valueTunnelOptionsSpecificationTunnelOptions["InternetIp"].isNull()) + tunnelOptionsSpecificationObject.internetIp = valueTunnelOptionsSpecificationTunnelOptions["InternetIp"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["RemoteCaCertificate"].isNull()) + tunnelOptionsSpecificationObject.remoteCaCertificate = valueTunnelOptionsSpecificationTunnelOptions["RemoteCaCertificate"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["Role"].isNull()) + tunnelOptionsSpecificationObject.role = valueTunnelOptionsSpecificationTunnelOptions["Role"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["State"].isNull()) + tunnelOptionsSpecificationObject.state = valueTunnelOptionsSpecificationTunnelOptions["State"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["TunnelId"].isNull()) + tunnelOptionsSpecificationObject.tunnelId = valueTunnelOptionsSpecificationTunnelOptions["TunnelId"].asString(); + if(!valueTunnelOptionsSpecificationTunnelOptions["ZoneNo"].isNull()) + tunnelOptionsSpecificationObject.zoneNo = valueTunnelOptionsSpecificationTunnelOptions["ZoneNo"].asString(); + auto tunnelBgpConfigNode = value["TunnelBgpConfig"]; + if(!tunnelBgpConfigNode["LocalAsn"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.localAsn = std::stol(tunnelBgpConfigNode["LocalAsn"].asString()); + if(!tunnelBgpConfigNode["LocalBgpIp"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.localBgpIp = tunnelBgpConfigNode["LocalBgpIp"].asString(); + if(!tunnelBgpConfigNode["PeerAsn"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.peerAsn = std::stol(tunnelBgpConfigNode["PeerAsn"].asString()); + if(!tunnelBgpConfigNode["PeerBgpIp"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.peerBgpIp = tunnelBgpConfigNode["PeerBgpIp"].asString(); + if(!tunnelBgpConfigNode["TunnelCidr"].isNull()) + tunnelOptionsSpecificationObject.tunnelBgpConfig.tunnelCidr = tunnelBgpConfigNode["TunnelCidr"].asString(); + auto tunnelIkeConfigNode = value["TunnelIkeConfig"]; + if(!tunnelIkeConfigNode["IkeAuthAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeAuthAlg = tunnelIkeConfigNode["IkeAuthAlg"].asString(); + if(!tunnelIkeConfigNode["IkeEncAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeEncAlg = tunnelIkeConfigNode["IkeEncAlg"].asString(); + if(!tunnelIkeConfigNode["IkeLifetime"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeLifetime = std::stol(tunnelIkeConfigNode["IkeLifetime"].asString()); + if(!tunnelIkeConfigNode["IkeMode"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeMode = tunnelIkeConfigNode["IkeMode"].asString(); + if(!tunnelIkeConfigNode["IkePfs"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikePfs = tunnelIkeConfigNode["IkePfs"].asString(); + if(!tunnelIkeConfigNode["IkeVersion"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.ikeVersion = tunnelIkeConfigNode["IkeVersion"].asString(); + if(!tunnelIkeConfigNode["LocalId"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.localId = tunnelIkeConfigNode["LocalId"].asString(); + if(!tunnelIkeConfigNode["Psk"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.psk = tunnelIkeConfigNode["Psk"].asString(); + if(!tunnelIkeConfigNode["RemoteId"].isNull()) + tunnelOptionsSpecificationObject.tunnelIkeConfig.remoteId = tunnelIkeConfigNode["RemoteId"].asString(); + auto tunnelIpsecConfigNode = value["TunnelIpsecConfig"]; + if(!tunnelIpsecConfigNode["IpsecAuthAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecAuthAlg = tunnelIpsecConfigNode["IpsecAuthAlg"].asString(); + if(!tunnelIpsecConfigNode["IpsecEncAlg"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecEncAlg = tunnelIpsecConfigNode["IpsecEncAlg"].asString(); + if(!tunnelIpsecConfigNode["IpsecLifetime"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecLifetime = std::stol(tunnelIpsecConfigNode["IpsecLifetime"].asString()); + if(!tunnelIpsecConfigNode["IpsecPfs"].isNull()) + tunnelOptionsSpecificationObject.tunnelIpsecConfig.ipsecPfs = tunnelIpsecConfigNode["IpsecPfs"].asString(); + tunnelOptionsSpecification_.push_back(tunnelOptionsSpecificationObject); + } auto ikeConfigNode = value["IkeConfig"]; if(!ikeConfigNode["RemoteId"].isNull()) ikeConfig_.remoteId = ikeConfigNode["RemoteId"].asString(); @@ -115,6 +178,10 @@ void ModifyVpnConnectionAttributeResult::parse(const std::string &payload) name_ = value["Name"].asString(); if(!value["EnableDpd"].isNull()) enableDpd_ = value["EnableDpd"].asString() == "true"; + if(!value["EnableTunnelsBgp"].isNull()) + enableTunnelsBgp_ = value["EnableTunnelsBgp"].asString() == "true"; + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -133,6 +200,16 @@ std::string ModifyVpnConnectionAttributeResult::getCustomerGatewayId()const return customerGatewayId_; } +std::string ModifyVpnConnectionAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +bool ModifyVpnConnectionAttributeResult::getEnableTunnelsBgp()const +{ + return enableTunnelsBgp_; +} + long ModifyVpnConnectionAttributeResult::getCreateTime()const { return createTime_; @@ -148,6 +225,11 @@ bool ModifyVpnConnectionAttributeResult::getEffectImmediately()const return effectImmediately_; } +std::vector ModifyVpnConnectionAttributeResult::getTunnelOptionsSpecification()const +{ + return tunnelOptionsSpecification_; +} + ModifyVpnConnectionAttributeResult::VcoHealthCheck ModifyVpnConnectionAttributeResult::getVcoHealthCheck()const { return vcoHealthCheck_; diff --git a/vpc/src/model/ModifyVpnGatewayAttributeResult.cc b/vpc/src/model/ModifyVpnGatewayAttributeResult.cc index 16b312fe1..942ef1d7c 100644 --- a/vpc/src/model/ModifyVpnGatewayAttributeResult.cc +++ b/vpc/src/model/ModifyVpnGatewayAttributeResult.cc @@ -67,6 +67,14 @@ void ModifyVpnGatewayAttributeResult::parse(const std::string &payload) businessStatus_ = value["BusinessStatus"].asString(); if(!value["Name"].isNull()) name_ = value["Name"].asString(); + if(!value["DisasterRecoveryInternetIp"].isNull()) + disasterRecoveryInternetIp_ = value["DisasterRecoveryInternetIp"].asString(); + if(!value["DisasterRecoveryVSwitchId"].isNull()) + disasterRecoveryVSwitchId_ = value["DisasterRecoveryVSwitchId"].asString(); + if(!value["SslVpnInternetIp"].isNull()) + sslVpnInternetIp_ = value["SslVpnInternetIp"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } @@ -85,11 +93,21 @@ bool ModifyVpnGatewayAttributeResult::getEnableBgp()const return enableBgp_; } +std::string ModifyVpnGatewayAttributeResult::getDisasterRecoveryVSwitchId()const +{ + return disasterRecoveryVSwitchId_; +} + long ModifyVpnGatewayAttributeResult::getEndTime()const { return endTime_; } +std::string ModifyVpnGatewayAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + long ModifyVpnGatewayAttributeResult::getCreateTime()const { return createTime_; @@ -135,6 +153,16 @@ std::string ModifyVpnGatewayAttributeResult::getVpnGatewayId()const return vpnGatewayId_; } +std::string ModifyVpnGatewayAttributeResult::getDisasterRecoveryInternetIp()const +{ + return disasterRecoveryInternetIp_; +} + +std::string ModifyVpnGatewayAttributeResult::getSslVpnInternetIp()const +{ + return sslVpnInternetIp_; +} + std::string ModifyVpnGatewayAttributeResult::getSpec()const { return spec_; diff --git a/vpc/src/model/MoveVpnResourceGroupRequest.cc b/vpc/src/model/MoveVpnResourceGroupRequest.cc new file mode 100644 index 000000000..ba9d6954d --- /dev/null +++ b/vpc/src/model/MoveVpnResourceGroupRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::MoveVpnResourceGroupRequest; + +MoveVpnResourceGroupRequest::MoveVpnResourceGroupRequest() + : RpcServiceRequest("vpc", "2016-04-28", "MoveVpnResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +MoveVpnResourceGroupRequest::~MoveVpnResourceGroupRequest() {} + +long MoveVpnResourceGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void MoveVpnResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string MoveVpnResourceGroupRequest::getRegionId() const { + return regionId_; +} + +void MoveVpnResourceGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string MoveVpnResourceGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void MoveVpnResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string MoveVpnResourceGroupRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void MoveVpnResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long MoveVpnResourceGroupRequest::getOwnerId() const { + return ownerId_; +} + +void MoveVpnResourceGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string MoveVpnResourceGroupRequest::getResourceType() const { + return resourceType_; +} + +void MoveVpnResourceGroupRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string MoveVpnResourceGroupRequest::getInstanceId() const { + return instanceId_; +} + +void MoveVpnResourceGroupRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string MoveVpnResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; +} + +void MoveVpnResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); +} + diff --git a/vpc/src/model/MoveVpnResourceGroupResult.cc b/vpc/src/model/MoveVpnResourceGroupResult.cc new file mode 100644 index 000000000..168de9b41 --- /dev/null +++ b/vpc/src/model/MoveVpnResourceGroupResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +MoveVpnResourceGroupResult::MoveVpnResourceGroupResult() : + ServiceResult() +{} + +MoveVpnResourceGroupResult::MoveVpnResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MoveVpnResourceGroupResult::~MoveVpnResourceGroupResult() +{} + +void MoveVpnResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/OpenPublicIpAddressPoolServiceRequest.cc b/vpc/src/model/OpenPublicIpAddressPoolServiceRequest.cc new file mode 100644 index 000000000..f58f71f92 --- /dev/null +++ b/vpc/src/model/OpenPublicIpAddressPoolServiceRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::OpenPublicIpAddressPoolServiceRequest; + +OpenPublicIpAddressPoolServiceRequest::OpenPublicIpAddressPoolServiceRequest() + : RpcServiceRequest("vpc", "2016-04-28", "OpenPublicIpAddressPoolService") { + setMethod(HttpRequest::Method::Post); +} + +OpenPublicIpAddressPoolServiceRequest::~OpenPublicIpAddressPoolServiceRequest() {} + +long OpenPublicIpAddressPoolServiceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void OpenPublicIpAddressPoolServiceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string OpenPublicIpAddressPoolServiceRequest::getClientToken() const { + return clientToken_; +} + +void OpenPublicIpAddressPoolServiceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string OpenPublicIpAddressPoolServiceRequest::getRegionId() const { + return regionId_; +} + +void OpenPublicIpAddressPoolServiceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string OpenPublicIpAddressPoolServiceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void OpenPublicIpAddressPoolServiceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string OpenPublicIpAddressPoolServiceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void OpenPublicIpAddressPoolServiceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long OpenPublicIpAddressPoolServiceRequest::getOwnerId() const { + return ownerId_; +} + +void OpenPublicIpAddressPoolServiceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/OpenPublicIpAddressPoolServiceResult.cc b/vpc/src/model/OpenPublicIpAddressPoolServiceResult.cc new file mode 100644 index 000000000..10f2b9815 --- /dev/null +++ b/vpc/src/model/OpenPublicIpAddressPoolServiceResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +OpenPublicIpAddressPoolServiceResult::OpenPublicIpAddressPoolServiceResult() : + ServiceResult() +{} + +OpenPublicIpAddressPoolServiceResult::OpenPublicIpAddressPoolServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OpenPublicIpAddressPoolServiceResult::~OpenPublicIpAddressPoolServiceResult() +{} + +void OpenPublicIpAddressPoolServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string OpenPublicIpAddressPoolServiceResult::getMessage()const +{ + return message_; +} + +std::string OpenPublicIpAddressPoolServiceResult::getCode()const +{ + return code_; +} + diff --git a/vpc/src/model/OpenTrafficMirrorServiceRequest.cc b/vpc/src/model/OpenTrafficMirrorServiceRequest.cc index 7a0f18b64..2acdf4955 100644 --- a/vpc/src/model/OpenTrafficMirrorServiceRequest.cc +++ b/vpc/src/model/OpenTrafficMirrorServiceRequest.cc @@ -25,6 +25,51 @@ OpenTrafficMirrorServiceRequest::OpenTrafficMirrorServiceRequest() OpenTrafficMirrorServiceRequest::~OpenTrafficMirrorServiceRequest() {} +long OpenTrafficMirrorServiceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void OpenTrafficMirrorServiceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string OpenTrafficMirrorServiceRequest::getClientToken() const { + return clientToken_; +} + +void OpenTrafficMirrorServiceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string OpenTrafficMirrorServiceRequest::getRegionId() const { + return regionId_; +} + +void OpenTrafficMirrorServiceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string OpenTrafficMirrorServiceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void OpenTrafficMirrorServiceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string OpenTrafficMirrorServiceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void OpenTrafficMirrorServiceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + long OpenTrafficMirrorServiceRequest::getOwnerId() const { return ownerId_; } diff --git a/vpc/src/model/OpenTrafficMirrorServiceResult.cc b/vpc/src/model/OpenTrafficMirrorServiceResult.cc index 4f8037413..efe4dfc5e 100644 --- a/vpc/src/model/OpenTrafficMirrorServiceResult.cc +++ b/vpc/src/model/OpenTrafficMirrorServiceResult.cc @@ -39,13 +39,20 @@ void OpenTrafficMirrorServiceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["OrderId"].isNull()) - orderId_ = value["OrderId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } -std::string OpenTrafficMirrorServiceResult::getOrderId()const +std::string OpenTrafficMirrorServiceResult::getMessage()const { - return orderId_; + return message_; +} + +std::string OpenTrafficMirrorServiceResult::getCode()const +{ + return code_; } diff --git a/vpc/src/model/PublishVpcRouteEntriesRequest.cc b/vpc/src/model/PublishVpcRouteEntriesRequest.cc new file mode 100644 index 000000000..d76343041 --- /dev/null +++ b/vpc/src/model/PublishVpcRouteEntriesRequest.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::PublishVpcRouteEntriesRequest; + +PublishVpcRouteEntriesRequest::PublishVpcRouteEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "PublishVpcRouteEntries") { + setMethod(HttpRequest::Method::Post); +} + +PublishVpcRouteEntriesRequest::~PublishVpcRouteEntriesRequest() {} + +long PublishVpcRouteEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void PublishVpcRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string PublishVpcRouteEntriesRequest::getTargetType() const { + return targetType_; +} + +void PublishVpcRouteEntriesRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::string PublishVpcRouteEntriesRequest::getRegionId() const { + return regionId_; +} + +void PublishVpcRouteEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool PublishVpcRouteEntriesRequest::getDryRun() const { + return dryRun_; +} + +void PublishVpcRouteEntriesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string PublishVpcRouteEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void PublishVpcRouteEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string PublishVpcRouteEntriesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void PublishVpcRouteEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long PublishVpcRouteEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void PublishVpcRouteEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string PublishVpcRouteEntriesRequest::getTargetInstanceId() const { + return targetInstanceId_; +} + +void PublishVpcRouteEntriesRequest::setTargetInstanceId(const std::string &targetInstanceId) { + targetInstanceId_ = targetInstanceId; + setParameter(std::string("TargetInstanceId"), targetInstanceId); +} + +std::vector PublishVpcRouteEntriesRequest::getRouteEntries() const { + return routeEntries_; +} + +void PublishVpcRouteEntriesRequest::setRouteEntries(const std::vector &routeEntries) { + routeEntries_ = routeEntries; + for(int dep1 = 0; dep1 != routeEntries.size(); dep1++) { + auto routeEntriesObj = routeEntries.at(dep1); + std::string routeEntriesObjStr = std::string("RouteEntries") + "." + std::to_string(dep1 + 1); + setParameter(routeEntriesObjStr + ".RouteTableId", routeEntriesObj.routeTableId); + setParameter(routeEntriesObjStr + ".DestinationCidrBlock", routeEntriesObj.destinationCidrBlock); + } +} + diff --git a/vpc/src/model/PublishVpcRouteEntriesResult.cc b/vpc/src/model/PublishVpcRouteEntriesResult.cc new file mode 100644 index 000000000..393dc3981 --- /dev/null +++ b/vpc/src/model/PublishVpcRouteEntriesResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +PublishVpcRouteEntriesResult::PublishVpcRouteEntriesResult() : + ServiceResult() +{} + +PublishVpcRouteEntriesResult::PublishVpcRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PublishVpcRouteEntriesResult::~PublishVpcRouteEntriesResult() +{} + +void PublishVpcRouteEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/ReleaseIpv6AddressRequest.cc b/vpc/src/model/ReleaseIpv6AddressRequest.cc new file mode 100644 index 000000000..163637931 --- /dev/null +++ b/vpc/src/model/ReleaseIpv6AddressRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::ReleaseIpv6AddressRequest; + +ReleaseIpv6AddressRequest::ReleaseIpv6AddressRequest() + : RpcServiceRequest("vpc", "2016-04-28", "ReleaseIpv6Address") { + setMethod(HttpRequest::Method::Post); +} + +ReleaseIpv6AddressRequest::~ReleaseIpv6AddressRequest() {} + +long ReleaseIpv6AddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ReleaseIpv6AddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ReleaseIpv6AddressRequest::getClientToken() const { + return clientToken_; +} + +void ReleaseIpv6AddressRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ReleaseIpv6AddressRequest::getRegionId() const { + return regionId_; +} + +void ReleaseIpv6AddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool ReleaseIpv6AddressRequest::getDryRun() const { + return dryRun_; +} + +void ReleaseIpv6AddressRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string ReleaseIpv6AddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ReleaseIpv6AddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ReleaseIpv6AddressRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ReleaseIpv6AddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ReleaseIpv6AddressRequest::getOwnerId() const { + return ownerId_; +} + +void ReleaseIpv6AddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ReleaseIpv6AddressRequest::getIpv6AddressId() const { + return ipv6AddressId_; +} + +void ReleaseIpv6AddressRequest::setIpv6AddressId(const std::string &ipv6AddressId) { + ipv6AddressId_ = ipv6AddressId; + setParameter(std::string("Ipv6AddressId"), ipv6AddressId); +} + diff --git a/vpc/src/model/ReleaseIpv6AddressResult.cc b/vpc/src/model/ReleaseIpv6AddressResult.cc new file mode 100644 index 000000000..dc84180e0 --- /dev/null +++ b/vpc/src/model/ReleaseIpv6AddressResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +ReleaseIpv6AddressResult::ReleaseIpv6AddressResult() : + ServiceResult() +{} + +ReleaseIpv6AddressResult::ReleaseIpv6AddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseIpv6AddressResult::~ReleaseIpv6AddressResult() +{} + +void ReleaseIpv6AddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/SecondApplyPhysicalConnectionLOARequest.cc b/vpc/src/model/SecondApplyPhysicalConnectionLOARequest.cc new file mode 100644 index 000000000..a6a4b3e2f --- /dev/null +++ b/vpc/src/model/SecondApplyPhysicalConnectionLOARequest.cc @@ -0,0 +1,161 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::SecondApplyPhysicalConnectionLOARequest; + +SecondApplyPhysicalConnectionLOARequest::SecondApplyPhysicalConnectionLOARequest() + : RpcServiceRequest("vpc", "2016-04-28", "SecondApplyPhysicalConnectionLOA") { + setMethod(HttpRequest::Method::Post); +} + +SecondApplyPhysicalConnectionLOARequest::~SecondApplyPhysicalConnectionLOARequest() {} + +long SecondApplyPhysicalConnectionLOARequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SecondApplyPhysicalConnectionLOARequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SecondApplyPhysicalConnectionLOARequest::getClientToken() const { + return clientToken_; +} + +void SecondApplyPhysicalConnectionLOARequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string SecondApplyPhysicalConnectionLOARequest::getLineType() const { + return lineType_; +} + +void SecondApplyPhysicalConnectionLOARequest::setLineType(const std::string &lineType) { + lineType_ = lineType; + setParameter(std::string("LineType"), lineType); +} + +std::string SecondApplyPhysicalConnectionLOARequest::getRegionId() const { + return regionId_; +} + +void SecondApplyPhysicalConnectionLOARequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SecondApplyPhysicalConnectionLOARequest::getSi() const { + return si_; +} + +void SecondApplyPhysicalConnectionLOARequest::setSi(const std::string &si) { + si_ = si; + setParameter(std::string("Si"), si); +} + +std::string SecondApplyPhysicalConnectionLOARequest::getPeerLocation() const { + return peerLocation_; +} + +void SecondApplyPhysicalConnectionLOARequest::setPeerLocation(const std::string &peerLocation) { + peerLocation_ = peerLocation; + setParameter(std::string("PeerLocation"), peerLocation); +} + +std::string SecondApplyPhysicalConnectionLOARequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SecondApplyPhysicalConnectionLOARequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +int SecondApplyPhysicalConnectionLOARequest::getBandwidth() const { + return bandwidth_; +} + +void SecondApplyPhysicalConnectionLOARequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + +std::string SecondApplyPhysicalConnectionLOARequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SecondApplyPhysicalConnectionLOARequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string SecondApplyPhysicalConnectionLOARequest::getConstructionTime() const { + return constructionTime_; +} + +void SecondApplyPhysicalConnectionLOARequest::setConstructionTime(const std::string &constructionTime) { + constructionTime_ = constructionTime; + setParameter(std::string("ConstructionTime"), constructionTime); +} + +long SecondApplyPhysicalConnectionLOARequest::getOwnerId() const { + return ownerId_; +} + +void SecondApplyPhysicalConnectionLOARequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SecondApplyPhysicalConnectionLOARequest::getInstanceId() const { + return instanceId_; +} + +void SecondApplyPhysicalConnectionLOARequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string SecondApplyPhysicalConnectionLOARequest::getCompanyName() const { + return companyName_; +} + +void SecondApplyPhysicalConnectionLOARequest::setCompanyName(const std::string &companyName) { + companyName_ = companyName; + setParameter(std::string("CompanyName"), companyName); +} + +std::vector SecondApplyPhysicalConnectionLOARequest::getPMInfo() const { + return pMInfo_; +} + +void SecondApplyPhysicalConnectionLOARequest::setPMInfo(const std::vector &pMInfo) { + pMInfo_ = pMInfo; + for(int dep1 = 0; dep1 != pMInfo.size(); dep1++) { + auto pMInfoObj = pMInfo.at(dep1); + std::string pMInfoObjStr = std::string("PMInfo") + "." + std::to_string(dep1 + 1); + setParameter(pMInfoObjStr + ".PMCertificateNo", pMInfoObj.pMCertificateNo); + setParameter(pMInfoObjStr + ".PMName", pMInfoObj.pMName); + setParameter(pMInfoObjStr + ".PMCertificateType", pMInfoObj.pMCertificateType); + setParameter(pMInfoObjStr + ".PMGender", pMInfoObj.pMGender); + setParameter(pMInfoObjStr + ".PMContactInfo", pMInfoObj.pMContactInfo); + } +} + diff --git a/vpc/src/model/SecondApplyPhysicalConnectionLOAResult.cc b/vpc/src/model/SecondApplyPhysicalConnectionLOAResult.cc new file mode 100644 index 000000000..931118c25 --- /dev/null +++ b/vpc/src/model/SecondApplyPhysicalConnectionLOAResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +SecondApplyPhysicalConnectionLOAResult::SecondApplyPhysicalConnectionLOAResult() : + ServiceResult() +{} + +SecondApplyPhysicalConnectionLOAResult::SecondApplyPhysicalConnectionLOAResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SecondApplyPhysicalConnectionLOAResult::~SecondApplyPhysicalConnectionLOAResult() +{} + +void SecondApplyPhysicalConnectionLOAResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/StartFailoverTestJobRequest.cc b/vpc/src/model/StartFailoverTestJobRequest.cc new file mode 100644 index 000000000..9a85119f7 --- /dev/null +++ b/vpc/src/model/StartFailoverTestJobRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::StartFailoverTestJobRequest; + +StartFailoverTestJobRequest::StartFailoverTestJobRequest() + : RpcServiceRequest("vpc", "2016-04-28", "StartFailoverTestJob") { + setMethod(HttpRequest::Method::Post); +} + +StartFailoverTestJobRequest::~StartFailoverTestJobRequest() {} + +std::string StartFailoverTestJobRequest::getClientToken() const { + return clientToken_; +} + +void StartFailoverTestJobRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string StartFailoverTestJobRequest::getJobId() const { + return jobId_; +} + +void StartFailoverTestJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + +std::string StartFailoverTestJobRequest::getRegionId() const { + return regionId_; +} + +void StartFailoverTestJobRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string StartFailoverTestJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void StartFailoverTestJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string StartFailoverTestJobRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void StartFailoverTestJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long StartFailoverTestJobRequest::getOwnerId() const { + return ownerId_; +} + +void StartFailoverTestJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/StartFailoverTestJobResult.cc b/vpc/src/model/StartFailoverTestJobResult.cc new file mode 100644 index 000000000..cd0ee7c64 --- /dev/null +++ b/vpc/src/model/StartFailoverTestJobResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +StartFailoverTestJobResult::StartFailoverTestJobResult() : + ServiceResult() +{} + +StartFailoverTestJobResult::StartFailoverTestJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartFailoverTestJobResult::~StartFailoverTestJobResult() +{} + +void StartFailoverTestJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/StopFailoverTestJobRequest.cc b/vpc/src/model/StopFailoverTestJobRequest.cc new file mode 100644 index 000000000..180b1b092 --- /dev/null +++ b/vpc/src/model/StopFailoverTestJobRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::StopFailoverTestJobRequest; + +StopFailoverTestJobRequest::StopFailoverTestJobRequest() + : RpcServiceRequest("vpc", "2016-04-28", "StopFailoverTestJob") { + setMethod(HttpRequest::Method::Post); +} + +StopFailoverTestJobRequest::~StopFailoverTestJobRequest() {} + +std::string StopFailoverTestJobRequest::getClientToken() const { + return clientToken_; +} + +void StopFailoverTestJobRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string StopFailoverTestJobRequest::getJobId() const { + return jobId_; +} + +void StopFailoverTestJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + +std::string StopFailoverTestJobRequest::getRegionId() const { + return regionId_; +} + +void StopFailoverTestJobRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string StopFailoverTestJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void StopFailoverTestJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string StopFailoverTestJobRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void StopFailoverTestJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long StopFailoverTestJobRequest::getOwnerId() const { + return ownerId_; +} + +void StopFailoverTestJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/vpc/src/model/StopFailoverTestJobResult.cc b/vpc/src/model/StopFailoverTestJobResult.cc new file mode 100644 index 000000000..8ca3f51dd --- /dev/null +++ b/vpc/src/model/StopFailoverTestJobResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +StopFailoverTestJobResult::StopFailoverTestJobResult() : + ServiceResult() +{} + +StopFailoverTestJobResult::StopFailoverTestJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopFailoverTestJobResult::~StopFailoverTestJobResult() +{} + +void StopFailoverTestJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/TransformEipSegmentToPublicIpAddressPoolRequest.cc b/vpc/src/model/TransformEipSegmentToPublicIpAddressPoolRequest.cc new file mode 100644 index 000000000..fb5e3c5c8 --- /dev/null +++ b/vpc/src/model/TransformEipSegmentToPublicIpAddressPoolRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::TransformEipSegmentToPublicIpAddressPoolRequest; + +TransformEipSegmentToPublicIpAddressPoolRequest::TransformEipSegmentToPublicIpAddressPoolRequest() + : RpcServiceRequest("vpc", "2016-04-28", "TransformEipSegmentToPublicIpAddressPool") { + setMethod(HttpRequest::Method::Post); +} + +TransformEipSegmentToPublicIpAddressPoolRequest::~TransformEipSegmentToPublicIpAddressPoolRequest() {} + +std::string TransformEipSegmentToPublicIpAddressPoolRequest::getClientToken() const { + return clientToken_; +} + +void TransformEipSegmentToPublicIpAddressPoolRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string TransformEipSegmentToPublicIpAddressPoolRequest::getDescription() const { + return description_; +} + +void TransformEipSegmentToPublicIpAddressPoolRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string TransformEipSegmentToPublicIpAddressPoolRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void TransformEipSegmentToPublicIpAddressPoolRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string TransformEipSegmentToPublicIpAddressPoolRequest::getRegionId() const { + return regionId_; +} + +void TransformEipSegmentToPublicIpAddressPoolRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string TransformEipSegmentToPublicIpAddressPoolRequest::getInstanceId() const { + return instanceId_; +} + +void TransformEipSegmentToPublicIpAddressPoolRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string TransformEipSegmentToPublicIpAddressPoolRequest::getName() const { + return name_; +} + +void TransformEipSegmentToPublicIpAddressPoolRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/vpc/src/model/TransformEipSegmentToPublicIpAddressPoolResult.cc b/vpc/src/model/TransformEipSegmentToPublicIpAddressPoolResult.cc new file mode 100644 index 000000000..08eb62a9a --- /dev/null +++ b/vpc/src/model/TransformEipSegmentToPublicIpAddressPoolResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +TransformEipSegmentToPublicIpAddressPoolResult::TransformEipSegmentToPublicIpAddressPoolResult() : + ServiceResult() +{} + +TransformEipSegmentToPublicIpAddressPoolResult::TransformEipSegmentToPublicIpAddressPoolResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TransformEipSegmentToPublicIpAddressPoolResult::~TransformEipSegmentToPublicIpAddressPoolResult() +{} + +void TransformEipSegmentToPublicIpAddressPoolResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["PublicIpAddressPoolId"].isNull()) + publicIpAddressPoolId_ = value["PublicIpAddressPoolId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + +} + +std::string TransformEipSegmentToPublicIpAddressPoolResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +std::string TransformEipSegmentToPublicIpAddressPoolResult::getPublicIpAddressPoolId()const +{ + return publicIpAddressPoolId_; +} + diff --git a/vpc/src/model/UnassociateNetworkAclRequest.cc b/vpc/src/model/UnassociateNetworkAclRequest.cc index 383b9d744..d74d9dce6 100644 --- a/vpc/src/model/UnassociateNetworkAclRequest.cc +++ b/vpc/src/model/UnassociateNetworkAclRequest.cc @@ -61,6 +61,15 @@ void UnassociateNetworkAclRequest::setNetworkAclId(const std::string &networkAcl setParameter(std::string("NetworkAclId"), networkAclId); } +bool UnassociateNetworkAclRequest::getDryRun() const { + return dryRun_; +} + +void UnassociateNetworkAclRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + std::vector UnassociateNetworkAclRequest::getResource() const { return resource_; } @@ -84,6 +93,15 @@ void UnassociateNetworkAclRequest::setResourceOwnerAccount(const std::string &re setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } +std::string UnassociateNetworkAclRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UnassociateNetworkAclRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + long UnassociateNetworkAclRequest::getOwnerId() const { return ownerId_; } diff --git a/vpc/src/model/UpdateFailoverTestJobRequest.cc b/vpc/src/model/UpdateFailoverTestJobRequest.cc new file mode 100644 index 000000000..519db24fd --- /dev/null +++ b/vpc/src/model/UpdateFailoverTestJobRequest.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Vpc::Model::UpdateFailoverTestJobRequest; + +UpdateFailoverTestJobRequest::UpdateFailoverTestJobRequest() + : RpcServiceRequest("vpc", "2016-04-28", "UpdateFailoverTestJob") { + setMethod(HttpRequest::Method::Post); +} + +UpdateFailoverTestJobRequest::~UpdateFailoverTestJobRequest() {} + +std::string UpdateFailoverTestJobRequest::getClientToken() const { + return clientToken_; +} + +void UpdateFailoverTestJobRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateFailoverTestJobRequest::getDescription() const { + return description_; +} + +void UpdateFailoverTestJobRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int UpdateFailoverTestJobRequest::getJobDuration() const { + return jobDuration_; +} + +void UpdateFailoverTestJobRequest::setJobDuration(int jobDuration) { + jobDuration_ = jobDuration; + setParameter(std::string("JobDuration"), std::to_string(jobDuration)); +} + +std::string UpdateFailoverTestJobRequest::getJobId() const { + return jobId_; +} + +void UpdateFailoverTestJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + +std::string UpdateFailoverTestJobRequest::getRegionId() const { + return regionId_; +} + +void UpdateFailoverTestJobRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector UpdateFailoverTestJobRequest::getResourceId() const { + return resourceId_; +} + +void UpdateFailoverTestJobRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +bool UpdateFailoverTestJobRequest::getDryRun() const { + return dryRun_; +} + +void UpdateFailoverTestJobRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateFailoverTestJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UpdateFailoverTestJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UpdateFailoverTestJobRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UpdateFailoverTestJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long UpdateFailoverTestJobRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateFailoverTestJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UpdateFailoverTestJobRequest::getName() const { + return name_; +} + +void UpdateFailoverTestJobRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/vpc/src/model/UpdateFailoverTestJobResult.cc b/vpc/src/model/UpdateFailoverTestJobResult.cc new file mode 100644 index 000000000..c4ee5c18e --- /dev/null +++ b/vpc/src/model/UpdateFailoverTestJobResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +UpdateFailoverTestJobResult::UpdateFailoverTestJobResult() : + ServiceResult() +{} + +UpdateFailoverTestJobResult::UpdateFailoverTestJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateFailoverTestJobResult::~UpdateFailoverTestJobResult() +{} + +void UpdateFailoverTestJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/vpc/src/model/UpdateGatewayRouteTableEntryAttributeRequest.cc b/vpc/src/model/UpdateGatewayRouteTableEntryAttributeRequest.cc index f998ada61..bdc2f6dc7 100644 --- a/vpc/src/model/UpdateGatewayRouteTableEntryAttributeRequest.cc +++ b/vpc/src/model/UpdateGatewayRouteTableEntryAttributeRequest.cc @@ -124,6 +124,15 @@ void UpdateGatewayRouteTableEntryAttributeRequest::setOwnerAccount(const std::st setParameter(std::string("OwnerAccount"), ownerAccount); } +std::string UpdateGatewayRouteTableEntryAttributeRequest::getGatewayRouteTableId() const { + return gatewayRouteTableId_; +} + +void UpdateGatewayRouteTableEntryAttributeRequest::setGatewayRouteTableId(const std::string &gatewayRouteTableId) { + gatewayRouteTableId_ = gatewayRouteTableId; + setParameter(std::string("GatewayRouteTableId"), gatewayRouteTableId); +} + long UpdateGatewayRouteTableEntryAttributeRequest::getOwnerId() const { return ownerId_; } diff --git a/vpc/src/model/UpdateNetworkAclEntriesRequest.cc b/vpc/src/model/UpdateNetworkAclEntriesRequest.cc index 15aba8c82..954de6ab0 100644 --- a/vpc/src/model/UpdateNetworkAclEntriesRequest.cc +++ b/vpc/src/model/UpdateNetworkAclEntriesRequest.cc @@ -50,6 +50,7 @@ void UpdateNetworkAclEntriesRequest::setEgressAclEntries(const std::vector + +using AlibabaCloud::Vpc::Model::WithdrawVpcPublishedRouteEntriesRequest; + +WithdrawVpcPublishedRouteEntriesRequest::WithdrawVpcPublishedRouteEntriesRequest() + : RpcServiceRequest("vpc", "2016-04-28", "WithdrawVpcPublishedRouteEntries") { + setMethod(HttpRequest::Method::Post); +} + +WithdrawVpcPublishedRouteEntriesRequest::~WithdrawVpcPublishedRouteEntriesRequest() {} + +long WithdrawVpcPublishedRouteEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void WithdrawVpcPublishedRouteEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string WithdrawVpcPublishedRouteEntriesRequest::getTargetType() const { + return targetType_; +} + +void WithdrawVpcPublishedRouteEntriesRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::string WithdrawVpcPublishedRouteEntriesRequest::getRegionId() const { + return regionId_; +} + +void WithdrawVpcPublishedRouteEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool WithdrawVpcPublishedRouteEntriesRequest::getDryRun() const { + return dryRun_; +} + +void WithdrawVpcPublishedRouteEntriesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string WithdrawVpcPublishedRouteEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void WithdrawVpcPublishedRouteEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string WithdrawVpcPublishedRouteEntriesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void WithdrawVpcPublishedRouteEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long WithdrawVpcPublishedRouteEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void WithdrawVpcPublishedRouteEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string WithdrawVpcPublishedRouteEntriesRequest::getTargetInstanceId() const { + return targetInstanceId_; +} + +void WithdrawVpcPublishedRouteEntriesRequest::setTargetInstanceId(const std::string &targetInstanceId) { + targetInstanceId_ = targetInstanceId; + setParameter(std::string("TargetInstanceId"), targetInstanceId); +} + +std::vector WithdrawVpcPublishedRouteEntriesRequest::getRouteEntries() const { + return routeEntries_; +} + +void WithdrawVpcPublishedRouteEntriesRequest::setRouteEntries(const std::vector &routeEntries) { + routeEntries_ = routeEntries; + for(int dep1 = 0; dep1 != routeEntries.size(); dep1++) { + auto routeEntriesObj = routeEntries.at(dep1); + std::string routeEntriesObjStr = std::string("RouteEntries") + "." + std::to_string(dep1 + 1); + setParameter(routeEntriesObjStr + ".RouteTableId", routeEntriesObj.routeTableId); + setParameter(routeEntriesObjStr + ".DestinationCidrBlock", routeEntriesObj.destinationCidrBlock); + } +} + diff --git a/vpc/src/model/WithdrawVpcPublishedRouteEntriesResult.cc b/vpc/src/model/WithdrawVpcPublishedRouteEntriesResult.cc new file mode 100644 index 000000000..2784f2818 --- /dev/null +++ b/vpc/src/model/WithdrawVpcPublishedRouteEntriesResult.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::Vpc; +using namespace AlibabaCloud::Vpc::Model; + +WithdrawVpcPublishedRouteEntriesResult::WithdrawVpcPublishedRouteEntriesResult() : + ServiceResult() +{} + +WithdrawVpcPublishedRouteEntriesResult::WithdrawVpcPublishedRouteEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +WithdrawVpcPublishedRouteEntriesResult::~WithdrawVpcPublishedRouteEntriesResult() +{} + +void WithdrawVpcPublishedRouteEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +