@huaweicloud/huaweicloud-sdk-vpc 3.1.45 → 3.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/huaweicloud-sdk-vpc.ts +6 -0
- package/package.json +4 -4
- package/v2/VpcClient.ts +8117 -0
- package/v2/VpcRegion.ts +62 -0
- package/v2/model/AcceptVpcPeeringRequest.ts +18 -0
- package/v2/model/AcceptVpcPeeringResponse.ts +85 -0
- package/v2/model/AddRouteTableRoute.ts +29 -0
- package/v2/model/AllocationPool.ts +16 -0
- package/v2/model/AllowedAddressPair.ts +29 -0
- package/v2/model/AsscoiateReq.ts +13 -0
- package/v2/model/AssociateRouteTableAndSubnetReq.ts +16 -0
- package/v2/model/AssociateRouteTableRequest.ts +24 -0
- package/v2/model/AssociateRouteTableResponse.ts +14 -0
- package/v2/model/BatchCreateSubnetTagsRequest.ts +24 -0
- package/v2/model/BatchCreateSubnetTagsRequestBody.ts +27 -0
- package/v2/model/BatchCreateSubnetTagsResponse.ts +8 -0
- package/v2/model/BatchCreateVpcTagsRequest.ts +24 -0
- package/v2/model/BatchCreateVpcTagsRequestBody.ts +27 -0
- package/v2/model/BatchCreateVpcTagsResponse.ts +8 -0
- package/v2/model/BatchDeleteSubnetTagsRequest.ts +24 -0
- package/v2/model/BatchDeleteSubnetTagsRequestBody.ts +27 -0
- package/v2/model/BatchDeleteSubnetTagsResponse.ts +8 -0
- package/v2/model/BatchDeleteVpcTagsRequest.ts +24 -0
- package/v2/model/BatchDeleteVpcTagsRequestBody.ts +27 -0
- package/v2/model/BatchDeleteVpcTagsResponse.ts +8 -0
- package/v2/model/BindingVifDetails.ts +39 -0
- package/v2/model/CreateFlowLogReq.ts +106 -0
- package/v2/model/CreateFlowLogReqBody.ts +19 -0
- package/v2/model/CreateFlowLogRequest.ts +12 -0
- package/v2/model/CreateFlowLogResponse.ts +20 -0
- package/v2/model/CreatePortOption.ts +103 -0
- package/v2/model/CreatePortRequest.ts +12 -0
- package/v2/model/CreatePortRequestBody.ts +13 -0
- package/v2/model/CreatePortResponse.ts +14 -0
- package/v2/model/CreatePrivateipOption.ts +29 -0
- package/v2/model/CreatePrivateipRequest.ts +12 -0
- package/v2/model/CreatePrivateipRequestBody.ts +13 -0
- package/v2/model/CreatePrivateipResponse.ts +14 -0
- package/v2/model/CreateRouteTableReq.ts +34 -0
- package/v2/model/CreateRouteTableRequest.ts +12 -0
- package/v2/model/CreateRouteTableResponse.ts +14 -0
- package/v2/model/CreateRoutetableReqBody.ts +13 -0
- package/v2/model/CreateSecurityGroupOption.ts +34 -0
- package/v2/model/CreateSecurityGroupRequest.ts +12 -0
- package/v2/model/CreateSecurityGroupRequestBody.ts +19 -0
- package/v2/model/CreateSecurityGroupResponse.ts +20 -0
- package/v2/model/CreateSecurityGroupRuleOption.ts +83 -0
- package/v2/model/CreateSecurityGroupRuleRequest.ts +12 -0
- package/v2/model/CreateSecurityGroupRuleRequestBody.ts +19 -0
- package/v2/model/CreateSecurityGroupRuleResponse.ts +20 -0
- package/v2/model/CreateSubnetOption.ts +124 -0
- package/v2/model/CreateSubnetRequest.ts +12 -0
- package/v2/model/CreateSubnetRequestBody.ts +13 -0
- package/v2/model/CreateSubnetResponse.ts +14 -0
- package/v2/model/CreateSubnetTagRequest.ts +24 -0
- package/v2/model/CreateSubnetTagRequestBody.ts +13 -0
- package/v2/model/CreateSubnetTagResponse.ts +8 -0
- package/v2/model/CreateVpcOption.ts +37 -0
- package/v2/model/CreateVpcPeeringOption.ts +42 -0
- package/v2/model/CreateVpcPeeringRequest.ts +12 -0
- package/v2/model/CreateVpcPeeringRequestBody.ts +13 -0
- package/v2/model/CreateVpcPeeringResponse.ts +14 -0
- package/v2/model/CreateVpcRequest.ts +12 -0
- package/v2/model/CreateVpcRequestBody.ts +13 -0
- package/v2/model/CreateVpcResourceTagRequest.ts +24 -0
- package/v2/model/CreateVpcResourceTagRequestBody.ts +13 -0
- package/v2/model/CreateVpcResourceTagResponse.ts +8 -0
- package/v2/model/CreateVpcResponse.ts +14 -0
- package/v2/model/CreateVpcRouteOption.ts +44 -0
- package/v2/model/CreateVpcRouteRequest.ts +12 -0
- package/v2/model/CreateVpcRouteRequestBody.ts +13 -0
- package/v2/model/CreateVpcRouteResponse.ts +14 -0
- package/v2/model/DelRouteTableRoute.ts +27 -0
- package/v2/model/DeleteFlowLogRequest.ts +18 -0
- package/v2/model/DeleteFlowLogResponse.ts +8 -0
- package/v2/model/DeletePortRequest.ts +18 -0
- package/v2/model/DeletePortResponse.ts +8 -0
- package/v2/model/DeletePrivateipRequest.ts +18 -0
- package/v2/model/DeletePrivateipResponse.ts +8 -0
- package/v2/model/DeleteRouteTableRequest.ts +18 -0
- package/v2/model/DeleteRouteTableResponse.ts +8 -0
- package/v2/model/DeleteSecurityGroupRequest.ts +18 -0
- package/v2/model/DeleteSecurityGroupResponse.ts +8 -0
- package/v2/model/DeleteSecurityGroupRuleRequest.ts +18 -0
- package/v2/model/DeleteSecurityGroupRuleResponse.ts +8 -0
- package/v2/model/DeleteSubnetRequest.ts +30 -0
- package/v2/model/DeleteSubnetResponse.ts +8 -0
- package/v2/model/DeleteSubnetTagRequest.ts +24 -0
- package/v2/model/DeleteSubnetTagResponse.ts +8 -0
- package/v2/model/DeleteVpcPeeringRequest.ts +18 -0
- package/v2/model/DeleteVpcPeeringResponse.ts +8 -0
- package/v2/model/DeleteVpcRequest.ts +18 -0
- package/v2/model/DeleteVpcResponse.ts +8 -0
- package/v2/model/DeleteVpcRouteRequest.ts +18 -0
- package/v2/model/DeleteVpcRouteResponse.ts +8 -0
- package/v2/model/DeleteVpcTagRequest.ts +24 -0
- package/v2/model/DeleteVpcTagResponse.ts +8 -0
- package/v2/model/DisassociateRouteTableRequest.ts +24 -0
- package/v2/model/DisassociateRouteTableResponse.ts +14 -0
- package/v2/model/DnsAssignMent.ts +27 -0
- package/v2/model/ExternalGatewayInfo.ts +28 -0
- package/v2/model/ExternalGatewayInfoOption.ts +17 -0
- package/v2/model/ExtraDhcpOpt.ts +28 -0
- package/v2/model/ExtraDhcpOption.ts +38 -0
- package/v2/model/FixedIp.ts +28 -0
- package/v2/model/FlowLogResp.ts +185 -0
- package/v2/model/HostRoute.ts +16 -0
- package/v2/model/ListApiVersionRequest.ts +6 -0
- package/v2/model/ListApiVersionResponse.ts +14 -0
- package/v2/model/ListFlowLogsRequest.ts +148 -0
- package/v2/model/ListFlowLogsResponse.ts +20 -0
- package/v2/model/ListPortsRequest.ts +139 -0
- package/v2/model/ListPortsResponse.ts +14 -0
- package/v2/model/ListPrivateipsRequest.ts +28 -0
- package/v2/model/ListPrivateipsResponse.ts +14 -0
- package/v2/model/ListResourceResp.ts +48 -0
- package/v2/model/ListRouteTablesRequest.ts +43 -0
- package/v2/model/ListRouteTablesResponse.ts +14 -0
- package/v2/model/ListSecurityGroupRulesRequest.ts +38 -0
- package/v2/model/ListSecurityGroupRulesResponse.ts +20 -0
- package/v2/model/ListSecurityGroupsRequest.ts +38 -0
- package/v2/model/ListSecurityGroupsResponse.ts +20 -0
- package/v2/model/ListSubnetTagsRequest.ts +6 -0
- package/v2/model/ListSubnetTagsResponse.ts +14 -0
- package/v2/model/ListSubnetsByTagsRequest.ts +12 -0
- package/v2/model/ListSubnetsByTagsRequestBody.ts +43 -0
- package/v2/model/ListSubnetsByTagsResponse.ts +25 -0
- package/v2/model/ListSubnetsRequest.ts +27 -0
- package/v2/model/ListSubnetsResponse.ts +14 -0
- package/v2/model/ListTag.ts +18 -0
- package/v2/model/ListVpcPeeringsRequest.ts +65 -0
- package/v2/model/ListVpcPeeringsResponse.ts +26 -0
- package/v2/model/ListVpcRoutesRequest.ts +61 -0
- package/v2/model/ListVpcRoutesResponse.ts +26 -0
- package/v2/model/ListVpcTagsRequest.ts +6 -0
- package/v2/model/ListVpcTagsResponse.ts +14 -0
- package/v2/model/ListVpcsByTagsRequest.ts +12 -0
- package/v2/model/ListVpcsByTagsRequestBody.ts +43 -0
- package/v2/model/ListVpcsByTagsResponse.ts +25 -0
- package/v2/model/ListVpcsRequest.ts +32 -0
- package/v2/model/ListVpcsResponse.ts +14 -0
- package/v2/model/Match.ts +18 -0
- package/v2/model/ModRouteTableRoute.ts +29 -0
- package/v2/model/NetworkIpAvailability.ts +79 -0
- package/v2/model/NeutronAddFirewallRuleRequest.ts +24 -0
- package/v2/model/NeutronAddFirewallRuleResponse.ts +72 -0
- package/v2/model/NeutronAddRouterInterfaceRequest.ts +24 -0
- package/v2/model/NeutronAddRouterInterfaceResponse.ts +65 -0
- package/v2/model/NeutronCreateFirewallGroupOption.ts +54 -0
- package/v2/model/NeutronCreateFirewallGroupRequest.ts +12 -0
- package/v2/model/NeutronCreateFirewallGroupRequestBody.ts +19 -0
- package/v2/model/NeutronCreateFirewallGroupResponse.ts +20 -0
- package/v2/model/NeutronCreateFirewallPolicyOption.ts +32 -0
- package/v2/model/NeutronCreateFirewallPolicyRequest.ts +12 -0
- package/v2/model/NeutronCreateFirewallPolicyRequestBody.ts +19 -0
- package/v2/model/NeutronCreateFirewallPolicyResponse.ts +20 -0
- package/v2/model/NeutronCreateFirewallRuleOption.ts +95 -0
- package/v2/model/NeutronCreateFirewallRuleRequest.ts +12 -0
- package/v2/model/NeutronCreateFirewallRuleRequestBody.ts +19 -0
- package/v2/model/NeutronCreateFirewallRuleResponse.ts +20 -0
- package/v2/model/NeutronCreateNetworkOption.ts +49 -0
- package/v2/model/NeutronCreateNetworkRequest.ts +12 -0
- package/v2/model/NeutronCreateNetworkRequestBody.ts +13 -0
- package/v2/model/NeutronCreateNetworkResponse.ts +14 -0
- package/v2/model/NeutronCreatePortOption.ts +125 -0
- package/v2/model/NeutronCreatePortRequest.ts +12 -0
- package/v2/model/NeutronCreatePortRequestBody.ts +13 -0
- package/v2/model/NeutronCreatePortResponse.ts +14 -0
- package/v2/model/NeutronCreateRouterOption.ts +34 -0
- package/v2/model/NeutronCreateRouterRequest.ts +12 -0
- package/v2/model/NeutronCreateRouterRequestBody.ts +13 -0
- package/v2/model/NeutronCreateRouterResponse.ts +14 -0
- package/v2/model/NeutronCreateSecurityGroupOption.ts +16 -0
- package/v2/model/NeutronCreateSecurityGroupRequest.ts +12 -0
- package/v2/model/NeutronCreateSecurityGroupRequestBody.ts +19 -0
- package/v2/model/NeutronCreateSecurityGroupResponse.ts +20 -0
- package/v2/model/NeutronCreateSecurityGroupRuleOption.ts +100 -0
- package/v2/model/NeutronCreateSecurityGroupRuleRequest.ts +12 -0
- package/v2/model/NeutronCreateSecurityGroupRuleRequestBody.ts +19 -0
- package/v2/model/NeutronCreateSecurityGroupRuleResponse.ts +20 -0
- package/v2/model/NeutronCreateSubnetOption.ts +119 -0
- package/v2/model/NeutronCreateSubnetRequest.ts +12 -0
- package/v2/model/NeutronCreateSubnetRequestBody.ts +13 -0
- package/v2/model/NeutronCreateSubnetResponse.ts +14 -0
- package/v2/model/NeutronDeleteFirewallGroupRequest.ts +18 -0
- package/v2/model/NeutronDeleteFirewallGroupResponse.ts +8 -0
- package/v2/model/NeutronDeleteFirewallPolicyRequest.ts +18 -0
- package/v2/model/NeutronDeleteFirewallPolicyResponse.ts +8 -0
- package/v2/model/NeutronDeleteFirewallRuleRequest.ts +18 -0
- package/v2/model/NeutronDeleteFirewallRuleResponse.ts +8 -0
- package/v2/model/NeutronDeleteNetworkRequest.ts +18 -0
- package/v2/model/NeutronDeleteNetworkResponse.ts +8 -0
- package/v2/model/NeutronDeletePortRequest.ts +18 -0
- package/v2/model/NeutronDeletePortResponse.ts +8 -0
- package/v2/model/NeutronDeleteRouterRequest.ts +18 -0
- package/v2/model/NeutronDeleteRouterResponse.ts +8 -0
- package/v2/model/NeutronDeleteSecurityGroupRequest.ts +18 -0
- package/v2/model/NeutronDeleteSecurityGroupResponse.ts +8 -0
- package/v2/model/NeutronDeleteSecurityGroupRuleRequest.ts +18 -0
- package/v2/model/NeutronDeleteSecurityGroupRuleResponse.ts +8 -0
- package/v2/model/NeutronDeleteSubnetRequest.ts +18 -0
- package/v2/model/NeutronDeleteSubnetResponse.ts +8 -0
- package/v2/model/NeutronFirewallGroup.ts +132 -0
- package/v2/model/NeutronFirewallPolicy.ts +78 -0
- package/v2/model/NeutronFirewallRule.ts +147 -0
- package/v2/model/NeutronInsertFirewallRuleRequestBody.ts +40 -0
- package/v2/model/NeutronListFirewallGroupsRequest.ts +53 -0
- package/v2/model/NeutronListFirewallGroupsResponse.ts +32 -0
- package/v2/model/NeutronListFirewallPoliciesRequest.ts +42 -0
- package/v2/model/NeutronListFirewallPoliciesResponse.ts +32 -0
- package/v2/model/NeutronListFirewallRulesRequest.ts +47 -0
- package/v2/model/NeutronListFirewallRulesResponse.ts +32 -0
- package/v2/model/NeutronListNetworksRequest.ts +80 -0
- package/v2/model/NeutronListNetworksResponse.ts +26 -0
- package/v2/model/NeutronListPortsRequest.ts +119 -0
- package/v2/model/NeutronListPortsResponse.ts +26 -0
- package/v2/model/NeutronListRoutersRequest.ts +48 -0
- package/v2/model/NeutronListRoutersResponse.ts +26 -0
- package/v2/model/NeutronListSecurityGroupRulesRequest.ts +107 -0
- package/v2/model/NeutronListSecurityGroupRulesResponse.ts +32 -0
- package/v2/model/NeutronListSecurityGroupsRequest.ts +42 -0
- package/v2/model/NeutronListSecurityGroupsResponse.ts +32 -0
- package/v2/model/NeutronListSubnetsRequest.ts +86 -0
- package/v2/model/NeutronListSubnetsResponse.ts +26 -0
- package/v2/model/NeutronNetwork.ts +179 -0
- package/v2/model/NeutronPageLink.ts +18 -0
- package/v2/model/NeutronPort.ts +257 -0
- package/v2/model/NeutronRemoveFirewallRuleRequest.ts +24 -0
- package/v2/model/NeutronRemoveFirewallRuleRequestBody.ts +18 -0
- package/v2/model/NeutronRemoveFirewallRuleResponse.ts +72 -0
- package/v2/model/NeutronRemoveRouterInterfaceRequest.ts +24 -0
- package/v2/model/NeutronRemoveRouterInterfaceResponse.ts +65 -0
- package/v2/model/NeutronRouter.ts +104 -0
- package/v2/model/NeutronSecurityGroup.ts +85 -0
- package/v2/model/NeutronSecurityGroupRule.ts +164 -0
- package/v2/model/NeutronShowFirewallGroupRequest.ts +18 -0
- package/v2/model/NeutronShowFirewallGroupResponse.ts +20 -0
- package/v2/model/NeutronShowFirewallPolicyRequest.ts +18 -0
- package/v2/model/NeutronShowFirewallPolicyResponse.ts +20 -0
- package/v2/model/NeutronShowFirewallRuleRequest.ts +18 -0
- package/v2/model/NeutronShowFirewallRuleResponse.ts +20 -0
- package/v2/model/NeutronShowNetworkRequest.ts +18 -0
- package/v2/model/NeutronShowNetworkResponse.ts +14 -0
- package/v2/model/NeutronShowPortRequest.ts +18 -0
- package/v2/model/NeutronShowPortResponse.ts +14 -0
- package/v2/model/NeutronShowRouterRequest.ts +18 -0
- package/v2/model/NeutronShowRouterResponse.ts +14 -0
- package/v2/model/NeutronShowSecurityGroupRequest.ts +18 -0
- package/v2/model/NeutronShowSecurityGroupResponse.ts +20 -0
- package/v2/model/NeutronShowSecurityGroupRuleRequest.ts +18 -0
- package/v2/model/NeutronShowSecurityGroupRuleResponse.ts +20 -0
- package/v2/model/NeutronShowSubnetRequest.ts +18 -0
- package/v2/model/NeutronShowSubnetResponse.ts +14 -0
- package/v2/model/NeutronSubnet.ts +193 -0
- package/v2/model/NeutronUpdateFirewallGroupOption.ts +54 -0
- package/v2/model/NeutronUpdateFirewallGroupRequest.ts +24 -0
- package/v2/model/NeutronUpdateFirewallGroupRequestBody.ts +19 -0
- package/v2/model/NeutronUpdateFirewallGroupResponse.ts +20 -0
- package/v2/model/NeutronUpdateFirewallPolicyOption.ts +32 -0
- package/v2/model/NeutronUpdateFirewallPolicyRequest.ts +24 -0
- package/v2/model/NeutronUpdateFirewallPolicyRequestBody.ts +19 -0
- package/v2/model/NeutronUpdateFirewallPolicyResponse.ts +20 -0
- package/v2/model/NeutronUpdateFirewallRuleOption.ts +95 -0
- package/v2/model/NeutronUpdateFirewallRuleRequest.ts +24 -0
- package/v2/model/NeutronUpdateFirewallRuleRequestBody.ts +19 -0
- package/v2/model/NeutronUpdateFirewallRuleResponse.ts +20 -0
- package/v2/model/NeutronUpdateNetworkOption.ts +33 -0
- package/v2/model/NeutronUpdateNetworkRequest.ts +24 -0
- package/v2/model/NeutronUpdateNetworkRequestBody.ts +13 -0
- package/v2/model/NeutronUpdateNetworkResponse.ts +14 -0
- package/v2/model/NeutronUpdatePortOption.ts +79 -0
- package/v2/model/NeutronUpdatePortRequest.ts +24 -0
- package/v2/model/NeutronUpdatePortRequestBody.ts +13 -0
- package/v2/model/NeutronUpdatePortResponse.ts +14 -0
- package/v2/model/NeutronUpdateRouterOption.ts +40 -0
- package/v2/model/NeutronUpdateRouterRequest.ts +24 -0
- package/v2/model/NeutronUpdateRouterRequestBody.ts +13 -0
- package/v2/model/NeutronUpdateRouterResponse.ts +14 -0
- package/v2/model/NeutronUpdateSecurityGroupOption.ts +16 -0
- package/v2/model/NeutronUpdateSecurityGroupRequest.ts +24 -0
- package/v2/model/NeutronUpdateSecurityGroupRequestBody.ts +19 -0
- package/v2/model/NeutronUpdateSecurityGroupResponse.ts +20 -0
- package/v2/model/NeutronUpdateSubnetOption.ts +57 -0
- package/v2/model/NeutronUpdateSubnetRequest.ts +24 -0
- package/v2/model/NeutronUpdateSubnetRequestBody.ts +13 -0
- package/v2/model/NeutronUpdateSubnetResponse.ts +14 -0
- package/v2/model/Port.ts +277 -0
- package/v2/model/Privateip.ts +84 -0
- package/v2/model/Quota.ts +13 -0
- package/v2/model/RejectVpcPeeringRequest.ts +18 -0
- package/v2/model/RejectVpcPeeringResponse.ts +85 -0
- package/v2/model/ResourceResult.ts +54 -0
- package/v2/model/ResourceTag.ts +18 -0
- package/v2/model/Route.ts +16 -0
- package/v2/model/RouteTableListResp.ts +91 -0
- package/v2/model/RouteTableResp.ts +98 -0
- package/v2/model/RouteTableRoute.ts +29 -0
- package/v2/model/RouteTableRouteAction.ts +24 -0
- package/v2/model/RouterInterfaceRequestBody.ts +28 -0
- package/v2/model/RoutetableAssociateReqbody.ts +13 -0
- package/v2/model/SecurityGroup.ts +58 -0
- package/v2/model/SecurityGroupRule.ts +119 -0
- package/v2/model/ShowFlowLogRequest.ts +18 -0
- package/v2/model/ShowFlowLogResponse.ts +20 -0
- package/v2/model/ShowNetworkIpAvailabilitiesRequest.ts +18 -0
- package/v2/model/ShowNetworkIpAvailabilitiesResponse.ts +20 -0
- package/v2/model/ShowPortRequest.ts +18 -0
- package/v2/model/ShowPortResponse.ts +14 -0
- package/v2/model/ShowPrivateipRequest.ts +18 -0
- package/v2/model/ShowPrivateipResponse.ts +14 -0
- package/v2/model/ShowQuotaRequest.ts +35 -0
- package/v2/model/ShowQuotaResponse.ts +14 -0
- package/v2/model/ShowRouteTableRequest.ts +18 -0
- package/v2/model/ShowRouteTableResponse.ts +14 -0
- package/v2/model/ShowSecurityGroupRequest.ts +18 -0
- package/v2/model/ShowSecurityGroupResponse.ts +20 -0
- package/v2/model/ShowSecurityGroupRuleRequest.ts +18 -0
- package/v2/model/ShowSecurityGroupRuleResponse.ts +20 -0
- package/v2/model/ShowSubnetRequest.ts +18 -0
- package/v2/model/ShowSubnetResponse.ts +14 -0
- package/v2/model/ShowSubnetTagsRequest.ts +18 -0
- package/v2/model/ShowSubnetTagsResponse.ts +14 -0
- package/v2/model/ShowVpcPeeringRequest.ts +18 -0
- package/v2/model/ShowVpcPeeringResponse.ts +14 -0
- package/v2/model/ShowVpcRequest.ts +18 -0
- package/v2/model/ShowVpcResponse.ts +14 -0
- package/v2/model/ShowVpcRouteRequest.ts +18 -0
- package/v2/model/ShowVpcRouteResponse.ts +14 -0
- package/v2/model/ShowVpcTagsRequest.ts +18 -0
- package/v2/model/ShowVpcTagsResponse.ts +14 -0
- package/v2/model/Subnet.ts +250 -0
- package/v2/model/SubnetIpAvailability.ts +72 -0
- package/v2/model/SubnetList.ts +12 -0
- package/v2/model/SubnetResult.ts +28 -0
- package/v2/model/UpdateFlowLogReq.ts +27 -0
- package/v2/model/UpdateFlowLogReqBody.ts +19 -0
- package/v2/model/UpdateFlowLogRequest.ts +24 -0
- package/v2/model/UpdateFlowLogResponse.ts +20 -0
- package/v2/model/UpdatePortOption.ts +46 -0
- package/v2/model/UpdatePortRequest.ts +24 -0
- package/v2/model/UpdatePortRequestBody.ts +13 -0
- package/v2/model/UpdatePortResponse.ts +14 -0
- package/v2/model/UpdateRouteTableReq.ts +22 -0
- package/v2/model/UpdateRouteTableRequest.ts +24 -0
- package/v2/model/UpdateRouteTableResponse.ts +14 -0
- package/v2/model/UpdateRoutetableReqBody.ts +13 -0
- package/v2/model/UpdateSubnetOption.ts +78 -0
- package/v2/model/UpdateSubnetRequest.ts +36 -0
- package/v2/model/UpdateSubnetRequestBody.ts +13 -0
- package/v2/model/UpdateSubnetResponse.ts +14 -0
- package/v2/model/UpdateVpcOption.ts +27 -0
- package/v2/model/UpdateVpcPeeringOption.ts +16 -0
- package/v2/model/UpdateVpcPeeringRequest.ts +24 -0
- package/v2/model/UpdateVpcPeeringRequestBody.ts +13 -0
- package/v2/model/UpdateVpcPeeringResponse.ts +14 -0
- package/v2/model/UpdateVpcRequest.ts +24 -0
- package/v2/model/UpdateVpcRequestBody.ts +13 -0
- package/v2/model/UpdateVpcResponse.ts +14 -0
- package/v2/model/VersionResult.ts +35 -0
- package/v2/model/Vpc.ts +101 -0
- package/v2/model/VpcInfo.ts +29 -0
- package/v2/model/VpcPeering.ts +91 -0
- package/v2/model/VpcRoute.ts +62 -0
- package/v2/public-api.ts +362 -0
- package/v3/VpcClient.ts +2133 -0
- package/v3/VpcRegion.ts +62 -0
- package/v3/model/AddExtendCidrOption.ts +18 -0
- package/v3/model/AddVpcExtendCidrRequest.ts +24 -0
- package/v3/model/AddVpcExtendCidrRequestBody.ts +24 -0
- package/v3/model/AddVpcExtendCidrResponse.ts +25 -0
- package/v3/model/AddressGroup.ts +133 -0
- package/v3/model/BatchCreateSubNetworkInterfaceOption.ts +68 -0
- package/v3/model/BatchCreateSubNetworkInterfaceRequest.ts +12 -0
- package/v3/model/BatchCreateSubNetworkInterfaceRequestBody.ts +36 -0
- package/v3/model/BatchCreateSubNetworkInterfaceResponse.ts +31 -0
- package/v3/model/CloudResource.ts +30 -0
- package/v3/model/CreateAddressGroupOption.ts +62 -0
- package/v3/model/CreateAddressGroupRequest.ts +12 -0
- package/v3/model/CreateAddressGroupRequestBody.ts +30 -0
- package/v3/model/CreateAddressGroupResponse.ts +31 -0
- package/v3/model/CreateSecurityGroupOption.ts +28 -0
- package/v3/model/CreateSecurityGroupRequest.ts +12 -0
- package/v3/model/CreateSecurityGroupRequestBody.ts +30 -0
- package/v3/model/CreateSecurityGroupResponse.ts +31 -0
- package/v3/model/CreateSecurityGroupRuleOption.ts +87 -0
- package/v3/model/CreateSecurityGroupRuleRequest.ts +12 -0
- package/v3/model/CreateSecurityGroupRuleRequestBody.ts +30 -0
- package/v3/model/CreateSecurityGroupRuleResponse.ts +31 -0
- package/v3/model/CreateSubNetworkInterfaceOption.ts +101 -0
- package/v3/model/CreateSubNetworkInterfaceRequest.ts +12 -0
- package/v3/model/CreateSubNetworkInterfaceRequestBody.ts +30 -0
- package/v3/model/CreateSubNetworkInterfaceResponse.ts +31 -0
- package/v3/model/CreateVpcOption.ts +40 -0
- package/v3/model/CreateVpcRequest.ts +12 -0
- package/v3/model/CreateVpcRequestBody.ts +24 -0
- package/v3/model/CreateVpcResponse.ts +41 -0
- package/v3/model/DeleteAddressGroupRequest.ts +18 -0
- package/v3/model/DeleteAddressGroupResponse.ts +8 -0
- package/v3/model/DeleteIpAddressGroupForceRequest.ts +18 -0
- package/v3/model/DeleteIpAddressGroupForceResponse.ts +8 -0
- package/v3/model/DeleteSecurityGroupRequest.ts +18 -0
- package/v3/model/DeleteSecurityGroupResponse.ts +8 -0
- package/v3/model/DeleteSecurityGroupRuleRequest.ts +18 -0
- package/v3/model/DeleteSecurityGroupRuleResponse.ts +8 -0
- package/v3/model/DeleteSubNetworkInterfaceRequest.ts +18 -0
- package/v3/model/DeleteSubNetworkInterfaceResponse.ts +8 -0
- package/v3/model/DeleteVpcRequest.ts +18 -0
- package/v3/model/DeleteVpcResponse.ts +8 -0
- package/v3/model/ListAddressGroupRequest.ts +53 -0
- package/v3/model/ListAddressGroupResponse.ts +43 -0
- package/v3/model/ListSecurityGroupRulesRequest.ts +74 -0
- package/v3/model/ListSecurityGroupRulesResponse.ts +43 -0
- package/v3/model/ListSecurityGroupsRequest.ts +42 -0
- package/v3/model/ListSecurityGroupsResponse.ts +43 -0
- package/v3/model/ListSubNetworkInterfacesRequest.ts +81 -0
- package/v3/model/ListSubNetworkInterfacesResponse.ts +43 -0
- package/v3/model/ListVpcsRequest.ts +36 -0
- package/v3/model/ListVpcsResponse.ts +37 -0
- package/v3/model/MigrateSubNetworkInterfaceOption.ts +30 -0
- package/v3/model/MigrateSubNetworkInterfaceRequest.ts +12 -0
- package/v3/model/MigrateSubNetworkInterfaceRequestBody.ts +30 -0
- package/v3/model/MigrateSubNetworkInterfaceResponse.ts +31 -0
- package/v3/model/PageInfo.ts +41 -0
- package/v3/model/RemoveExtendCidrOption.ts +18 -0
- package/v3/model/RemoveVpcExtendCidrRequest.ts +24 -0
- package/v3/model/RemoveVpcExtendCidrRequestBody.ts +24 -0
- package/v3/model/RemoveVpcExtendCidrResponse.ts +25 -0
- package/v3/model/ResourceTag.ts +18 -0
- package/v3/model/SecurityGroup.ts +72 -0
- package/v3/model/SecurityGroupInfo.ts +86 -0
- package/v3/model/SecurityGroupRule.ts +138 -0
- package/v3/model/ShowAddressGroupRequest.ts +18 -0
- package/v3/model/ShowAddressGroupResponse.ts +31 -0
- package/v3/model/ShowSecurityGroupRequest.ts +18 -0
- package/v3/model/ShowSecurityGroupResponse.ts +31 -0
- package/v3/model/ShowSecurityGroupRuleRequest.ts +18 -0
- package/v3/model/ShowSecurityGroupRuleResponse.ts +31 -0
- package/v3/model/ShowSubNetworkInterfaceRequest.ts +18 -0
- package/v3/model/ShowSubNetworkInterfaceResponse.ts +31 -0
- package/v3/model/ShowSubNetworkInterfacesQuantityRequest.ts +6 -0
- package/v3/model/ShowSubNetworkInterfacesQuantityResponse.ts +30 -0
- package/v3/model/ShowVpcRequest.ts +18 -0
- package/v3/model/ShowVpcResponse.ts +25 -0
- package/v3/model/SubNetworkInterface.ts +156 -0
- package/v3/model/Tag.ts +18 -0
- package/v3/model/UpdateAddressGroupOption.ts +38 -0
- package/v3/model/UpdateAddressGroupRequest.ts +24 -0
- package/v3/model/UpdateAddressGroupRequestBody.ts +30 -0
- package/v3/model/UpdateAddressGroupResponse.ts +31 -0
- package/v3/model/UpdateSecurityGroupOption.ts +16 -0
- package/v3/model/UpdateSecurityGroupRequest.ts +24 -0
- package/v3/model/UpdateSecurityGroupRequestBody.ts +30 -0
- package/v3/model/UpdateSecurityGroupResponse.ts +31 -0
- package/v3/model/UpdateSubNetworkInterfaceOption.ts +22 -0
- package/v3/model/UpdateSubNetworkInterfaceRequest.ts +24 -0
- package/v3/model/UpdateSubNetworkInterfaceRequestBody.ts +30 -0
- package/v3/model/UpdateSubNetworkInterfaceResponse.ts +31 -0
- package/v3/model/UpdateVpcOption.ts +16 -0
- package/v3/model/UpdateVpcRequest.ts +24 -0
- package/v3/model/UpdateVpcRequestBody.ts +24 -0
- package/v3/model/UpdateVpcResponse.ts +41 -0
- package/v3/model/Vpc.ts +116 -0
- package/v3/public-api.ts +99 -0
- package/LICENSE +0 -13
- package/README.md +0 -1
- package/huaweicloud-sdk-vpc.d.ts +0 -3
- package/huaweicloud-sdk-vpc.js +0 -32
- package/v2/VpcClient.d.ts +0 -2593
- package/v2/VpcClient.js +0 -5367
- package/v2/VpcRegion.d.ts +0 -23
- package/v2/VpcRegion.js +0 -59
- package/v2/model/AcceptVpcPeeringRequest.d.ts +0 -7
- package/v2/model/AcceptVpcPeeringRequest.js +0 -24
- package/v2/model/AcceptVpcPeeringResponse.d.ts +0 -40
- package/v2/model/AcceptVpcPeeringResponse.js +0 -111
- package/v2/model/AddRouteTableRoute.d.ts +0 -11
- package/v2/model/AddRouteTableRoute.js +0 -28
- package/v2/model/AllowedAddressPair.d.ts +0 -11
- package/v2/model/AllowedAddressPair.js +0 -38
- package/v2/model/AsscoiateReq.d.ts +0 -6
- package/v2/model/AsscoiateReq.js +0 -14
- package/v2/model/AssociateRouteTableAndSubnetReq.d.ts +0 -7
- package/v2/model/AssociateRouteTableAndSubnetReq.js +0 -17
- package/v2/model/AssociateRouteTableRequest.d.ts +0 -10
- package/v2/model/AssociateRouteTableRequest.js +0 -28
- package/v2/model/AssociateRouteTableResponse.d.ts +0 -7
- package/v2/model/AssociateRouteTableResponse.js +0 -31
- package/v2/model/BatchCreateSubnetTagsRequest.d.ts +0 -10
- package/v2/model/BatchCreateSubnetTagsRequest.js +0 -28
- package/v2/model/BatchCreateSubnetTagsRequestBody.d.ts +0 -15
- package/v2/model/BatchCreateSubnetTagsRequestBody.js +0 -27
- package/v2/model/BatchCreateSubnetTagsResponse.d.ts +0 -4
- package/v2/model/BatchCreateSubnetTagsResponse.js +0 -27
- package/v2/model/BatchCreateVpcTagsRequest.d.ts +0 -10
- package/v2/model/BatchCreateVpcTagsRequest.js +0 -28
- package/v2/model/BatchCreateVpcTagsRequestBody.d.ts +0 -15
- package/v2/model/BatchCreateVpcTagsRequestBody.js +0 -27
- package/v2/model/BatchCreateVpcTagsResponse.d.ts +0 -4
- package/v2/model/BatchCreateVpcTagsResponse.js +0 -27
- package/v2/model/BatchDeleteSubnetTagsRequest.d.ts +0 -10
- package/v2/model/BatchDeleteSubnetTagsRequest.js +0 -28
- package/v2/model/BatchDeleteSubnetTagsRequestBody.d.ts +0 -15
- package/v2/model/BatchDeleteSubnetTagsRequestBody.js +0 -27
- package/v2/model/BatchDeleteSubnetTagsResponse.d.ts +0 -4
- package/v2/model/BatchDeleteSubnetTagsResponse.js +0 -27
- package/v2/model/BatchDeleteVpcTagsRequest.d.ts +0 -10
- package/v2/model/BatchDeleteVpcTagsRequest.js +0 -28
- package/v2/model/BatchDeleteVpcTagsRequestBody.d.ts +0 -15
- package/v2/model/BatchDeleteVpcTagsRequestBody.js +0 -27
- package/v2/model/BatchDeleteVpcTagsResponse.d.ts +0 -4
- package/v2/model/BatchDeleteVpcTagsResponse.js +0 -27
- package/v2/model/BindingVifDetails.d.ts +0 -15
- package/v2/model/BindingVifDetails.js +0 -51
- package/v2/model/CreateFlowLogReq.d.ts +0 -49
- package/v2/model/CreateFlowLogReq.js +0 -126
- package/v2/model/CreateFlowLogReqBody.d.ts +0 -8
- package/v2/model/CreateFlowLogReqBody.js +0 -24
- package/v2/model/CreateFlowLogRequest.d.ts +0 -6
- package/v2/model/CreateFlowLogRequest.js +0 -13
- package/v2/model/CreateFlowLogResponse.d.ts +0 -9
- package/v2/model/CreateFlowLogResponse.js +0 -41
- package/v2/model/CreatePortOption.d.ts +0 -40
- package/v2/model/CreatePortOption.js +0 -126
- package/v2/model/CreatePortRequest.d.ts +0 -6
- package/v2/model/CreatePortRequest.js +0 -13
- package/v2/model/CreatePortRequestBody.d.ts +0 -6
- package/v2/model/CreatePortRequestBody.js +0 -14
- package/v2/model/CreatePortResponse.d.ts +0 -7
- package/v2/model/CreatePortResponse.js +0 -31
- package/v2/model/CreatePrivateipOption.d.ts +0 -11
- package/v2/model/CreatePrivateipOption.js +0 -38
- package/v2/model/CreatePrivateipRequest.d.ts +0 -6
- package/v2/model/CreatePrivateipRequest.js +0 -13
- package/v2/model/CreatePrivateipRequestBody.d.ts +0 -6
- package/v2/model/CreatePrivateipRequestBody.js +0 -14
- package/v2/model/CreatePrivateipResponse.d.ts +0 -7
- package/v2/model/CreatePrivateipResponse.js +0 -31
- package/v2/model/CreateRouteTableReq.d.ts +0 -14
- package/v2/model/CreateRouteTableReq.js +0 -36
- package/v2/model/CreateRouteTableRequest.d.ts +0 -6
- package/v2/model/CreateRouteTableRequest.js +0 -13
- package/v2/model/CreateRouteTableResponse.d.ts +0 -7
- package/v2/model/CreateRouteTableResponse.js +0 -31
- package/v2/model/CreateRoutetableReqBody.d.ts +0 -6
- package/v2/model/CreateRoutetableReqBody.js +0 -14
- package/v2/model/CreateSecurityGroupOption.d.ts +0 -13
- package/v2/model/CreateSecurityGroupOption.js +0 -42
- package/v2/model/CreateSecurityGroupRequest.d.ts +0 -6
- package/v2/model/CreateSecurityGroupRequest.js +0 -13
- package/v2/model/CreateSecurityGroupRequestBody.d.ts +0 -8
- package/v2/model/CreateSecurityGroupRequestBody.js +0 -24
- package/v2/model/CreateSecurityGroupResponse.d.ts +0 -9
- package/v2/model/CreateSecurityGroupResponse.js +0 -41
- package/v2/model/CreateSecurityGroupRuleOption.d.ts +0 -31
- package/v2/model/CreateSecurityGroupRuleOption.js +0 -97
- package/v2/model/CreateSecurityGroupRuleRequest.d.ts +0 -6
- package/v2/model/CreateSecurityGroupRuleRequest.js +0 -13
- package/v2/model/CreateSecurityGroupRuleRequestBody.d.ts +0 -8
- package/v2/model/CreateSecurityGroupRuleRequestBody.js +0 -24
- package/v2/model/CreateSecurityGroupRuleResponse.d.ts +0 -9
- package/v2/model/CreateSecurityGroupRuleResponse.js +0 -41
- package/v2/model/CreateSubnetOption.d.ts +0 -46
- package/v2/model/CreateSubnetOption.js +0 -145
- package/v2/model/CreateSubnetRequest.d.ts +0 -6
- package/v2/model/CreateSubnetRequest.js +0 -13
- package/v2/model/CreateSubnetRequestBody.d.ts +0 -6
- package/v2/model/CreateSubnetRequestBody.js +0 -14
- package/v2/model/CreateSubnetResponse.d.ts +0 -7
- package/v2/model/CreateSubnetResponse.js +0 -31
- package/v2/model/CreateSubnetTagRequest.d.ts +0 -10
- package/v2/model/CreateSubnetTagRequest.js +0 -28
- package/v2/model/CreateSubnetTagRequestBody.d.ts +0 -6
- package/v2/model/CreateSubnetTagRequestBody.js +0 -14
- package/v2/model/CreateSubnetTagResponse.d.ts +0 -4
- package/v2/model/CreateSubnetTagResponse.js +0 -27
- package/v2/model/CreateVpcOption.d.ts +0 -15
- package/v2/model/CreateVpcOption.js +0 -39
- package/v2/model/CreateVpcPeeringOption.d.ts +0 -16
- package/v2/model/CreateVpcPeeringOption.js +0 -48
- package/v2/model/CreateVpcPeeringRequest.d.ts +0 -6
- package/v2/model/CreateVpcPeeringRequest.js +0 -13
- package/v2/model/CreateVpcPeeringRequestBody.d.ts +0 -6
- package/v2/model/CreateVpcPeeringRequestBody.js +0 -14
- package/v2/model/CreateVpcPeeringResponse.d.ts +0 -7
- package/v2/model/CreateVpcPeeringResponse.js +0 -31
- package/v2/model/CreateVpcRequest.d.ts +0 -6
- package/v2/model/CreateVpcRequest.js +0 -13
- package/v2/model/CreateVpcRequestBody.d.ts +0 -6
- package/v2/model/CreateVpcRequestBody.js +0 -14
- package/v2/model/CreateVpcResourceTagRequest.d.ts +0 -10
- package/v2/model/CreateVpcResourceTagRequest.js +0 -28
- package/v2/model/CreateVpcResourceTagRequestBody.d.ts +0 -6
- package/v2/model/CreateVpcResourceTagRequestBody.js +0 -14
- package/v2/model/CreateVpcResourceTagResponse.d.ts +0 -4
- package/v2/model/CreateVpcResourceTagResponse.js +0 -27
- package/v2/model/CreateVpcResponse.d.ts +0 -7
- package/v2/model/CreateVpcResponse.js +0 -31
- package/v2/model/CreateVpcRouteOption.d.ts +0 -20
- package/v2/model/CreateVpcRouteOption.js +0 -47
- package/v2/model/CreateVpcRouteRequest.d.ts +0 -6
- package/v2/model/CreateVpcRouteRequest.js +0 -13
- package/v2/model/CreateVpcRouteRequestBody.d.ts +0 -6
- package/v2/model/CreateVpcRouteRequestBody.js +0 -14
- package/v2/model/CreateVpcRouteResponse.d.ts +0 -7
- package/v2/model/CreateVpcRouteResponse.js +0 -31
- package/v2/model/DelRouteTableRoute.d.ts +0 -11
- package/v2/model/DelRouteTableRoute.js +0 -26
- package/v2/model/DeleteFlowLogRequest.d.ts +0 -7
- package/v2/model/DeleteFlowLogRequest.js +0 -24
- package/v2/model/DeleteFlowLogResponse.d.ts +0 -4
- package/v2/model/DeleteFlowLogResponse.js +0 -27
- package/v2/model/DeletePortRequest.d.ts +0 -7
- package/v2/model/DeletePortRequest.js +0 -24
- package/v2/model/DeletePortResponse.d.ts +0 -4
- package/v2/model/DeletePortResponse.js +0 -27
- package/v2/model/DeletePrivateipRequest.d.ts +0 -7
- package/v2/model/DeletePrivateipRequest.js +0 -24
- package/v2/model/DeletePrivateipResponse.d.ts +0 -4
- package/v2/model/DeletePrivateipResponse.js +0 -27
- package/v2/model/DeleteRouteTableRequest.d.ts +0 -7
- package/v2/model/DeleteRouteTableRequest.js +0 -24
- package/v2/model/DeleteRouteTableResponse.d.ts +0 -4
- package/v2/model/DeleteRouteTableResponse.js +0 -27
- package/v2/model/DeleteSecurityGroupRequest.d.ts +0 -7
- package/v2/model/DeleteSecurityGroupRequest.js +0 -24
- package/v2/model/DeleteSecurityGroupResponse.d.ts +0 -4
- package/v2/model/DeleteSecurityGroupResponse.js +0 -27
- package/v2/model/DeleteSecurityGroupRuleRequest.d.ts +0 -7
- package/v2/model/DeleteSecurityGroupRuleRequest.js +0 -24
- package/v2/model/DeleteSecurityGroupRuleResponse.d.ts +0 -4
- package/v2/model/DeleteSecurityGroupRuleResponse.js +0 -27
- package/v2/model/DeleteSubnetRequest.d.ts +0 -11
- package/v2/model/DeleteSubnetRequest.js +0 -39
- package/v2/model/DeleteSubnetResponse.d.ts +0 -4
- package/v2/model/DeleteSubnetResponse.js +0 -27
- package/v2/model/DeleteSubnetTagRequest.d.ts +0 -9
- package/v2/model/DeleteSubnetTagRequest.js +0 -29
- package/v2/model/DeleteSubnetTagResponse.d.ts +0 -4
- package/v2/model/DeleteSubnetTagResponse.js +0 -27
- package/v2/model/DeleteVpcPeeringRequest.d.ts +0 -7
- package/v2/model/DeleteVpcPeeringRequest.js +0 -24
- package/v2/model/DeleteVpcPeeringResponse.d.ts +0 -4
- package/v2/model/DeleteVpcPeeringResponse.js +0 -27
- package/v2/model/DeleteVpcRequest.d.ts +0 -7
- package/v2/model/DeleteVpcRequest.js +0 -24
- package/v2/model/DeleteVpcResponse.d.ts +0 -4
- package/v2/model/DeleteVpcResponse.js +0 -27
- package/v2/model/DeleteVpcRouteRequest.d.ts +0 -7
- package/v2/model/DeleteVpcRouteRequest.js +0 -24
- package/v2/model/DeleteVpcRouteResponse.d.ts +0 -4
- package/v2/model/DeleteVpcRouteResponse.js +0 -27
- package/v2/model/DeleteVpcTagRequest.d.ts +0 -9
- package/v2/model/DeleteVpcTagRequest.js +0 -29
- package/v2/model/DeleteVpcTagResponse.d.ts +0 -4
- package/v2/model/DeleteVpcTagResponse.js +0 -27
- package/v2/model/DisassociateRouteTableRequest.d.ts +0 -10
- package/v2/model/DisassociateRouteTableRequest.js +0 -28
- package/v2/model/DisassociateRouteTableResponse.d.ts +0 -7
- package/v2/model/DisassociateRouteTableResponse.js +0 -31
- package/v2/model/DnsAssignMent.d.ts +0 -11
- package/v2/model/DnsAssignMent.js +0 -31
- package/v2/model/ExtraDhcpOpt.d.ts +0 -11
- package/v2/model/ExtraDhcpOpt.js +0 -37
- package/v2/model/ExtraDhcpOption.d.ts +0 -19
- package/v2/model/ExtraDhcpOption.js +0 -47
- package/v2/model/FixedIp.d.ts +0 -11
- package/v2/model/FixedIp.js +0 -37
- package/v2/model/FlowLogResp.d.ts +0 -85
- package/v2/model/FlowLogResp.js +0 -217
- package/v2/model/ListFlowLogsRequest.d.ts +0 -77
- package/v2/model/ListFlowLogsRequest.js +0 -169
- package/v2/model/ListFlowLogsResponse.d.ts +0 -9
- package/v2/model/ListFlowLogsResponse.js +0 -41
- package/v2/model/ListPortsRequest.d.ts +0 -64
- package/v2/model/ListPortsRequest.js +0 -162
- package/v2/model/ListPortsResponse.d.ts +0 -7
- package/v2/model/ListPortsResponse.js +0 -31
- package/v2/model/ListPrivateipsRequest.d.ts +0 -11
- package/v2/model/ListPrivateipsRequest.js +0 -32
- package/v2/model/ListPrivateipsResponse.d.ts +0 -7
- package/v2/model/ListPrivateipsResponse.js +0 -31
- package/v2/model/ListResourceResp.d.ts +0 -18
- package/v2/model/ListResourceResp.js +0 -58
- package/v2/model/ListRouteTablesRequest.d.ts +0 -17
- package/v2/model/ListRouteTablesRequest.js +0 -49
- package/v2/model/ListRouteTablesResponse.d.ts +0 -7
- package/v2/model/ListRouteTablesResponse.js +0 -31
- package/v2/model/ListSecurityGroupRulesRequest.d.ts +0 -15
- package/v2/model/ListSecurityGroupRulesRequest.js +0 -45
- package/v2/model/ListSecurityGroupRulesResponse.d.ts +0 -9
- package/v2/model/ListSecurityGroupRulesResponse.js +0 -41
- package/v2/model/ListSecurityGroupsRequest.d.ts +0 -15
- package/v2/model/ListSecurityGroupsRequest.js +0 -45
- package/v2/model/ListSecurityGroupsResponse.d.ts +0 -9
- package/v2/model/ListSecurityGroupsResponse.js +0 -41
- package/v2/model/ListSubnetTagsRequest.d.ts +0 -3
- package/v2/model/ListSubnetTagsRequest.js +0 -9
- package/v2/model/ListSubnetTagsResponse.d.ts +0 -7
- package/v2/model/ListSubnetTagsResponse.js +0 -31
- package/v2/model/ListSubnetsByTagsRequest.d.ts +0 -6
- package/v2/model/ListSubnetsByTagsRequest.js +0 -13
- package/v2/model/ListSubnetsByTagsRequestBody.d.ts +0 -23
- package/v2/model/ListSubnetsByTagsRequestBody.js +0 -39
- package/v2/model/ListSubnetsByTagsResponse.d.ts +0 -11
- package/v2/model/ListSubnetsByTagsResponse.js +0 -45
- package/v2/model/ListSubnetsRequest.d.ts +0 -11
- package/v2/model/ListSubnetsRequest.js +0 -31
- package/v2/model/ListSubnetsResponse.d.ts +0 -7
- package/v2/model/ListSubnetsResponse.js +0 -31
- package/v2/model/ListTag.d.ts +0 -7
- package/v2/model/ListTag.js +0 -19
- package/v2/model/ListVpcPeeringsRequest.d.ts +0 -32
- package/v2/model/ListVpcPeeringsRequest.js +0 -69
- package/v2/model/ListVpcPeeringsResponse.d.ts +0 -12
- package/v2/model/ListVpcPeeringsResponse.js +0 -45
- package/v2/model/ListVpcRoutesRequest.d.ts +0 -28
- package/v2/model/ListVpcRoutesRequest.js +0 -65
- package/v2/model/ListVpcRoutesResponse.d.ts +0 -12
- package/v2/model/ListVpcRoutesResponse.js +0 -45
- package/v2/model/ListVpcTagsRequest.d.ts +0 -3
- package/v2/model/ListVpcTagsRequest.js +0 -9
- package/v2/model/ListVpcTagsResponse.d.ts +0 -7
- package/v2/model/ListVpcTagsResponse.js +0 -31
- package/v2/model/ListVpcsByTagsRequest.d.ts +0 -6
- package/v2/model/ListVpcsByTagsRequest.js +0 -13
- package/v2/model/ListVpcsByTagsRequestBody.d.ts +0 -23
- package/v2/model/ListVpcsByTagsRequestBody.js +0 -39
- package/v2/model/ListVpcsByTagsResponse.d.ts +0 -11
- package/v2/model/ListVpcsByTagsResponse.js +0 -45
- package/v2/model/ListVpcsRequest.d.ts +0 -13
- package/v2/model/ListVpcsRequest.js +0 -35
- package/v2/model/ListVpcsResponse.d.ts +0 -7
- package/v2/model/ListVpcsResponse.js +0 -31
- package/v2/model/Match.d.ts +0 -7
- package/v2/model/Match.js +0 -19
- package/v2/model/ModRouteTableRoute.d.ts +0 -11
- package/v2/model/ModRouteTableRoute.js +0 -28
- package/v2/model/NetworkIpAvailability.d.ts +0 -28
- package/v2/model/NetworkIpAvailability.js +0 -99
- package/v2/model/NeutronAddFirewallRuleRequest.d.ts +0 -10
- package/v2/model/NeutronAddFirewallRuleRequest.js +0 -28
- package/v2/model/NeutronAddFirewallRuleResponse.d.ts +0 -28
- package/v2/model/NeutronAddFirewallRuleResponse.js +0 -99
- package/v2/model/NeutronCreateFirewallGroupOption.d.ts +0 -21
- package/v2/model/NeutronCreateFirewallGroupOption.js +0 -63
- package/v2/model/NeutronCreateFirewallGroupRequest.d.ts +0 -6
- package/v2/model/NeutronCreateFirewallGroupRequest.js +0 -13
- package/v2/model/NeutronCreateFirewallGroupRequestBody.d.ts +0 -8
- package/v2/model/NeutronCreateFirewallGroupRequestBody.js +0 -24
- package/v2/model/NeutronCreateFirewallGroupResponse.d.ts +0 -9
- package/v2/model/NeutronCreateFirewallGroupResponse.js +0 -41
- package/v2/model/NeutronCreateFirewallPolicyOption.d.ts +0 -13
- package/v2/model/NeutronCreateFirewallPolicyOption.js +0 -35
- package/v2/model/NeutronCreateFirewallPolicyRequest.d.ts +0 -6
- package/v2/model/NeutronCreateFirewallPolicyRequest.js +0 -13
- package/v2/model/NeutronCreateFirewallPolicyRequestBody.d.ts +0 -8
- package/v2/model/NeutronCreateFirewallPolicyRequestBody.js +0 -24
- package/v2/model/NeutronCreateFirewallPolicyResponse.d.ts +0 -9
- package/v2/model/NeutronCreateFirewallPolicyResponse.js +0 -41
- package/v2/model/NeutronCreateFirewallRuleOption.d.ts +0 -41
- package/v2/model/NeutronCreateFirewallRuleOption.js +0 -108
- package/v2/model/NeutronCreateFirewallRuleRequest.d.ts +0 -6
- package/v2/model/NeutronCreateFirewallRuleRequest.js +0 -13
- package/v2/model/NeutronCreateFirewallRuleRequestBody.d.ts +0 -8
- package/v2/model/NeutronCreateFirewallRuleRequestBody.js +0 -24
- package/v2/model/NeutronCreateFirewallRuleResponse.d.ts +0 -9
- package/v2/model/NeutronCreateFirewallRuleResponse.js +0 -41
- package/v2/model/NeutronCreateSecurityGroupOption.d.ts +0 -7
- package/v2/model/NeutronCreateSecurityGroupOption.js +0 -17
- package/v2/model/NeutronCreateSecurityGroupRequest.d.ts +0 -6
- package/v2/model/NeutronCreateSecurityGroupRequest.js +0 -13
- package/v2/model/NeutronCreateSecurityGroupRequestBody.d.ts +0 -8
- package/v2/model/NeutronCreateSecurityGroupRequestBody.js +0 -24
- package/v2/model/NeutronCreateSecurityGroupResponse.d.ts +0 -9
- package/v2/model/NeutronCreateSecurityGroupResponse.js +0 -41
- package/v2/model/NeutronCreateSecurityGroupRuleOption.d.ts +0 -47
- package/v2/model/NeutronCreateSecurityGroupRuleOption.js +0 -115
- package/v2/model/NeutronCreateSecurityGroupRuleRequest.d.ts +0 -6
- package/v2/model/NeutronCreateSecurityGroupRuleRequest.js +0 -13
- package/v2/model/NeutronCreateSecurityGroupRuleRequestBody.d.ts +0 -8
- package/v2/model/NeutronCreateSecurityGroupRuleRequestBody.js +0 -24
- package/v2/model/NeutronCreateSecurityGroupRuleResponse.d.ts +0 -9
- package/v2/model/NeutronCreateSecurityGroupRuleResponse.js +0 -41
- package/v2/model/NeutronDeleteFirewallGroupRequest.d.ts +0 -7
- package/v2/model/NeutronDeleteFirewallGroupRequest.js +0 -24
- package/v2/model/NeutronDeleteFirewallGroupResponse.d.ts +0 -4
- package/v2/model/NeutronDeleteFirewallGroupResponse.js +0 -27
- package/v2/model/NeutronDeleteFirewallPolicyRequest.d.ts +0 -7
- package/v2/model/NeutronDeleteFirewallPolicyRequest.js +0 -24
- package/v2/model/NeutronDeleteFirewallPolicyResponse.d.ts +0 -4
- package/v2/model/NeutronDeleteFirewallPolicyResponse.js +0 -27
- package/v2/model/NeutronDeleteFirewallRuleRequest.d.ts +0 -7
- package/v2/model/NeutronDeleteFirewallRuleRequest.js +0 -24
- package/v2/model/NeutronDeleteFirewallRuleResponse.d.ts +0 -4
- package/v2/model/NeutronDeleteFirewallRuleResponse.js +0 -27
- package/v2/model/NeutronDeleteSecurityGroupRequest.d.ts +0 -7
- package/v2/model/NeutronDeleteSecurityGroupRequest.js +0 -24
- package/v2/model/NeutronDeleteSecurityGroupResponse.d.ts +0 -4
- package/v2/model/NeutronDeleteSecurityGroupResponse.js +0 -27
- package/v2/model/NeutronDeleteSecurityGroupRuleRequest.d.ts +0 -7
- package/v2/model/NeutronDeleteSecurityGroupRuleRequest.js +0 -24
- package/v2/model/NeutronDeleteSecurityGroupRuleResponse.d.ts +0 -4
- package/v2/model/NeutronDeleteSecurityGroupRuleResponse.js +0 -27
- package/v2/model/NeutronFirewallGroup.d.ts +0 -45
- package/v2/model/NeutronFirewallGroup.js +0 -154
- package/v2/model/NeutronFirewallPolicy.d.ts +0 -27
- package/v2/model/NeutronFirewallPolicy.js +0 -89
- package/v2/model/NeutronFirewallRule.d.ts +0 -55
- package/v2/model/NeutronFirewallRule.js +0 -168
- package/v2/model/NeutronInsertFirewallRuleRequestBody.d.ts +0 -15
- package/v2/model/NeutronInsertFirewallRuleRequestBody.js +0 -52
- package/v2/model/NeutronListFirewallGroupsRequest.d.ts +0 -21
- package/v2/model/NeutronListFirewallGroupsRequest.js +0 -57
- package/v2/model/NeutronListFirewallGroupsResponse.d.ts +0 -14
- package/v2/model/NeutronListFirewallGroupsResponse.js +0 -55
- package/v2/model/NeutronListFirewallPoliciesRequest.d.ts +0 -17
- package/v2/model/NeutronListFirewallPoliciesRequest.js +0 -43
- package/v2/model/NeutronListFirewallPoliciesResponse.d.ts +0 -14
- package/v2/model/NeutronListFirewallPoliciesResponse.js +0 -55
- package/v2/model/NeutronListFirewallRulesRequest.d.ts +0 -19
- package/v2/model/NeutronListFirewallRulesRequest.js +0 -47
- package/v2/model/NeutronListFirewallRulesResponse.d.ts +0 -14
- package/v2/model/NeutronListFirewallRulesResponse.js +0 -55
- package/v2/model/NeutronListSecurityGroupRulesRequest.d.ts +0 -41
- package/v2/model/NeutronListSecurityGroupRulesRequest.js +0 -121
- package/v2/model/NeutronListSecurityGroupRulesResponse.d.ts +0 -14
- package/v2/model/NeutronListSecurityGroupRulesResponse.js +0 -55
- package/v2/model/NeutronListSecurityGroupsRequest.d.ts +0 -17
- package/v2/model/NeutronListSecurityGroupsRequest.js +0 -43
- package/v2/model/NeutronListSecurityGroupsResponse.d.ts +0 -14
- package/v2/model/NeutronListSecurityGroupsResponse.js +0 -55
- package/v2/model/NeutronPageLink.d.ts +0 -7
- package/v2/model/NeutronPageLink.js +0 -19
- package/v2/model/NeutronRemoveFirewallRuleRequest.d.ts +0 -10
- package/v2/model/NeutronRemoveFirewallRuleRequest.js +0 -28
- package/v2/model/NeutronRemoveFirewallRuleRequestBody.d.ts +0 -7
- package/v2/model/NeutronRemoveFirewallRuleRequestBody.js +0 -24
- package/v2/model/NeutronRemoveFirewallRuleResponse.d.ts +0 -28
- package/v2/model/NeutronRemoveFirewallRuleResponse.js +0 -99
- package/v2/model/NeutronSecurityGroup.d.ts +0 -30
- package/v2/model/NeutronSecurityGroup.js +0 -99
- package/v2/model/NeutronSecurityGroupRule.d.ts +0 -61
- package/v2/model/NeutronSecurityGroupRule.js +0 -192
- package/v2/model/NeutronShowFirewallGroupRequest.d.ts +0 -7
- package/v2/model/NeutronShowFirewallGroupRequest.js +0 -24
- package/v2/model/NeutronShowFirewallGroupResponse.d.ts +0 -9
- package/v2/model/NeutronShowFirewallGroupResponse.js +0 -41
- package/v2/model/NeutronShowFirewallPolicyRequest.d.ts +0 -7
- package/v2/model/NeutronShowFirewallPolicyRequest.js +0 -24
- package/v2/model/NeutronShowFirewallPolicyResponse.d.ts +0 -9
- package/v2/model/NeutronShowFirewallPolicyResponse.js +0 -41
- package/v2/model/NeutronShowFirewallRuleRequest.d.ts +0 -7
- package/v2/model/NeutronShowFirewallRuleRequest.js +0 -24
- package/v2/model/NeutronShowFirewallRuleResponse.d.ts +0 -9
- package/v2/model/NeutronShowFirewallRuleResponse.js +0 -41
- package/v2/model/NeutronShowSecurityGroupRequest.d.ts +0 -7
- package/v2/model/NeutronShowSecurityGroupRequest.js +0 -24
- package/v2/model/NeutronShowSecurityGroupResponse.d.ts +0 -9
- package/v2/model/NeutronShowSecurityGroupResponse.js +0 -41
- package/v2/model/NeutronShowSecurityGroupRuleRequest.d.ts +0 -7
- package/v2/model/NeutronShowSecurityGroupRuleRequest.js +0 -24
- package/v2/model/NeutronShowSecurityGroupRuleResponse.d.ts +0 -9
- package/v2/model/NeutronShowSecurityGroupRuleResponse.js +0 -41
- package/v2/model/NeutronUpdateFirewallGroupOption.d.ts +0 -21
- package/v2/model/NeutronUpdateFirewallGroupOption.js +0 -63
- package/v2/model/NeutronUpdateFirewallGroupRequest.d.ts +0 -10
- package/v2/model/NeutronUpdateFirewallGroupRequest.js +0 -28
- package/v2/model/NeutronUpdateFirewallGroupRequestBody.d.ts +0 -8
- package/v2/model/NeutronUpdateFirewallGroupRequestBody.js +0 -24
- package/v2/model/NeutronUpdateFirewallGroupResponse.d.ts +0 -9
- package/v2/model/NeutronUpdateFirewallGroupResponse.js +0 -41
- package/v2/model/NeutronUpdateFirewallPolicyOption.d.ts +0 -13
- package/v2/model/NeutronUpdateFirewallPolicyOption.js +0 -35
- package/v2/model/NeutronUpdateFirewallPolicyRequest.d.ts +0 -10
- package/v2/model/NeutronUpdateFirewallPolicyRequest.js +0 -28
- package/v2/model/NeutronUpdateFirewallPolicyRequestBody.d.ts +0 -8
- package/v2/model/NeutronUpdateFirewallPolicyRequestBody.js +0 -24
- package/v2/model/NeutronUpdateFirewallPolicyResponse.d.ts +0 -9
- package/v2/model/NeutronUpdateFirewallPolicyResponse.js +0 -41
- package/v2/model/NeutronUpdateFirewallRuleOption.d.ts +0 -41
- package/v2/model/NeutronUpdateFirewallRuleOption.js +0 -108
- package/v2/model/NeutronUpdateFirewallRuleRequest.d.ts +0 -10
- package/v2/model/NeutronUpdateFirewallRuleRequest.js +0 -28
- package/v2/model/NeutronUpdateFirewallRuleRequestBody.d.ts +0 -8
- package/v2/model/NeutronUpdateFirewallRuleRequestBody.js +0 -24
- package/v2/model/NeutronUpdateFirewallRuleResponse.d.ts +0 -9
- package/v2/model/NeutronUpdateFirewallRuleResponse.js +0 -41
- package/v2/model/NeutronUpdateSecurityGroupOption.d.ts +0 -7
- package/v2/model/NeutronUpdateSecurityGroupOption.js +0 -17
- package/v2/model/NeutronUpdateSecurityGroupRequest.d.ts +0 -10
- package/v2/model/NeutronUpdateSecurityGroupRequest.js +0 -28
- package/v2/model/NeutronUpdateSecurityGroupRequestBody.d.ts +0 -8
- package/v2/model/NeutronUpdateSecurityGroupRequestBody.js +0 -24
- package/v2/model/NeutronUpdateSecurityGroupResponse.d.ts +0 -9
- package/v2/model/NeutronUpdateSecurityGroupResponse.js +0 -41
- package/v2/model/Port.d.ts +0 -109
- package/v2/model/Port.js +0 -330
- package/v2/model/Privateip.d.ts +0 -40
- package/v2/model/Privateip.js +0 -98
- package/v2/model/Quota.d.ts +0 -6
- package/v2/model/Quota.js +0 -14
- package/v2/model/RejectVpcPeeringRequest.d.ts +0 -7
- package/v2/model/RejectVpcPeeringRequest.js +0 -24
- package/v2/model/RejectVpcPeeringResponse.d.ts +0 -40
- package/v2/model/RejectVpcPeeringResponse.js +0 -111
- package/v2/model/ResourceResult.d.ts +0 -34
- package/v2/model/ResourceResult.js +0 -53
- package/v2/model/ResourceTag.d.ts +0 -7
- package/v2/model/ResourceTag.js +0 -19
- package/v2/model/Route.d.ts +0 -7
- package/v2/model/Route.js +0 -17
- package/v2/model/RouteTableListResp.d.ts +0 -32
- package/v2/model/RouteTableListResp.js +0 -104
- package/v2/model/RouteTableResp.d.ts +0 -35
- package/v2/model/RouteTableResp.js +0 -109
- package/v2/model/RouteTableRoute.d.ts +0 -11
- package/v2/model/RouteTableRoute.js +0 -28
- package/v2/model/RouteTableRouteAction.d.ts +0 -12
- package/v2/model/RouteTableRouteAction.js +0 -21
- package/v2/model/RoutetableAssociateReqbody.d.ts +0 -6
- package/v2/model/RoutetableAssociateReqbody.js +0 -14
- package/v2/model/SecurityGroup.d.ts +0 -22
- package/v2/model/SecurityGroup.js +0 -66
- package/v2/model/SecurityGroupRule.d.ts +0 -41
- package/v2/model/SecurityGroupRule.js +0 -138
- package/v2/model/ShowFlowLogRequest.d.ts +0 -7
- package/v2/model/ShowFlowLogRequest.js +0 -24
- package/v2/model/ShowFlowLogResponse.d.ts +0 -9
- package/v2/model/ShowFlowLogResponse.js +0 -41
- package/v2/model/ShowNetworkIpAvailabilitiesRequest.d.ts +0 -7
- package/v2/model/ShowNetworkIpAvailabilitiesRequest.js +0 -24
- package/v2/model/ShowNetworkIpAvailabilitiesResponse.d.ts +0 -9
- package/v2/model/ShowNetworkIpAvailabilitiesResponse.js +0 -41
- package/v2/model/ShowPortRequest.d.ts +0 -7
- package/v2/model/ShowPortRequest.js +0 -24
- package/v2/model/ShowPortResponse.d.ts +0 -7
- package/v2/model/ShowPortResponse.js +0 -31
- package/v2/model/ShowPrivateipRequest.d.ts +0 -7
- package/v2/model/ShowPrivateipRequest.js +0 -24
- package/v2/model/ShowPrivateipResponse.d.ts +0 -7
- package/v2/model/ShowPrivateipResponse.js +0 -31
- package/v2/model/ShowQuotaRequest.d.ts +0 -28
- package/v2/model/ShowQuotaRequest.js +0 -37
- package/v2/model/ShowQuotaResponse.d.ts +0 -7
- package/v2/model/ShowQuotaResponse.js +0 -31
- package/v2/model/ShowRouteTableRequest.d.ts +0 -7
- package/v2/model/ShowRouteTableRequest.js +0 -24
- package/v2/model/ShowRouteTableResponse.d.ts +0 -7
- package/v2/model/ShowRouteTableResponse.js +0 -31
- package/v2/model/ShowSecurityGroupRequest.d.ts +0 -7
- package/v2/model/ShowSecurityGroupRequest.js +0 -24
- package/v2/model/ShowSecurityGroupResponse.d.ts +0 -9
- package/v2/model/ShowSecurityGroupResponse.js +0 -41
- package/v2/model/ShowSecurityGroupRuleRequest.d.ts +0 -7
- package/v2/model/ShowSecurityGroupRuleRequest.js +0 -24
- package/v2/model/ShowSecurityGroupRuleResponse.d.ts +0 -9
- package/v2/model/ShowSecurityGroupRuleResponse.js +0 -41
- package/v2/model/ShowSubnetRequest.d.ts +0 -7
- package/v2/model/ShowSubnetRequest.js +0 -24
- package/v2/model/ShowSubnetResponse.d.ts +0 -7
- package/v2/model/ShowSubnetResponse.js +0 -31
- package/v2/model/ShowSubnetTagsRequest.d.ts +0 -7
- package/v2/model/ShowSubnetTagsRequest.js +0 -24
- package/v2/model/ShowSubnetTagsResponse.d.ts +0 -7
- package/v2/model/ShowSubnetTagsResponse.js +0 -31
- package/v2/model/ShowVpcPeeringRequest.d.ts +0 -7
- package/v2/model/ShowVpcPeeringRequest.js +0 -24
- package/v2/model/ShowVpcPeeringResponse.d.ts +0 -7
- package/v2/model/ShowVpcPeeringResponse.js +0 -31
- package/v2/model/ShowVpcRequest.d.ts +0 -7
- package/v2/model/ShowVpcRequest.js +0 -24
- package/v2/model/ShowVpcResponse.d.ts +0 -7
- package/v2/model/ShowVpcResponse.js +0 -31
- package/v2/model/ShowVpcRouteRequest.d.ts +0 -7
- package/v2/model/ShowVpcRouteRequest.js +0 -24
- package/v2/model/ShowVpcRouteResponse.d.ts +0 -7
- package/v2/model/ShowVpcRouteResponse.js +0 -31
- package/v2/model/ShowVpcTagsRequest.d.ts +0 -7
- package/v2/model/ShowVpcTagsRequest.js +0 -24
- package/v2/model/ShowVpcTagsResponse.d.ts +0 -7
- package/v2/model/ShowVpcTagsResponse.js +0 -31
- package/v2/model/Subnet.d.ts +0 -91
- package/v2/model/Subnet.js +0 -293
- package/v2/model/SubnetIpAvailability.d.ts +0 -25
- package/v2/model/SubnetIpAvailability.js +0 -89
- package/v2/model/SubnetList.d.ts +0 -5
- package/v2/model/SubnetList.js +0 -14
- package/v2/model/SubnetResult.d.ts +0 -16
- package/v2/model/SubnetResult.js +0 -29
- package/v2/model/UpdateFlowLogReq.d.ts +0 -11
- package/v2/model/UpdateFlowLogReq.js +0 -31
- package/v2/model/UpdateFlowLogReqBody.d.ts +0 -8
- package/v2/model/UpdateFlowLogReqBody.js +0 -24
- package/v2/model/UpdateFlowLogRequest.d.ts +0 -10
- package/v2/model/UpdateFlowLogRequest.js +0 -28
- package/v2/model/UpdateFlowLogResponse.d.ts +0 -9
- package/v2/model/UpdateFlowLogResponse.js +0 -41
- package/v2/model/UpdatePortOption.d.ts +0 -19
- package/v2/model/UpdatePortOption.js +0 -55
- package/v2/model/UpdatePortRequest.d.ts +0 -10
- package/v2/model/UpdatePortRequest.js +0 -28
- package/v2/model/UpdatePortRequestBody.d.ts +0 -6
- package/v2/model/UpdatePortRequestBody.js +0 -14
- package/v2/model/UpdatePortResponse.d.ts +0 -7
- package/v2/model/UpdatePortResponse.js +0 -31
- package/v2/model/UpdateRouteTableReq.d.ts +0 -10
- package/v2/model/UpdateRouteTableReq.js +0 -21
- package/v2/model/UpdateRouteTableRequest.d.ts +0 -10
- package/v2/model/UpdateRouteTableRequest.js +0 -28
- package/v2/model/UpdateRouteTableResponse.d.ts +0 -7
- package/v2/model/UpdateRouteTableResponse.js +0 -31
- package/v2/model/UpdateRoutetableReqBody.d.ts +0 -6
- package/v2/model/UpdateRoutetableReqBody.js +0 -14
- package/v2/model/UpdateSubnetOption.d.ts +0 -30
- package/v2/model/UpdateSubnetOption.js +0 -92
- package/v2/model/UpdateSubnetRequest.d.ts +0 -14
- package/v2/model/UpdateSubnetRequest.js +0 -43
- package/v2/model/UpdateSubnetRequestBody.d.ts +0 -6
- package/v2/model/UpdateSubnetRequestBody.js +0 -14
- package/v2/model/UpdateSubnetResponse.d.ts +0 -7
- package/v2/model/UpdateSubnetResponse.js +0 -31
- package/v2/model/UpdateVpcOption.d.ts +0 -12
- package/v2/model/UpdateVpcOption.js +0 -25
- package/v2/model/UpdateVpcPeeringOption.d.ts +0 -7
- package/v2/model/UpdateVpcPeeringOption.js +0 -17
- package/v2/model/UpdateVpcPeeringRequest.d.ts +0 -10
- package/v2/model/UpdateVpcPeeringRequest.js +0 -28
- package/v2/model/UpdateVpcPeeringRequestBody.d.ts +0 -6
- package/v2/model/UpdateVpcPeeringRequestBody.js +0 -14
- package/v2/model/UpdateVpcPeeringResponse.d.ts +0 -7
- package/v2/model/UpdateVpcPeeringResponse.js +0 -31
- package/v2/model/UpdateVpcRequest.d.ts +0 -10
- package/v2/model/UpdateVpcRequest.js +0 -28
- package/v2/model/UpdateVpcRequestBody.d.ts +0 -6
- package/v2/model/UpdateVpcRequestBody.js +0 -14
- package/v2/model/UpdateVpcResponse.d.ts +0 -7
- package/v2/model/UpdateVpcResponse.js +0 -31
- package/v2/model/Vpc.d.ts +0 -41
- package/v2/model/Vpc.js +0 -109
- package/v2/model/VpcInfo.d.ts +0 -11
- package/v2/model/VpcInfo.js +0 -38
- package/v2/model/VpcPeering.d.ts +0 -39
- package/v2/model/VpcPeering.js +0 -101
- package/v2/model/VpcRoute.d.ts +0 -26
- package/v2/model/VpcRoute.js +0 -67
- package/v2/public-api.d.ts +0 -289
- package/v2/public-api.js +0 -305
- package/v3/VpcClient.d.ts +0 -851
- package/v3/VpcClient.js +0 -1792
- package/v3/VpcRegion.d.ts +0 -23
- package/v3/VpcRegion.js +0 -59
- package/v3/model/AddExtendCidrOption.d.ts +0 -7
- package/v3/model/AddExtendCidrOption.js +0 -24
- package/v3/model/AddVpcExtendCidrRequest.d.ts +0 -10
- package/v3/model/AddVpcExtendCidrRequest.js +0 -28
- package/v3/model/AddVpcExtendCidrRequestBody.d.ts +0 -10
- package/v3/model/AddVpcExtendCidrRequestBody.js +0 -28
- package/v3/model/AddVpcExtendCidrResponse.d.ts +0 -11
- package/v3/model/AddVpcExtendCidrResponse.js +0 -45
- package/v3/model/AddressGroup.d.ts +0 -46
- package/v3/model/AddressGroup.js +0 -154
- package/v3/model/BatchCreateSubNetworkInterfaceOption.d.ts +0 -25
- package/v3/model/BatchCreateSubNetworkInterfaceOption.js +0 -85
- package/v3/model/BatchCreateSubNetworkInterfaceRequest.d.ts +0 -6
- package/v3/model/BatchCreateSubNetworkInterfaceRequest.js +0 -13
- package/v3/model/BatchCreateSubNetworkInterfaceRequestBody.d.ts +0 -14
- package/v3/model/BatchCreateSubNetworkInterfaceRequestBody.js +0 -43
- package/v3/model/BatchCreateSubNetworkInterfaceResponse.d.ts +0 -13
- package/v3/model/BatchCreateSubNetworkInterfaceResponse.js +0 -55
- package/v3/model/CloudResource.d.ts +0 -11
- package/v3/model/CloudResource.js +0 -39
- package/v3/model/CreateAddressGroupOption.d.ts +0 -23
- package/v3/model/CreateAddressGroupOption.js +0 -75
- package/v3/model/CreateAddressGroupRequest.d.ts +0 -6
- package/v3/model/CreateAddressGroupRequest.js +0 -13
- package/v3/model/CreateAddressGroupRequestBody.d.ts +0 -12
- package/v3/model/CreateAddressGroupRequestBody.js +0 -38
- package/v3/model/CreateAddressGroupResponse.d.ts +0 -13
- package/v3/model/CreateAddressGroupResponse.js +0 -55
- package/v3/model/CreateSecurityGroupOption.d.ts +0 -11
- package/v3/model/CreateSecurityGroupOption.js +0 -32
- package/v3/model/CreateSecurityGroupRequest.d.ts +0 -6
- package/v3/model/CreateSecurityGroupRequest.js +0 -13
- package/v3/model/CreateSecurityGroupRequestBody.d.ts +0 -12
- package/v3/model/CreateSecurityGroupRequestBody.js +0 -38
- package/v3/model/CreateSecurityGroupResponse.d.ts +0 -13
- package/v3/model/CreateSecurityGroupResponse.js +0 -55
- package/v3/model/CreateSecurityGroupRuleOption.d.ts +0 -33
- package/v3/model/CreateSecurityGroupRuleOption.js +0 -95
- package/v3/model/CreateSecurityGroupRuleRequest.d.ts +0 -6
- package/v3/model/CreateSecurityGroupRuleRequest.js +0 -13
- package/v3/model/CreateSecurityGroupRuleRequestBody.d.ts +0 -12
- package/v3/model/CreateSecurityGroupRuleRequestBody.js +0 -38
- package/v3/model/CreateSecurityGroupRuleResponse.d.ts +0 -13
- package/v3/model/CreateSecurityGroupRuleResponse.js +0 -55
- package/v3/model/CreateSubNetworkInterfaceOption.d.ts +0 -37
- package/v3/model/CreateSubNetworkInterfaceOption.js +0 -127
- package/v3/model/CreateSubNetworkInterfaceRequest.d.ts +0 -6
- package/v3/model/CreateSubNetworkInterfaceRequest.js +0 -13
- package/v3/model/CreateSubNetworkInterfaceRequestBody.d.ts +0 -12
- package/v3/model/CreateSubNetworkInterfaceRequestBody.js +0 -38
- package/v3/model/CreateSubNetworkInterfaceResponse.d.ts +0 -13
- package/v3/model/CreateSubNetworkInterfaceResponse.js +0 -55
- package/v3/model/CreateVpcOption.d.ts +0 -16
- package/v3/model/CreateVpcOption.js +0 -41
- package/v3/model/CreateVpcRequest.d.ts +0 -6
- package/v3/model/CreateVpcRequest.js +0 -13
- package/v3/model/CreateVpcRequestBody.d.ts +0 -10
- package/v3/model/CreateVpcRequestBody.js +0 -28
- package/v3/model/CreateVpcResponse.d.ts +0 -16
- package/v3/model/CreateVpcResponse.js +0 -69
- package/v3/model/DeleteAddressGroupRequest.d.ts +0 -7
- package/v3/model/DeleteAddressGroupRequest.js +0 -24
- package/v3/model/DeleteAddressGroupResponse.d.ts +0 -4
- package/v3/model/DeleteAddressGroupResponse.js +0 -27
- package/v3/model/DeleteIpAddressGroupForceRequest.d.ts +0 -7
- package/v3/model/DeleteIpAddressGroupForceRequest.js +0 -24
- package/v3/model/DeleteIpAddressGroupForceResponse.d.ts +0 -4
- package/v3/model/DeleteIpAddressGroupForceResponse.js +0 -27
- package/v3/model/DeleteSecurityGroupRequest.d.ts +0 -7
- package/v3/model/DeleteSecurityGroupRequest.js +0 -24
- package/v3/model/DeleteSecurityGroupResponse.d.ts +0 -4
- package/v3/model/DeleteSecurityGroupResponse.js +0 -27
- package/v3/model/DeleteSecurityGroupRuleRequest.d.ts +0 -7
- package/v3/model/DeleteSecurityGroupRuleRequest.js +0 -24
- package/v3/model/DeleteSecurityGroupRuleResponse.d.ts +0 -4
- package/v3/model/DeleteSecurityGroupRuleResponse.js +0 -27
- package/v3/model/DeleteSubNetworkInterfaceRequest.d.ts +0 -7
- package/v3/model/DeleteSubNetworkInterfaceRequest.js +0 -24
- package/v3/model/DeleteSubNetworkInterfaceResponse.d.ts +0 -4
- package/v3/model/DeleteSubNetworkInterfaceResponse.js +0 -27
- package/v3/model/DeleteVpcRequest.d.ts +0 -7
- package/v3/model/DeleteVpcRequest.js +0 -24
- package/v3/model/DeleteVpcResponse.d.ts +0 -4
- package/v3/model/DeleteVpcResponse.js +0 -27
- package/v3/model/ListAddressGroupRequest.d.ts +0 -21
- package/v3/model/ListAddressGroupRequest.js +0 -57
- package/v3/model/ListAddressGroupResponse.d.ts +0 -18
- package/v3/model/ListAddressGroupResponse.js +0 -69
- package/v3/model/ListSecurityGroupRulesRequest.d.ts +0 -29
- package/v3/model/ListSecurityGroupRulesRequest.js +0 -79
- package/v3/model/ListSecurityGroupRulesResponse.d.ts +0 -18
- package/v3/model/ListSecurityGroupRulesResponse.js +0 -69
- package/v3/model/ListSecurityGroupsRequest.d.ts +0 -17
- package/v3/model/ListSecurityGroupsRequest.js +0 -43
- package/v3/model/ListSecurityGroupsResponse.d.ts +0 -18
- package/v3/model/ListSecurityGroupsResponse.js +0 -69
- package/v3/model/ListSubNetworkInterfacesRequest.d.ts +0 -31
- package/v3/model/ListSubNetworkInterfacesRequest.js +0 -95
- package/v3/model/ListSubNetworkInterfacesResponse.d.ts +0 -18
- package/v3/model/ListSubNetworkInterfacesResponse.js +0 -69
- package/v3/model/ListVpcsRequest.d.ts +0 -15
- package/v3/model/ListVpcsRequest.js +0 -33
- package/v3/model/ListVpcsResponse.d.ts +0 -16
- package/v3/model/ListVpcsResponse.js +0 -59
- package/v3/model/MigrateSubNetworkInterfaceOption.d.ts +0 -17
- package/v3/model/MigrateSubNetworkInterfaceOption.js +0 -39
- package/v3/model/MigrateSubNetworkInterfaceRequest.d.ts +0 -6
- package/v3/model/MigrateSubNetworkInterfaceRequest.js +0 -13
- package/v3/model/MigrateSubNetworkInterfaceRequestBody.d.ts +0 -12
- package/v3/model/MigrateSubNetworkInterfaceRequestBody.js +0 -38
- package/v3/model/MigrateSubNetworkInterfaceResponse.d.ts +0 -13
- package/v3/model/MigrateSubNetworkInterfaceResponse.js +0 -55
- package/v3/model/PageInfo.d.ts +0 -15
- package/v3/model/PageInfo.js +0 -53
- package/v3/model/RemoveExtendCidrOption.d.ts +0 -7
- package/v3/model/RemoveExtendCidrOption.js +0 -24
- package/v3/model/RemoveVpcExtendCidrRequest.d.ts +0 -10
- package/v3/model/RemoveVpcExtendCidrRequest.js +0 -28
- package/v3/model/RemoveVpcExtendCidrRequestBody.d.ts +0 -10
- package/v3/model/RemoveVpcExtendCidrRequestBody.js +0 -28
- package/v3/model/RemoveVpcExtendCidrResponse.d.ts +0 -11
- package/v3/model/RemoveVpcExtendCidrResponse.js +0 -45
- package/v3/model/ResourceTag.d.ts +0 -7
- package/v3/model/ResourceTag.js +0 -19
- package/v3/model/SecurityGroup.d.ts +0 -25
- package/v3/model/SecurityGroup.js +0 -84
- package/v3/model/SecurityGroupInfo.d.ts +0 -30
- package/v3/model/SecurityGroupInfo.js +0 -99
- package/v3/model/SecurityGroupRule.d.ts +0 -47
- package/v3/model/SecurityGroupRule.js +0 -154
- package/v3/model/ShowAddressGroupRequest.d.ts +0 -7
- package/v3/model/ShowAddressGroupRequest.js +0 -24
- package/v3/model/ShowAddressGroupResponse.d.ts +0 -13
- package/v3/model/ShowAddressGroupResponse.js +0 -55
- package/v3/model/ShowSecurityGroupRequest.d.ts +0 -7
- package/v3/model/ShowSecurityGroupRequest.js +0 -24
- package/v3/model/ShowSecurityGroupResponse.d.ts +0 -13
- package/v3/model/ShowSecurityGroupResponse.js +0 -55
- package/v3/model/ShowSecurityGroupRuleRequest.d.ts +0 -7
- package/v3/model/ShowSecurityGroupRuleRequest.js +0 -24
- package/v3/model/ShowSecurityGroupRuleResponse.d.ts +0 -13
- package/v3/model/ShowSecurityGroupRuleResponse.js +0 -55
- package/v3/model/ShowSubNetworkInterfaceRequest.d.ts +0 -7
- package/v3/model/ShowSubNetworkInterfaceRequest.js +0 -24
- package/v3/model/ShowSubNetworkInterfaceResponse.d.ts +0 -13
- package/v3/model/ShowSubNetworkInterfaceResponse.js +0 -55
- package/v3/model/ShowSubNetworkInterfacesQuantityRequest.d.ts +0 -3
- package/v3/model/ShowSubNetworkInterfacesQuantityRequest.js +0 -9
- package/v3/model/ShowSubNetworkInterfacesQuantityResponse.d.ts +0 -12
- package/v3/model/ShowSubNetworkInterfacesQuantityResponse.js +0 -55
- package/v3/model/ShowVpcRequest.d.ts +0 -7
- package/v3/model/ShowVpcRequest.js +0 -24
- package/v3/model/ShowVpcResponse.d.ts +0 -11
- package/v3/model/ShowVpcResponse.js +0 -45
- package/v3/model/SubNetworkInterface.d.ts +0 -53
- package/v3/model/SubNetworkInterface.js +0 -189
- package/v3/model/Tag.d.ts +0 -7
- package/v3/model/Tag.js +0 -19
- package/v3/model/UpdateAddressGroupOption.d.ts +0 -15
- package/v3/model/UpdateAddressGroupOption.js +0 -45
- package/v3/model/UpdateAddressGroupRequest.d.ts +0 -10
- package/v3/model/UpdateAddressGroupRequest.js +0 -28
- package/v3/model/UpdateAddressGroupRequestBody.d.ts +0 -12
- package/v3/model/UpdateAddressGroupRequestBody.js +0 -38
- package/v3/model/UpdateAddressGroupResponse.d.ts +0 -13
- package/v3/model/UpdateAddressGroupResponse.js +0 -55
- package/v3/model/UpdateSecurityGroupOption.d.ts +0 -7
- package/v3/model/UpdateSecurityGroupOption.js +0 -17
- package/v3/model/UpdateSecurityGroupRequest.d.ts +0 -10
- package/v3/model/UpdateSecurityGroupRequest.js +0 -28
- package/v3/model/UpdateSecurityGroupRequestBody.d.ts +0 -12
- package/v3/model/UpdateSecurityGroupRequestBody.js +0 -38
- package/v3/model/UpdateSecurityGroupResponse.d.ts +0 -13
- package/v3/model/UpdateSecurityGroupResponse.js +0 -55
- package/v3/model/UpdateSubNetworkInterfaceOption.d.ts +0 -9
- package/v3/model/UpdateSubNetworkInterfaceOption.js +0 -27
- package/v3/model/UpdateSubNetworkInterfaceRequest.d.ts +0 -10
- package/v3/model/UpdateSubNetworkInterfaceRequest.js +0 -28
- package/v3/model/UpdateSubNetworkInterfaceRequestBody.d.ts +0 -12
- package/v3/model/UpdateSubNetworkInterfaceRequestBody.js +0 -38
- package/v3/model/UpdateSubNetworkInterfaceResponse.d.ts +0 -13
- package/v3/model/UpdateSubNetworkInterfaceResponse.js +0 -55
- package/v3/model/UpdateVpcOption.d.ts +0 -7
- package/v3/model/UpdateVpcOption.js +0 -17
- package/v3/model/UpdateVpcRequest.d.ts +0 -10
- package/v3/model/UpdateVpcRequest.js +0 -28
- package/v3/model/UpdateVpcRequestBody.d.ts +0 -10
- package/v3/model/UpdateVpcRequestBody.js +0 -28
- package/v3/model/UpdateVpcResponse.d.ts +0 -16
- package/v3/model/UpdateVpcResponse.js +0 -69
- package/v3/model/Vpc.d.ts +0 -41
- package/v3/model/Vpc.js +0 -129
- package/v3/public-api.d.ts +0 -98
- package/v3/public-api.js +0 -114
package/v3/VpcClient.ts
ADDED
|
@@ -0,0 +1,2133 @@
|
|
|
1
|
+
import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
|
|
2
|
+
import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
|
|
3
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
|
4
|
+
|
|
5
|
+
import { AddExtendCidrOption } from './model/AddExtendCidrOption';
|
|
6
|
+
import { AddVpcExtendCidrRequest } from './model/AddVpcExtendCidrRequest';
|
|
7
|
+
import { AddVpcExtendCidrRequestBody } from './model/AddVpcExtendCidrRequestBody';
|
|
8
|
+
import { AddVpcExtendCidrResponse } from './model/AddVpcExtendCidrResponse';
|
|
9
|
+
import { AddressGroup } from './model/AddressGroup';
|
|
10
|
+
import { BatchCreateSubNetworkInterfaceOption } from './model/BatchCreateSubNetworkInterfaceOption';
|
|
11
|
+
import { BatchCreateSubNetworkInterfaceRequest } from './model/BatchCreateSubNetworkInterfaceRequest';
|
|
12
|
+
import { BatchCreateSubNetworkInterfaceRequestBody } from './model/BatchCreateSubNetworkInterfaceRequestBody';
|
|
13
|
+
import { BatchCreateSubNetworkInterfaceResponse } from './model/BatchCreateSubNetworkInterfaceResponse';
|
|
14
|
+
import { CloudResource } from './model/CloudResource';
|
|
15
|
+
import { CreateAddressGroupOption } from './model/CreateAddressGroupOption';
|
|
16
|
+
import { CreateAddressGroupRequest } from './model/CreateAddressGroupRequest';
|
|
17
|
+
import { CreateAddressGroupRequestBody } from './model/CreateAddressGroupRequestBody';
|
|
18
|
+
import { CreateAddressGroupResponse } from './model/CreateAddressGroupResponse';
|
|
19
|
+
import { CreateSecurityGroupOption } from './model/CreateSecurityGroupOption';
|
|
20
|
+
import { CreateSecurityGroupRequest } from './model/CreateSecurityGroupRequest';
|
|
21
|
+
import { CreateSecurityGroupRequestBody } from './model/CreateSecurityGroupRequestBody';
|
|
22
|
+
import { CreateSecurityGroupResponse } from './model/CreateSecurityGroupResponse';
|
|
23
|
+
import { CreateSecurityGroupRuleOption } from './model/CreateSecurityGroupRuleOption';
|
|
24
|
+
import { CreateSecurityGroupRuleRequest } from './model/CreateSecurityGroupRuleRequest';
|
|
25
|
+
import { CreateSecurityGroupRuleRequestBody } from './model/CreateSecurityGroupRuleRequestBody';
|
|
26
|
+
import { CreateSecurityGroupRuleResponse } from './model/CreateSecurityGroupRuleResponse';
|
|
27
|
+
import { CreateSubNetworkInterfaceOption } from './model/CreateSubNetworkInterfaceOption';
|
|
28
|
+
import { CreateSubNetworkInterfaceRequest } from './model/CreateSubNetworkInterfaceRequest';
|
|
29
|
+
import { CreateSubNetworkInterfaceRequestBody } from './model/CreateSubNetworkInterfaceRequestBody';
|
|
30
|
+
import { CreateSubNetworkInterfaceResponse } from './model/CreateSubNetworkInterfaceResponse';
|
|
31
|
+
import { CreateVpcOption } from './model/CreateVpcOption';
|
|
32
|
+
import { CreateVpcRequest } from './model/CreateVpcRequest';
|
|
33
|
+
import { CreateVpcRequestBody } from './model/CreateVpcRequestBody';
|
|
34
|
+
import { CreateVpcResponse } from './model/CreateVpcResponse';
|
|
35
|
+
import { DeleteAddressGroupRequest } from './model/DeleteAddressGroupRequest';
|
|
36
|
+
import { DeleteAddressGroupResponse } from './model/DeleteAddressGroupResponse';
|
|
37
|
+
import { DeleteIpAddressGroupForceRequest } from './model/DeleteIpAddressGroupForceRequest';
|
|
38
|
+
import { DeleteIpAddressGroupForceResponse } from './model/DeleteIpAddressGroupForceResponse';
|
|
39
|
+
import { DeleteSecurityGroupRequest } from './model/DeleteSecurityGroupRequest';
|
|
40
|
+
import { DeleteSecurityGroupResponse } from './model/DeleteSecurityGroupResponse';
|
|
41
|
+
import { DeleteSecurityGroupRuleRequest } from './model/DeleteSecurityGroupRuleRequest';
|
|
42
|
+
import { DeleteSecurityGroupRuleResponse } from './model/DeleteSecurityGroupRuleResponse';
|
|
43
|
+
import { DeleteSubNetworkInterfaceRequest } from './model/DeleteSubNetworkInterfaceRequest';
|
|
44
|
+
import { DeleteSubNetworkInterfaceResponse } from './model/DeleteSubNetworkInterfaceResponse';
|
|
45
|
+
import { DeleteVpcRequest } from './model/DeleteVpcRequest';
|
|
46
|
+
import { DeleteVpcResponse } from './model/DeleteVpcResponse';
|
|
47
|
+
import { ListAddressGroupRequest } from './model/ListAddressGroupRequest';
|
|
48
|
+
import { ListAddressGroupResponse } from './model/ListAddressGroupResponse';
|
|
49
|
+
import { ListSecurityGroupRulesRequest } from './model/ListSecurityGroupRulesRequest';
|
|
50
|
+
import { ListSecurityGroupRulesResponse } from './model/ListSecurityGroupRulesResponse';
|
|
51
|
+
import { ListSecurityGroupsRequest } from './model/ListSecurityGroupsRequest';
|
|
52
|
+
import { ListSecurityGroupsResponse } from './model/ListSecurityGroupsResponse';
|
|
53
|
+
import { ListSubNetworkInterfacesRequest } from './model/ListSubNetworkInterfacesRequest';
|
|
54
|
+
import { ListSubNetworkInterfacesResponse } from './model/ListSubNetworkInterfacesResponse';
|
|
55
|
+
import { ListVpcsRequest } from './model/ListVpcsRequest';
|
|
56
|
+
import { ListVpcsResponse } from './model/ListVpcsResponse';
|
|
57
|
+
import { MigrateSubNetworkInterfaceOption } from './model/MigrateSubNetworkInterfaceOption';
|
|
58
|
+
import { MigrateSubNetworkInterfaceRequest } from './model/MigrateSubNetworkInterfaceRequest';
|
|
59
|
+
import { MigrateSubNetworkInterfaceRequestBody } from './model/MigrateSubNetworkInterfaceRequestBody';
|
|
60
|
+
import { MigrateSubNetworkInterfaceResponse } from './model/MigrateSubNetworkInterfaceResponse';
|
|
61
|
+
import { PageInfo } from './model/PageInfo';
|
|
62
|
+
import { RemoveExtendCidrOption } from './model/RemoveExtendCidrOption';
|
|
63
|
+
import { RemoveVpcExtendCidrRequest } from './model/RemoveVpcExtendCidrRequest';
|
|
64
|
+
import { RemoveVpcExtendCidrRequestBody } from './model/RemoveVpcExtendCidrRequestBody';
|
|
65
|
+
import { RemoveVpcExtendCidrResponse } from './model/RemoveVpcExtendCidrResponse';
|
|
66
|
+
import { ResourceTag } from './model/ResourceTag';
|
|
67
|
+
import { SecurityGroup } from './model/SecurityGroup';
|
|
68
|
+
import { SecurityGroupInfo } from './model/SecurityGroupInfo';
|
|
69
|
+
import { SecurityGroupRule } from './model/SecurityGroupRule';
|
|
70
|
+
import { ShowAddressGroupRequest } from './model/ShowAddressGroupRequest';
|
|
71
|
+
import { ShowAddressGroupResponse } from './model/ShowAddressGroupResponse';
|
|
72
|
+
import { ShowSecurityGroupRequest } from './model/ShowSecurityGroupRequest';
|
|
73
|
+
import { ShowSecurityGroupResponse } from './model/ShowSecurityGroupResponse';
|
|
74
|
+
import { ShowSecurityGroupRuleRequest } from './model/ShowSecurityGroupRuleRequest';
|
|
75
|
+
import { ShowSecurityGroupRuleResponse } from './model/ShowSecurityGroupRuleResponse';
|
|
76
|
+
import { ShowSubNetworkInterfaceRequest } from './model/ShowSubNetworkInterfaceRequest';
|
|
77
|
+
import { ShowSubNetworkInterfaceResponse } from './model/ShowSubNetworkInterfaceResponse';
|
|
78
|
+
import { ShowSubNetworkInterfacesQuantityRequest } from './model/ShowSubNetworkInterfacesQuantityRequest';
|
|
79
|
+
import { ShowSubNetworkInterfacesQuantityResponse } from './model/ShowSubNetworkInterfacesQuantityResponse';
|
|
80
|
+
import { ShowVpcRequest } from './model/ShowVpcRequest';
|
|
81
|
+
import { ShowVpcResponse } from './model/ShowVpcResponse';
|
|
82
|
+
import { SubNetworkInterface } from './model/SubNetworkInterface';
|
|
83
|
+
import { Tag } from './model/Tag';
|
|
84
|
+
import { UpdateAddressGroupOption } from './model/UpdateAddressGroupOption';
|
|
85
|
+
import { UpdateAddressGroupRequest } from './model/UpdateAddressGroupRequest';
|
|
86
|
+
import { UpdateAddressGroupRequestBody } from './model/UpdateAddressGroupRequestBody';
|
|
87
|
+
import { UpdateAddressGroupResponse } from './model/UpdateAddressGroupResponse';
|
|
88
|
+
import { UpdateSecurityGroupOption } from './model/UpdateSecurityGroupOption';
|
|
89
|
+
import { UpdateSecurityGroupRequest } from './model/UpdateSecurityGroupRequest';
|
|
90
|
+
import { UpdateSecurityGroupRequestBody } from './model/UpdateSecurityGroupRequestBody';
|
|
91
|
+
import { UpdateSecurityGroupResponse } from './model/UpdateSecurityGroupResponse';
|
|
92
|
+
import { UpdateSubNetworkInterfaceOption } from './model/UpdateSubNetworkInterfaceOption';
|
|
93
|
+
import { UpdateSubNetworkInterfaceRequest } from './model/UpdateSubNetworkInterfaceRequest';
|
|
94
|
+
import { UpdateSubNetworkInterfaceRequestBody } from './model/UpdateSubNetworkInterfaceRequestBody';
|
|
95
|
+
import { UpdateSubNetworkInterfaceResponse } from './model/UpdateSubNetworkInterfaceResponse';
|
|
96
|
+
import { UpdateVpcOption } from './model/UpdateVpcOption';
|
|
97
|
+
import { UpdateVpcRequest } from './model/UpdateVpcRequest';
|
|
98
|
+
import { UpdateVpcRequestBody } from './model/UpdateVpcRequestBody';
|
|
99
|
+
import { UpdateVpcResponse } from './model/UpdateVpcResponse';
|
|
100
|
+
import { Vpc } from './model/Vpc';
|
|
101
|
+
|
|
102
|
+
export class VpcClient {
|
|
103
|
+
public static newBuilder(): ClientBuilder<VpcClient> {
|
|
104
|
+
return new ClientBuilder<VpcClient>(newClient);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
private hcClient: HcClient;
|
|
108
|
+
public constructor(client: HcClient) {
|
|
109
|
+
this.hcClient = client;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
public getPath() {
|
|
113
|
+
return __dirname;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* 批量创建辅助弹性网卡
|
|
119
|
+
*
|
|
120
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
121
|
+
*
|
|
122
|
+
* @summary 批量创建辅助弹性网卡
|
|
123
|
+
* @param {BatchCreateSubNetworkInterfaceRequestBody} batchCreateSubNetworkInterfaceRequestBody This is a auto create Body Object
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
*/
|
|
127
|
+
public batchCreateSubNetworkInterface(batchCreateSubNetworkInterfaceRequest?: BatchCreateSubNetworkInterfaceRequest): Promise<BatchCreateSubNetworkInterfaceResponse> {
|
|
128
|
+
const options = ParamCreater().batchCreateSubNetworkInterface(batchCreateSubNetworkInterfaceRequest);
|
|
129
|
+
|
|
130
|
+
// @ts-ignore
|
|
131
|
+
options['responseHeaders'] = [''];
|
|
132
|
+
|
|
133
|
+
return this.hcClient.sendRequest(options);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* 创建安全组
|
|
138
|
+
*
|
|
139
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
140
|
+
*
|
|
141
|
+
* @summary 创建安全组
|
|
142
|
+
* @param {CreateSecurityGroupRequestBody} createSecurityGroupRequestBody This is a auto create Body Object
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
public createSecurityGroup(createSecurityGroupRequest?: CreateSecurityGroupRequest): Promise<CreateSecurityGroupResponse> {
|
|
147
|
+
const options = ParamCreater().createSecurityGroup(createSecurityGroupRequest);
|
|
148
|
+
|
|
149
|
+
// @ts-ignore
|
|
150
|
+
options['responseHeaders'] = [''];
|
|
151
|
+
|
|
152
|
+
return this.hcClient.sendRequest(options);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* 创建安全组规则
|
|
157
|
+
*
|
|
158
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
159
|
+
*
|
|
160
|
+
* @summary 创建安全组规则
|
|
161
|
+
* @param {CreateSecurityGroupRuleRequestBody} createSecurityGroupRuleRequestBody This is a auto create Body Object
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
public createSecurityGroupRule(createSecurityGroupRuleRequest?: CreateSecurityGroupRuleRequest): Promise<CreateSecurityGroupRuleResponse> {
|
|
166
|
+
const options = ParamCreater().createSecurityGroupRule(createSecurityGroupRuleRequest);
|
|
167
|
+
|
|
168
|
+
// @ts-ignore
|
|
169
|
+
options['responseHeaders'] = [''];
|
|
170
|
+
|
|
171
|
+
return this.hcClient.sendRequest(options);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* 创建辅助弹性网卡
|
|
176
|
+
*
|
|
177
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
178
|
+
*
|
|
179
|
+
* @summary 创建辅助弹性网卡
|
|
180
|
+
* @param {CreateSubNetworkInterfaceRequestBody} createSubNetworkInterfaceRequestBody This is a auto create Body Object
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
public createSubNetworkInterface(createSubNetworkInterfaceRequest?: CreateSubNetworkInterfaceRequest): Promise<CreateSubNetworkInterfaceResponse> {
|
|
185
|
+
const options = ParamCreater().createSubNetworkInterface(createSubNetworkInterfaceRequest);
|
|
186
|
+
|
|
187
|
+
// @ts-ignore
|
|
188
|
+
options['responseHeaders'] = [''];
|
|
189
|
+
|
|
190
|
+
return this.hcClient.sendRequest(options);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* 删除安全组
|
|
195
|
+
*
|
|
196
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
197
|
+
*
|
|
198
|
+
* @summary 删除安全组
|
|
199
|
+
* @param {string} securityGroupId 安全组资源ID
|
|
200
|
+
* @param {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
public deleteSecurityGroup(deleteSecurityGroupRequest?: DeleteSecurityGroupRequest): Promise<DeleteSecurityGroupResponse> {
|
|
204
|
+
const options = ParamCreater().deleteSecurityGroup(deleteSecurityGroupRequest);
|
|
205
|
+
|
|
206
|
+
// @ts-ignore
|
|
207
|
+
options['responseHeaders'] = [''];
|
|
208
|
+
|
|
209
|
+
return this.hcClient.sendRequest(options);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* 删除安全组规则
|
|
214
|
+
*
|
|
215
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
216
|
+
*
|
|
217
|
+
* @summary 删除安全组规则
|
|
218
|
+
* @param {string} securityGroupRuleId 安全组规则ID
|
|
219
|
+
* @param {*} [options] Override http request option.
|
|
220
|
+
* @throws {RequiredError}
|
|
221
|
+
*/
|
|
222
|
+
public deleteSecurityGroupRule(deleteSecurityGroupRuleRequest?: DeleteSecurityGroupRuleRequest): Promise<DeleteSecurityGroupRuleResponse> {
|
|
223
|
+
const options = ParamCreater().deleteSecurityGroupRule(deleteSecurityGroupRuleRequest);
|
|
224
|
+
|
|
225
|
+
// @ts-ignore
|
|
226
|
+
options['responseHeaders'] = [''];
|
|
227
|
+
|
|
228
|
+
return this.hcClient.sendRequest(options);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* 删除辅助弹性网卡
|
|
233
|
+
*
|
|
234
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
235
|
+
*
|
|
236
|
+
* @summary 删除辅助弹性网卡
|
|
237
|
+
* @param {string} subNetworkInterfaceId 弹性辅助网卡唯一标识
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
*/
|
|
241
|
+
public deleteSubNetworkInterface(deleteSubNetworkInterfaceRequest?: DeleteSubNetworkInterfaceRequest): Promise<DeleteSubNetworkInterfaceResponse> {
|
|
242
|
+
const options = ParamCreater().deleteSubNetworkInterface(deleteSubNetworkInterfaceRequest);
|
|
243
|
+
|
|
244
|
+
// @ts-ignore
|
|
245
|
+
options['responseHeaders'] = [''];
|
|
246
|
+
|
|
247
|
+
return this.hcClient.sendRequest(options);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* 查询安全组规则列表
|
|
252
|
+
*
|
|
253
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
254
|
+
*
|
|
255
|
+
* @summary 查询安全组规则列表
|
|
256
|
+
* @param {number} [limit] 功能说明:每页返回个数 取值范围:0-2000
|
|
257
|
+
* @param {string} [marker] 分页查询起始的资源ID,为空时查询第一页
|
|
258
|
+
* @param {Array<string>} [id] 功能说明:安全组规则ID,支持多个ID过滤
|
|
259
|
+
* @param {Array<string>} [securityGroupId] 功能说明:安全组规则所属安全组ID,支持多个ID过滤
|
|
260
|
+
* @param {Array<string>} [protocol] 功能说明:安全组规则协议,支持多条过滤
|
|
261
|
+
* @param {Array<string>} [description] 功能说明:安全组规则的描述,支持多个描述同时过滤
|
|
262
|
+
* @param {Array<string>} [remoteGroupId] 功能说明:远端安全组ID,支持多ID过滤
|
|
263
|
+
* @param {string} [direction] 功能说明:安全组规则方向
|
|
264
|
+
* @param {string} [action] 功能说明:安全组规则生效策略
|
|
265
|
+
* @param {string} [remoteIpPrefix] 功能说明:远端IP地址 取值范围:cidr格式
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
public listSecurityGroupRules(listSecurityGroupRulesRequest?: ListSecurityGroupRulesRequest): Promise<ListSecurityGroupRulesResponse> {
|
|
270
|
+
const options = ParamCreater().listSecurityGroupRules(listSecurityGroupRulesRequest);
|
|
271
|
+
|
|
272
|
+
// @ts-ignore
|
|
273
|
+
options['responseHeaders'] = [''];
|
|
274
|
+
|
|
275
|
+
return this.hcClient.sendRequest(options);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* 查询某租户下的安全组列表
|
|
280
|
+
*
|
|
281
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
282
|
+
*
|
|
283
|
+
* @summary 查询安全组列表
|
|
284
|
+
* @param {number} [limit] 功能说明:每页返回的个数 取值范围:0-2000
|
|
285
|
+
* @param {string} [marker] 分页查询起始的资源ID,为空时查询第一页
|
|
286
|
+
* @param {Array<string>} [id] 功能说明:安全组资源ID。可以使用该字段精确过滤安全组,支持多个ID
|
|
287
|
+
* @param {Array<string>} [name] 功能说明:安全组名称。可以使用该字段精确过滤满足条件的安全组,支持传入多个name过滤
|
|
288
|
+
* @param {Array<string>} [description] 功能说明:安全组描述新增。可以使用该字段精确过滤安全组,支持传入多个描述进行过滤
|
|
289
|
+
* @param {string} [enterpriseProjectId] 功能说明:企业项目ID。可以使用该字段过滤某个企业项目下的安全组。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。 约束:若需要查询当前用户所有有权限查看企业项目绑定的安全组,请传参all_granted_eps。
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
public listSecurityGroups(listSecurityGroupsRequest?: ListSecurityGroupsRequest): Promise<ListSecurityGroupsResponse> {
|
|
294
|
+
const options = ParamCreater().listSecurityGroups(listSecurityGroupsRequest);
|
|
295
|
+
|
|
296
|
+
// @ts-ignore
|
|
297
|
+
options['responseHeaders'] = [''];
|
|
298
|
+
|
|
299
|
+
return this.hcClient.sendRequest(options);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* 查询辅助弹性网卡列表,单次查询最多返回2000条数据
|
|
304
|
+
*
|
|
305
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
306
|
+
*
|
|
307
|
+
* @summary 查询租户下辅助弹性网卡列表
|
|
308
|
+
* @param {number} [limit] 功能说明:每页返回的个数 取值范围:0-2000
|
|
309
|
+
* @param {string} [marker] 分页查询起始的资源ID,为空时查询第一页
|
|
310
|
+
* @param {Array<string>} [id] 功能说明:辅助弹性网卡ID,支持多ID过滤 使用场景:查询需要的多个辅助弹性网卡信息
|
|
311
|
+
* @param {Array<string>} [virsubnetId] 功能说明:辅助弹性网卡所属虚拟子网的ID,支持多个ID过滤 使用场景:过滤需要的单个或者多个虚拟子网下的辅助弹性网卡
|
|
312
|
+
* @param {Array<string>} [privateIpAddress] 功能说明:辅助弹性网卡的私有IPv4地址,支持多个地址同时过滤 使用场景:通过单个或者多个ip地址过滤查询辅助弹性网卡
|
|
313
|
+
* @param {Array<string>} [macAddress] 功能说明:辅助弹性网卡的mac地址,支持多个同时过滤 使用场景:使用mac地址精确过滤辅助弹性网卡
|
|
314
|
+
* @param {Array<string>} [vpcId] 功能说明:辅助弹性网卡所属的VPC_ID,支持多ID过滤 使用场景:过滤单个或多个VPC下的辅助弹性网卡信息
|
|
315
|
+
* @param {Array<string>} [description] 功能说明:辅助弹性网卡的描述信息,支持多个同时过滤 使用场景:通过描述信息过滤辅助弹性网卡
|
|
316
|
+
* @param {Array<string>} [parentId] 功能说明:辅助弹性网卡的宿主网卡的ID,支持多ID过滤 使用场景:过滤单个或多个宿主网卡下存在的辅助弹性网卡
|
|
317
|
+
* @param {*} [options] Override http request option.
|
|
318
|
+
* @throws {RequiredError}
|
|
319
|
+
*/
|
|
320
|
+
public listSubNetworkInterfaces(listSubNetworkInterfacesRequest?: ListSubNetworkInterfacesRequest): Promise<ListSubNetworkInterfacesResponse> {
|
|
321
|
+
const options = ParamCreater().listSubNetworkInterfaces(listSubNetworkInterfacesRequest);
|
|
322
|
+
|
|
323
|
+
// @ts-ignore
|
|
324
|
+
options['responseHeaders'] = [''];
|
|
325
|
+
|
|
326
|
+
return this.hcClient.sendRequest(options);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* 批量迁移辅助弹性网卡
|
|
331
|
+
*
|
|
332
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
333
|
+
*
|
|
334
|
+
* @summary 迁移辅助弹性网卡
|
|
335
|
+
* @param {MigrateSubNetworkInterfaceRequestBody} migrateSubNetworkInterfaceRequestBody This is a auto create Body Object
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
public migrateSubNetworkInterface(migrateSubNetworkInterfaceRequest?: MigrateSubNetworkInterfaceRequest): Promise<MigrateSubNetworkInterfaceResponse> {
|
|
340
|
+
const options = ParamCreater().migrateSubNetworkInterface(migrateSubNetworkInterfaceRequest);
|
|
341
|
+
|
|
342
|
+
// @ts-ignore
|
|
343
|
+
options['responseHeaders'] = [''];
|
|
344
|
+
|
|
345
|
+
return this.hcClient.sendRequest(options);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* 查询单个安全组详情
|
|
350
|
+
*
|
|
351
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
352
|
+
*
|
|
353
|
+
* @summary 查询安全组
|
|
354
|
+
* @param {string} securityGroupId 安全组资源ID
|
|
355
|
+
* @param {*} [options] Override http request option.
|
|
356
|
+
* @throws {RequiredError}
|
|
357
|
+
*/
|
|
358
|
+
public showSecurityGroup(showSecurityGroupRequest?: ShowSecurityGroupRequest): Promise<ShowSecurityGroupResponse> {
|
|
359
|
+
const options = ParamCreater().showSecurityGroup(showSecurityGroupRequest);
|
|
360
|
+
|
|
361
|
+
// @ts-ignore
|
|
362
|
+
options['responseHeaders'] = [''];
|
|
363
|
+
|
|
364
|
+
return this.hcClient.sendRequest(options);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* 查询单个安全组规则
|
|
369
|
+
*
|
|
370
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
371
|
+
*
|
|
372
|
+
* @summary 查询安全组规则
|
|
373
|
+
* @param {string} securityGroupRuleId 安全组规则ID
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
*/
|
|
377
|
+
public showSecurityGroupRule(showSecurityGroupRuleRequest?: ShowSecurityGroupRuleRequest): Promise<ShowSecurityGroupRuleResponse> {
|
|
378
|
+
const options = ParamCreater().showSecurityGroupRule(showSecurityGroupRuleRequest);
|
|
379
|
+
|
|
380
|
+
// @ts-ignore
|
|
381
|
+
options['responseHeaders'] = [''];
|
|
382
|
+
|
|
383
|
+
return this.hcClient.sendRequest(options);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* 查询辅助弹性网卡详情
|
|
388
|
+
*
|
|
389
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
390
|
+
*
|
|
391
|
+
* @summary 查询租户下辅助弹性网卡
|
|
392
|
+
* @param {string} subNetworkInterfaceId 辅助弹性网卡的唯一标识
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
public showSubNetworkInterface(showSubNetworkInterfaceRequest?: ShowSubNetworkInterfaceRequest): Promise<ShowSubNetworkInterfaceResponse> {
|
|
397
|
+
const options = ParamCreater().showSubNetworkInterface(showSubNetworkInterfaceRequest);
|
|
398
|
+
|
|
399
|
+
// @ts-ignore
|
|
400
|
+
options['responseHeaders'] = [''];
|
|
401
|
+
|
|
402
|
+
return this.hcClient.sendRequest(options);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* 查询辅助弹性网卡数目
|
|
407
|
+
*
|
|
408
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
409
|
+
*
|
|
410
|
+
* @summary 查询租户下辅助弹性网卡数目
|
|
411
|
+
* @param {*} [options] Override http request option.
|
|
412
|
+
* @throws {RequiredError}
|
|
413
|
+
*/
|
|
414
|
+
public showSubNetworkInterfacesQuantity(): Promise<ShowSubNetworkInterfacesQuantityResponse> {
|
|
415
|
+
const options = ParamCreater().showSubNetworkInterfacesQuantity();
|
|
416
|
+
|
|
417
|
+
// @ts-ignore
|
|
418
|
+
options['responseHeaders'] = [''];
|
|
419
|
+
|
|
420
|
+
return this.hcClient.sendRequest(options);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* 更新安全组
|
|
425
|
+
*
|
|
426
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
427
|
+
*
|
|
428
|
+
* @summary 更新安全组
|
|
429
|
+
* @param {string} securityGroupId 安全组ID
|
|
430
|
+
* @param {UpdateSecurityGroupRequestBody} updateSecurityGroupRequestBody This is a auto create Body Object
|
|
431
|
+
* @param {*} [options] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
public updateSecurityGroup(updateSecurityGroupRequest?: UpdateSecurityGroupRequest): Promise<UpdateSecurityGroupResponse> {
|
|
435
|
+
const options = ParamCreater().updateSecurityGroup(updateSecurityGroupRequest);
|
|
436
|
+
|
|
437
|
+
// @ts-ignore
|
|
438
|
+
options['responseHeaders'] = [''];
|
|
439
|
+
|
|
440
|
+
return this.hcClient.sendRequest(options);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* 更新辅助弹性网卡
|
|
445
|
+
*
|
|
446
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
447
|
+
*
|
|
448
|
+
* @summary 更新辅助弹性网卡
|
|
449
|
+
* @param {string} subNetworkInterfaceId 辅助弹性网卡的唯一标识
|
|
450
|
+
* @param {UpdateSubNetworkInterfaceRequestBody} updateSubNetworkInterfaceRequestBody This is a auto create Body Object
|
|
451
|
+
* @param {*} [options] Override http request option.
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
*/
|
|
454
|
+
public updateSubNetworkInterface(updateSubNetworkInterfaceRequest?: UpdateSubNetworkInterfaceRequest): Promise<UpdateSubNetworkInterfaceResponse> {
|
|
455
|
+
const options = ParamCreater().updateSubNetworkInterface(updateSubNetworkInterfaceRequest);
|
|
456
|
+
|
|
457
|
+
// @ts-ignore
|
|
458
|
+
options['responseHeaders'] = [''];
|
|
459
|
+
|
|
460
|
+
return this.hcClient.sendRequest(options);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* 创建地址组
|
|
465
|
+
*
|
|
466
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
467
|
+
*
|
|
468
|
+
* @summary 创建地址组
|
|
469
|
+
* @param {CreateAddressGroupRequestBody} createAddressGroupRequestBody This is a auto create Body Object
|
|
470
|
+
* @param {*} [options] Override http request option.
|
|
471
|
+
* @throws {RequiredError}
|
|
472
|
+
*/
|
|
473
|
+
public createAddressGroup(createAddressGroupRequest?: CreateAddressGroupRequest): Promise<CreateAddressGroupResponse> {
|
|
474
|
+
const options = ParamCreater().createAddressGroup(createAddressGroupRequest);
|
|
475
|
+
|
|
476
|
+
// @ts-ignore
|
|
477
|
+
options['responseHeaders'] = [''];
|
|
478
|
+
|
|
479
|
+
return this.hcClient.sendRequest(options);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* 删除地址组,非强制删除,删除前请确保未被其他资源引用
|
|
484
|
+
*
|
|
485
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
486
|
+
*
|
|
487
|
+
* @summary 删除地址组
|
|
488
|
+
* @param {string} addressGroupId 地址组的唯一标识
|
|
489
|
+
* @param {*} [options] Override http request option.
|
|
490
|
+
* @throws {RequiredError}
|
|
491
|
+
*/
|
|
492
|
+
public deleteAddressGroup(deleteAddressGroupRequest?: DeleteAddressGroupRequest): Promise<DeleteAddressGroupResponse> {
|
|
493
|
+
const options = ParamCreater().deleteAddressGroup(deleteAddressGroupRequest);
|
|
494
|
+
|
|
495
|
+
// @ts-ignore
|
|
496
|
+
options['responseHeaders'] = [''];
|
|
497
|
+
|
|
498
|
+
return this.hcClient.sendRequest(options);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* 强制删除地址组,删除的地址组与安全组规则关联时,会删除地址组与关联的安全组规则。
|
|
503
|
+
*
|
|
504
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
505
|
+
*
|
|
506
|
+
* @summary 强制删除地址组
|
|
507
|
+
* @param {string} addressGroupId IP地址组的唯一标识,要删除的IP地址组ID
|
|
508
|
+
* @param {*} [options] Override http request option.
|
|
509
|
+
* @throws {RequiredError}
|
|
510
|
+
*/
|
|
511
|
+
public deleteIpAddressGroupForce(deleteIpAddressGroupForceRequest?: DeleteIpAddressGroupForceRequest): Promise<DeleteIpAddressGroupForceResponse> {
|
|
512
|
+
const options = ParamCreater().deleteIpAddressGroupForce(deleteIpAddressGroupForceRequest);
|
|
513
|
+
|
|
514
|
+
// @ts-ignore
|
|
515
|
+
options['responseHeaders'] = [''];
|
|
516
|
+
|
|
517
|
+
return this.hcClient.sendRequest(options);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* 查询地址组列表,根据过滤条件进行过滤。
|
|
522
|
+
*
|
|
523
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
524
|
+
*
|
|
525
|
+
* @summary 查询地址组列表
|
|
526
|
+
* @param {number} [limit] 功能说明:每页返回的个数 取值范围:0~2000
|
|
527
|
+
* @param {string} [marker] 分页查询起始的资源ID,为空时查询第一页
|
|
528
|
+
* @param {Array<string>} [id] 地址组唯一标识,填写后接口按照id进行过滤,支持多ID同时过滤
|
|
529
|
+
* @param {Array<string>} [name] 地址组名称,填写后按照名称进行过滤,支持多名称同时过滤
|
|
530
|
+
* @param {number} [ipVersion] IP地址组ip版本,当前只支持ipv4,填写后按照ip版本进行过滤
|
|
531
|
+
* @param {Array<string>} [description] 地址组描述信息,填写后按照地址组描述信息过滤,支持多描述同时过滤
|
|
532
|
+
* @param {string} [enterpriseProjectId] 功能说明:企业项目ID。可以使用该字段过滤某个企业项目下的IP地址组。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。若需要查询当前用户所有企业项目绑定的IP地址组,请传参all_granted_eps。
|
|
533
|
+
* @param {*} [options] Override http request option.
|
|
534
|
+
* @throws {RequiredError}
|
|
535
|
+
*/
|
|
536
|
+
public listAddressGroup(listAddressGroupRequest?: ListAddressGroupRequest): Promise<ListAddressGroupResponse> {
|
|
537
|
+
const options = ParamCreater().listAddressGroup(listAddressGroupRequest);
|
|
538
|
+
|
|
539
|
+
// @ts-ignore
|
|
540
|
+
options['responseHeaders'] = [''];
|
|
541
|
+
|
|
542
|
+
return this.hcClient.sendRequest(options);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* 查询地址组详情。
|
|
547
|
+
*
|
|
548
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
549
|
+
*
|
|
550
|
+
* @summary 查询地址组
|
|
551
|
+
* @param {string} addressGroupId 地址组的唯一标识
|
|
552
|
+
* @param {*} [options] Override http request option.
|
|
553
|
+
* @throws {RequiredError}
|
|
554
|
+
*/
|
|
555
|
+
public showAddressGroup(showAddressGroupRequest?: ShowAddressGroupRequest): Promise<ShowAddressGroupResponse> {
|
|
556
|
+
const options = ParamCreater().showAddressGroup(showAddressGroupRequest);
|
|
557
|
+
|
|
558
|
+
// @ts-ignore
|
|
559
|
+
options['responseHeaders'] = [''];
|
|
560
|
+
|
|
561
|
+
return this.hcClient.sendRequest(options);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* 更新地址组。
|
|
566
|
+
*
|
|
567
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
568
|
+
*
|
|
569
|
+
* @summary 更新地址组
|
|
570
|
+
* @param {string} addressGroupId 地址组的唯一标识
|
|
571
|
+
* @param {UpdateAddressGroupRequestBody} updateAddressGroupRequestBody This is a auto create Body Object
|
|
572
|
+
* @param {*} [options] Override http request option.
|
|
573
|
+
* @throws {RequiredError}
|
|
574
|
+
*/
|
|
575
|
+
public updateAddressGroup(updateAddressGroupRequest?: UpdateAddressGroupRequest): Promise<UpdateAddressGroupResponse> {
|
|
576
|
+
const options = ParamCreater().updateAddressGroup(updateAddressGroupRequest);
|
|
577
|
+
|
|
578
|
+
// @ts-ignore
|
|
579
|
+
options['responseHeaders'] = [''];
|
|
580
|
+
|
|
581
|
+
return this.hcClient.sendRequest(options);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* 添加VPC的扩展网段
|
|
586
|
+
*
|
|
587
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
588
|
+
*
|
|
589
|
+
* @summary 添加VPC扩展网段
|
|
590
|
+
* @param {string} vpcId VPC资源ID
|
|
591
|
+
* @param {AddVpcExtendCidrRequestBody} addVpcExtendCidrRequestBody This is a auto create Body Object
|
|
592
|
+
* @param {*} [options] Override http request option.
|
|
593
|
+
* @throws {RequiredError}
|
|
594
|
+
*/
|
|
595
|
+
public addVpcExtendCidr(addVpcExtendCidrRequest?: AddVpcExtendCidrRequest): Promise<AddVpcExtendCidrResponse> {
|
|
596
|
+
const options = ParamCreater().addVpcExtendCidr(addVpcExtendCidrRequest);
|
|
597
|
+
|
|
598
|
+
// @ts-ignore
|
|
599
|
+
options['responseHeaders'] = [''];
|
|
600
|
+
|
|
601
|
+
return this.hcClient.sendRequest(options);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* 创建虚拟私有云
|
|
606
|
+
*
|
|
607
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
608
|
+
*
|
|
609
|
+
* @summary 创建VPC
|
|
610
|
+
* @param {CreateVpcRequestBody} createVpcRequestBody This is a auto create Body Object
|
|
611
|
+
* @param {*} [options] Override http request option.
|
|
612
|
+
* @throws {RequiredError}
|
|
613
|
+
*/
|
|
614
|
+
public createVpc(createVpcRequest?: CreateVpcRequest): Promise<CreateVpcResponse> {
|
|
615
|
+
const options = ParamCreater().createVpc(createVpcRequest);
|
|
616
|
+
|
|
617
|
+
// @ts-ignore
|
|
618
|
+
options['responseHeaders'] = [''];
|
|
619
|
+
|
|
620
|
+
return this.hcClient.sendRequest(options);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* 删除VPC
|
|
625
|
+
*
|
|
626
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
627
|
+
*
|
|
628
|
+
* @summary 删除VPC
|
|
629
|
+
* @param {string} vpcId VPC的资源ID
|
|
630
|
+
* @param {*} [options] Override http request option.
|
|
631
|
+
* @throws {RequiredError}
|
|
632
|
+
*/
|
|
633
|
+
public deleteVpc(deleteVpcRequest?: DeleteVpcRequest): Promise<DeleteVpcResponse> {
|
|
634
|
+
const options = ParamCreater().deleteVpc(deleteVpcRequest);
|
|
635
|
+
|
|
636
|
+
// @ts-ignore
|
|
637
|
+
options['responseHeaders'] = [''];
|
|
638
|
+
|
|
639
|
+
return this.hcClient.sendRequest(options);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* 查询vpc列表
|
|
644
|
+
*
|
|
645
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
646
|
+
*
|
|
647
|
+
* @summary 查询VPC列表
|
|
648
|
+
* @param {number} [limit] 功能说明:每页返回的个数 取值范围:0-2000
|
|
649
|
+
* @param {string} [marker] 分页查询起始的资源ID,为空时查询第一页
|
|
650
|
+
* @param {Array<string>} [id] VPC资源ID。可以使用该字段过滤VPC
|
|
651
|
+
* @param {Array<string>} [name] VPC的name信息,可以使用该字段过滤VPC
|
|
652
|
+
* @param {Array<string>} [description] VPC的描述信息。可以使用该字段过滤VPC
|
|
653
|
+
* @param {Array<string>} [cidr] VPC的CIDR。可以使用该字段过滤VPC
|
|
654
|
+
* @param {*} [options] Override http request option.
|
|
655
|
+
* @throws {RequiredError}
|
|
656
|
+
*/
|
|
657
|
+
public listVpcs(listVpcsRequest?: ListVpcsRequest): Promise<ListVpcsResponse> {
|
|
658
|
+
const options = ParamCreater().listVpcs(listVpcsRequest);
|
|
659
|
+
|
|
660
|
+
// @ts-ignore
|
|
661
|
+
options['responseHeaders'] = [''];
|
|
662
|
+
|
|
663
|
+
return this.hcClient.sendRequest(options);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* 移除VPC扩展网段
|
|
668
|
+
*
|
|
669
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
670
|
+
*
|
|
671
|
+
* @summary 移除VPC扩展网段
|
|
672
|
+
* @param {string} vpcId VPC资源ID
|
|
673
|
+
* @param {RemoveVpcExtendCidrRequestBody} removeVpcExtendCidrRequestBody This is a auto create Body Object
|
|
674
|
+
* @param {*} [options] Override http request option.
|
|
675
|
+
* @throws {RequiredError}
|
|
676
|
+
*/
|
|
677
|
+
public removeVpcExtendCidr(removeVpcExtendCidrRequest?: RemoveVpcExtendCidrRequest): Promise<RemoveVpcExtendCidrResponse> {
|
|
678
|
+
const options = ParamCreater().removeVpcExtendCidr(removeVpcExtendCidrRequest);
|
|
679
|
+
|
|
680
|
+
// @ts-ignore
|
|
681
|
+
options['responseHeaders'] = [''];
|
|
682
|
+
|
|
683
|
+
return this.hcClient.sendRequest(options);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* 查询vpc详情
|
|
688
|
+
*
|
|
689
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
690
|
+
*
|
|
691
|
+
* @summary 查询VPC详情
|
|
692
|
+
* @param {string} vpcId VPC资源ID
|
|
693
|
+
* @param {*} [options] Override http request option.
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
*/
|
|
696
|
+
public showVpc(showVpcRequest?: ShowVpcRequest): Promise<ShowVpcResponse> {
|
|
697
|
+
const options = ParamCreater().showVpc(showVpcRequest);
|
|
698
|
+
|
|
699
|
+
// @ts-ignore
|
|
700
|
+
options['responseHeaders'] = [''];
|
|
701
|
+
|
|
702
|
+
return this.hcClient.sendRequest(options);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* 更新vpc
|
|
707
|
+
*
|
|
708
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
709
|
+
*
|
|
710
|
+
* @summary 更新VPC
|
|
711
|
+
* @param {string} vpcId VPC资源ID
|
|
712
|
+
* @param {UpdateVpcRequestBody} updateVpcRequestBody This is a auto create Body Object
|
|
713
|
+
* @param {*} [options] Override http request option.
|
|
714
|
+
* @throws {RequiredError}
|
|
715
|
+
*/
|
|
716
|
+
public updateVpc(updateVpcRequest?: UpdateVpcRequest): Promise<UpdateVpcResponse> {
|
|
717
|
+
const options = ParamCreater().updateVpc(updateVpcRequest);
|
|
718
|
+
|
|
719
|
+
// @ts-ignore
|
|
720
|
+
options['responseHeaders'] = [''];
|
|
721
|
+
|
|
722
|
+
return this.hcClient.sendRequest(options);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export const ParamCreater = function () {
|
|
727
|
+
return {
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* 批量创建辅助弹性网卡
|
|
731
|
+
*
|
|
732
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
733
|
+
*/
|
|
734
|
+
batchCreateSubNetworkInterface(batchCreateSubNetworkInterfaceRequest?: BatchCreateSubNetworkInterfaceRequest) {
|
|
735
|
+
const options = {
|
|
736
|
+
method: "POST",
|
|
737
|
+
url: "/v3/{project_id}/vpc/sub-network-interfaces/batch-create",
|
|
738
|
+
contentType: "application/json",
|
|
739
|
+
queryParams: {},
|
|
740
|
+
pathParams: {},
|
|
741
|
+
headers: {},
|
|
742
|
+
data: {}
|
|
743
|
+
};
|
|
744
|
+
const localVarHeaderParameter = {} as any;
|
|
745
|
+
|
|
746
|
+
let body: any;
|
|
747
|
+
|
|
748
|
+
if (batchCreateSubNetworkInterfaceRequest !== null && batchCreateSubNetworkInterfaceRequest !== undefined) {
|
|
749
|
+
if (batchCreateSubNetworkInterfaceRequest instanceof BatchCreateSubNetworkInterfaceRequest) {
|
|
750
|
+
body = batchCreateSubNetworkInterfaceRequest.body
|
|
751
|
+
} else {
|
|
752
|
+
body = batchCreateSubNetworkInterfaceRequest['body'];
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
if (body === null || body === undefined) {
|
|
758
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
759
|
+
}
|
|
760
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
761
|
+
|
|
762
|
+
options.data = body !== undefined ? body : {};
|
|
763
|
+
options.headers = localVarHeaderParameter;
|
|
764
|
+
return options;
|
|
765
|
+
},
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* 创建安全组
|
|
769
|
+
*
|
|
770
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
771
|
+
*/
|
|
772
|
+
createSecurityGroup(createSecurityGroupRequest?: CreateSecurityGroupRequest) {
|
|
773
|
+
const options = {
|
|
774
|
+
method: "POST",
|
|
775
|
+
url: "/v3/{project_id}/vpc/security-groups",
|
|
776
|
+
contentType: "application/json",
|
|
777
|
+
queryParams: {},
|
|
778
|
+
pathParams: {},
|
|
779
|
+
headers: {},
|
|
780
|
+
data: {}
|
|
781
|
+
};
|
|
782
|
+
const localVarHeaderParameter = {} as any;
|
|
783
|
+
|
|
784
|
+
let body: any;
|
|
785
|
+
|
|
786
|
+
if (createSecurityGroupRequest !== null && createSecurityGroupRequest !== undefined) {
|
|
787
|
+
if (createSecurityGroupRequest instanceof CreateSecurityGroupRequest) {
|
|
788
|
+
body = createSecurityGroupRequest.body
|
|
789
|
+
} else {
|
|
790
|
+
body = createSecurityGroupRequest['body'];
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
if (body === null || body === undefined) {
|
|
796
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
797
|
+
}
|
|
798
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
799
|
+
|
|
800
|
+
options.data = body !== undefined ? body : {};
|
|
801
|
+
options.headers = localVarHeaderParameter;
|
|
802
|
+
return options;
|
|
803
|
+
},
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* 创建安全组规则
|
|
807
|
+
*
|
|
808
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
809
|
+
*/
|
|
810
|
+
createSecurityGroupRule(createSecurityGroupRuleRequest?: CreateSecurityGroupRuleRequest) {
|
|
811
|
+
const options = {
|
|
812
|
+
method: "POST",
|
|
813
|
+
url: "/v3/{project_id}/vpc/security-group-rules",
|
|
814
|
+
contentType: "application/json",
|
|
815
|
+
queryParams: {},
|
|
816
|
+
pathParams: {},
|
|
817
|
+
headers: {},
|
|
818
|
+
data: {}
|
|
819
|
+
};
|
|
820
|
+
const localVarHeaderParameter = {} as any;
|
|
821
|
+
|
|
822
|
+
let body: any;
|
|
823
|
+
|
|
824
|
+
if (createSecurityGroupRuleRequest !== null && createSecurityGroupRuleRequest !== undefined) {
|
|
825
|
+
if (createSecurityGroupRuleRequest instanceof CreateSecurityGroupRuleRequest) {
|
|
826
|
+
body = createSecurityGroupRuleRequest.body
|
|
827
|
+
} else {
|
|
828
|
+
body = createSecurityGroupRuleRequest['body'];
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
if (body === null || body === undefined) {
|
|
834
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
835
|
+
}
|
|
836
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
837
|
+
|
|
838
|
+
options.data = body !== undefined ? body : {};
|
|
839
|
+
options.headers = localVarHeaderParameter;
|
|
840
|
+
return options;
|
|
841
|
+
},
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* 创建辅助弹性网卡
|
|
845
|
+
*
|
|
846
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
847
|
+
*/
|
|
848
|
+
createSubNetworkInterface(createSubNetworkInterfaceRequest?: CreateSubNetworkInterfaceRequest) {
|
|
849
|
+
const options = {
|
|
850
|
+
method: "POST",
|
|
851
|
+
url: "/v3/{project_id}/vpc/sub-network-interfaces",
|
|
852
|
+
contentType: "application/json",
|
|
853
|
+
queryParams: {},
|
|
854
|
+
pathParams: {},
|
|
855
|
+
headers: {},
|
|
856
|
+
data: {}
|
|
857
|
+
};
|
|
858
|
+
const localVarHeaderParameter = {} as any;
|
|
859
|
+
|
|
860
|
+
let body: any;
|
|
861
|
+
|
|
862
|
+
if (createSubNetworkInterfaceRequest !== null && createSubNetworkInterfaceRequest !== undefined) {
|
|
863
|
+
if (createSubNetworkInterfaceRequest instanceof CreateSubNetworkInterfaceRequest) {
|
|
864
|
+
body = createSubNetworkInterfaceRequest.body
|
|
865
|
+
} else {
|
|
866
|
+
body = createSubNetworkInterfaceRequest['body'];
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
if (body === null || body === undefined) {
|
|
872
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
873
|
+
}
|
|
874
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
875
|
+
|
|
876
|
+
options.data = body !== undefined ? body : {};
|
|
877
|
+
options.headers = localVarHeaderParameter;
|
|
878
|
+
return options;
|
|
879
|
+
},
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* 删除安全组
|
|
883
|
+
*
|
|
884
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
885
|
+
*/
|
|
886
|
+
deleteSecurityGroup(deleteSecurityGroupRequest?: DeleteSecurityGroupRequest) {
|
|
887
|
+
const options = {
|
|
888
|
+
method: "DELETE",
|
|
889
|
+
url: "/v3/{project_id}/vpc/security-groups/{security_group_id}",
|
|
890
|
+
contentType: "application/json",
|
|
891
|
+
queryParams: {},
|
|
892
|
+
pathParams: {},
|
|
893
|
+
headers: {}
|
|
894
|
+
};
|
|
895
|
+
const localVarHeaderParameter = {} as any;
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
let securityGroupId;
|
|
899
|
+
|
|
900
|
+
if (deleteSecurityGroupRequest !== null && deleteSecurityGroupRequest !== undefined) {
|
|
901
|
+
if (deleteSecurityGroupRequest instanceof DeleteSecurityGroupRequest) {
|
|
902
|
+
securityGroupId = deleteSecurityGroupRequest.securityGroupId;
|
|
903
|
+
} else {
|
|
904
|
+
securityGroupId = deleteSecurityGroupRequest['security_group_id'];
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
if (securityGroupId === null || securityGroupId === undefined) {
|
|
910
|
+
throw new RequiredError('securityGroupId','Required parameter securityGroupId was null or undefined when calling deleteSecurityGroup.');
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
options.pathParams = { 'security_group_id': securityGroupId, };
|
|
914
|
+
options.headers = localVarHeaderParameter;
|
|
915
|
+
return options;
|
|
916
|
+
},
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* 删除安全组规则
|
|
920
|
+
*
|
|
921
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
922
|
+
*/
|
|
923
|
+
deleteSecurityGroupRule(deleteSecurityGroupRuleRequest?: DeleteSecurityGroupRuleRequest) {
|
|
924
|
+
const options = {
|
|
925
|
+
method: "DELETE",
|
|
926
|
+
url: "/v3/{project_id}/vpc/security-group-rules/{security_group_rule_id}",
|
|
927
|
+
contentType: "application/json",
|
|
928
|
+
queryParams: {},
|
|
929
|
+
pathParams: {},
|
|
930
|
+
headers: {}
|
|
931
|
+
};
|
|
932
|
+
const localVarHeaderParameter = {} as any;
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
let securityGroupRuleId;
|
|
936
|
+
|
|
937
|
+
if (deleteSecurityGroupRuleRequest !== null && deleteSecurityGroupRuleRequest !== undefined) {
|
|
938
|
+
if (deleteSecurityGroupRuleRequest instanceof DeleteSecurityGroupRuleRequest) {
|
|
939
|
+
securityGroupRuleId = deleteSecurityGroupRuleRequest.securityGroupRuleId;
|
|
940
|
+
} else {
|
|
941
|
+
securityGroupRuleId = deleteSecurityGroupRuleRequest['security_group_rule_id'];
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
if (securityGroupRuleId === null || securityGroupRuleId === undefined) {
|
|
947
|
+
throw new RequiredError('securityGroupRuleId','Required parameter securityGroupRuleId was null or undefined when calling deleteSecurityGroupRule.');
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
options.pathParams = { 'security_group_rule_id': securityGroupRuleId, };
|
|
951
|
+
options.headers = localVarHeaderParameter;
|
|
952
|
+
return options;
|
|
953
|
+
},
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* 删除辅助弹性网卡
|
|
957
|
+
*
|
|
958
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
959
|
+
*/
|
|
960
|
+
deleteSubNetworkInterface(deleteSubNetworkInterfaceRequest?: DeleteSubNetworkInterfaceRequest) {
|
|
961
|
+
const options = {
|
|
962
|
+
method: "DELETE",
|
|
963
|
+
url: "/v3/{project_id}/vpc/sub-network-interfaces/{sub_network_interface_id}",
|
|
964
|
+
contentType: "application/json",
|
|
965
|
+
queryParams: {},
|
|
966
|
+
pathParams: {},
|
|
967
|
+
headers: {}
|
|
968
|
+
};
|
|
969
|
+
const localVarHeaderParameter = {} as any;
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
let subNetworkInterfaceId;
|
|
973
|
+
|
|
974
|
+
if (deleteSubNetworkInterfaceRequest !== null && deleteSubNetworkInterfaceRequest !== undefined) {
|
|
975
|
+
if (deleteSubNetworkInterfaceRequest instanceof DeleteSubNetworkInterfaceRequest) {
|
|
976
|
+
subNetworkInterfaceId = deleteSubNetworkInterfaceRequest.subNetworkInterfaceId;
|
|
977
|
+
} else {
|
|
978
|
+
subNetworkInterfaceId = deleteSubNetworkInterfaceRequest['sub_network_interface_id'];
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
if (subNetworkInterfaceId === null || subNetworkInterfaceId === undefined) {
|
|
984
|
+
throw new RequiredError('subNetworkInterfaceId','Required parameter subNetworkInterfaceId was null or undefined when calling deleteSubNetworkInterface.');
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
options.pathParams = { 'sub_network_interface_id': subNetworkInterfaceId, };
|
|
988
|
+
options.headers = localVarHeaderParameter;
|
|
989
|
+
return options;
|
|
990
|
+
},
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* 查询安全组规则列表
|
|
994
|
+
*
|
|
995
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
996
|
+
*/
|
|
997
|
+
listSecurityGroupRules(listSecurityGroupRulesRequest?: ListSecurityGroupRulesRequest) {
|
|
998
|
+
const options = {
|
|
999
|
+
method: "GET",
|
|
1000
|
+
url: "/v3/{project_id}/vpc/security-group-rules",
|
|
1001
|
+
contentType: "application/json",
|
|
1002
|
+
queryParams: {},
|
|
1003
|
+
pathParams: {},
|
|
1004
|
+
headers: {}
|
|
1005
|
+
};
|
|
1006
|
+
const localVarHeaderParameter = {} as any;
|
|
1007
|
+
const localVarQueryParameter = {} as any;
|
|
1008
|
+
|
|
1009
|
+
let limit;
|
|
1010
|
+
|
|
1011
|
+
let marker;
|
|
1012
|
+
|
|
1013
|
+
let id;
|
|
1014
|
+
|
|
1015
|
+
let securityGroupId;
|
|
1016
|
+
|
|
1017
|
+
let protocol;
|
|
1018
|
+
|
|
1019
|
+
let description;
|
|
1020
|
+
|
|
1021
|
+
let remoteGroupId;
|
|
1022
|
+
|
|
1023
|
+
let direction;
|
|
1024
|
+
|
|
1025
|
+
let action;
|
|
1026
|
+
|
|
1027
|
+
let remoteIpPrefix;
|
|
1028
|
+
|
|
1029
|
+
if (listSecurityGroupRulesRequest !== null && listSecurityGroupRulesRequest !== undefined) {
|
|
1030
|
+
if (listSecurityGroupRulesRequest instanceof ListSecurityGroupRulesRequest) {
|
|
1031
|
+
limit = listSecurityGroupRulesRequest.limit;
|
|
1032
|
+
marker = listSecurityGroupRulesRequest.marker;
|
|
1033
|
+
id = listSecurityGroupRulesRequest.id;
|
|
1034
|
+
securityGroupId = listSecurityGroupRulesRequest.securityGroupId;
|
|
1035
|
+
protocol = listSecurityGroupRulesRequest.protocol;
|
|
1036
|
+
description = listSecurityGroupRulesRequest.description;
|
|
1037
|
+
remoteGroupId = listSecurityGroupRulesRequest.remoteGroupId;
|
|
1038
|
+
direction = listSecurityGroupRulesRequest.direction;
|
|
1039
|
+
action = listSecurityGroupRulesRequest.action;
|
|
1040
|
+
remoteIpPrefix = listSecurityGroupRulesRequest.remoteIpPrefix;
|
|
1041
|
+
} else {
|
|
1042
|
+
limit = listSecurityGroupRulesRequest['limit'];
|
|
1043
|
+
marker = listSecurityGroupRulesRequest['marker'];
|
|
1044
|
+
id = listSecurityGroupRulesRequest['id'];
|
|
1045
|
+
securityGroupId = listSecurityGroupRulesRequest['security_group_id'];
|
|
1046
|
+
protocol = listSecurityGroupRulesRequest['protocol'];
|
|
1047
|
+
description = listSecurityGroupRulesRequest['description'];
|
|
1048
|
+
remoteGroupId = listSecurityGroupRulesRequest['remote_group_id'];
|
|
1049
|
+
direction = listSecurityGroupRulesRequest['direction'];
|
|
1050
|
+
action = listSecurityGroupRulesRequest['action'];
|
|
1051
|
+
remoteIpPrefix = listSecurityGroupRulesRequest['remote_ip_prefix'];
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
if (limit !== null && limit !== undefined) {
|
|
1057
|
+
localVarQueryParameter['limit'] = limit;
|
|
1058
|
+
}
|
|
1059
|
+
if (marker !== null && marker !== undefined) {
|
|
1060
|
+
localVarQueryParameter['marker'] = marker;
|
|
1061
|
+
}
|
|
1062
|
+
if (id !== null && id !== undefined) {
|
|
1063
|
+
localVarQueryParameter['id'] = id;
|
|
1064
|
+
}
|
|
1065
|
+
if (securityGroupId !== null && securityGroupId !== undefined) {
|
|
1066
|
+
localVarQueryParameter['security_group_id'] = securityGroupId;
|
|
1067
|
+
}
|
|
1068
|
+
if (protocol !== null && protocol !== undefined) {
|
|
1069
|
+
localVarQueryParameter['protocol'] = protocol;
|
|
1070
|
+
}
|
|
1071
|
+
if (description !== null && description !== undefined) {
|
|
1072
|
+
localVarQueryParameter['description'] = description;
|
|
1073
|
+
}
|
|
1074
|
+
if (remoteGroupId !== null && remoteGroupId !== undefined) {
|
|
1075
|
+
localVarQueryParameter['remote_group_id'] = remoteGroupId;
|
|
1076
|
+
}
|
|
1077
|
+
if (direction !== null && direction !== undefined) {
|
|
1078
|
+
localVarQueryParameter['direction'] = direction;
|
|
1079
|
+
}
|
|
1080
|
+
if (action !== null && action !== undefined) {
|
|
1081
|
+
localVarQueryParameter['action'] = action;
|
|
1082
|
+
}
|
|
1083
|
+
if (remoteIpPrefix !== null && remoteIpPrefix !== undefined) {
|
|
1084
|
+
localVarQueryParameter['remote_ip_prefix'] = remoteIpPrefix;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
options.queryParams = localVarQueryParameter;
|
|
1088
|
+
options.headers = localVarHeaderParameter;
|
|
1089
|
+
return options;
|
|
1090
|
+
},
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* 查询某租户下的安全组列表
|
|
1094
|
+
*
|
|
1095
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1096
|
+
*/
|
|
1097
|
+
listSecurityGroups(listSecurityGroupsRequest?: ListSecurityGroupsRequest) {
|
|
1098
|
+
const options = {
|
|
1099
|
+
method: "GET",
|
|
1100
|
+
url: "/v3/{project_id}/vpc/security-groups",
|
|
1101
|
+
contentType: "application/json",
|
|
1102
|
+
queryParams: {},
|
|
1103
|
+
pathParams: {},
|
|
1104
|
+
headers: {}
|
|
1105
|
+
};
|
|
1106
|
+
const localVarHeaderParameter = {} as any;
|
|
1107
|
+
const localVarQueryParameter = {} as any;
|
|
1108
|
+
|
|
1109
|
+
let limit;
|
|
1110
|
+
|
|
1111
|
+
let marker;
|
|
1112
|
+
|
|
1113
|
+
let id;
|
|
1114
|
+
|
|
1115
|
+
let name;
|
|
1116
|
+
|
|
1117
|
+
let description;
|
|
1118
|
+
|
|
1119
|
+
let enterpriseProjectId;
|
|
1120
|
+
|
|
1121
|
+
if (listSecurityGroupsRequest !== null && listSecurityGroupsRequest !== undefined) {
|
|
1122
|
+
if (listSecurityGroupsRequest instanceof ListSecurityGroupsRequest) {
|
|
1123
|
+
limit = listSecurityGroupsRequest.limit;
|
|
1124
|
+
marker = listSecurityGroupsRequest.marker;
|
|
1125
|
+
id = listSecurityGroupsRequest.id;
|
|
1126
|
+
name = listSecurityGroupsRequest.name;
|
|
1127
|
+
description = listSecurityGroupsRequest.description;
|
|
1128
|
+
enterpriseProjectId = listSecurityGroupsRequest.enterpriseProjectId;
|
|
1129
|
+
} else {
|
|
1130
|
+
limit = listSecurityGroupsRequest['limit'];
|
|
1131
|
+
marker = listSecurityGroupsRequest['marker'];
|
|
1132
|
+
id = listSecurityGroupsRequest['id'];
|
|
1133
|
+
name = listSecurityGroupsRequest['name'];
|
|
1134
|
+
description = listSecurityGroupsRequest['description'];
|
|
1135
|
+
enterpriseProjectId = listSecurityGroupsRequest['enterprise_project_id'];
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
if (limit !== null && limit !== undefined) {
|
|
1141
|
+
localVarQueryParameter['limit'] = limit;
|
|
1142
|
+
}
|
|
1143
|
+
if (marker !== null && marker !== undefined) {
|
|
1144
|
+
localVarQueryParameter['marker'] = marker;
|
|
1145
|
+
}
|
|
1146
|
+
if (id !== null && id !== undefined) {
|
|
1147
|
+
localVarQueryParameter['id'] = id;
|
|
1148
|
+
}
|
|
1149
|
+
if (name !== null && name !== undefined) {
|
|
1150
|
+
localVarQueryParameter['name'] = name;
|
|
1151
|
+
}
|
|
1152
|
+
if (description !== null && description !== undefined) {
|
|
1153
|
+
localVarQueryParameter['description'] = description;
|
|
1154
|
+
}
|
|
1155
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
1156
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
options.queryParams = localVarQueryParameter;
|
|
1160
|
+
options.headers = localVarHeaderParameter;
|
|
1161
|
+
return options;
|
|
1162
|
+
},
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* 查询辅助弹性网卡列表,单次查询最多返回2000条数据
|
|
1166
|
+
*
|
|
1167
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1168
|
+
*/
|
|
1169
|
+
listSubNetworkInterfaces(listSubNetworkInterfacesRequest?: ListSubNetworkInterfacesRequest) {
|
|
1170
|
+
const options = {
|
|
1171
|
+
method: "GET",
|
|
1172
|
+
url: "/v3/{project_id}/vpc/sub-network-interfaces",
|
|
1173
|
+
contentType: "application/json",
|
|
1174
|
+
queryParams: {},
|
|
1175
|
+
pathParams: {},
|
|
1176
|
+
headers: {}
|
|
1177
|
+
};
|
|
1178
|
+
const localVarHeaderParameter = {} as any;
|
|
1179
|
+
const localVarQueryParameter = {} as any;
|
|
1180
|
+
|
|
1181
|
+
let limit;
|
|
1182
|
+
|
|
1183
|
+
let marker;
|
|
1184
|
+
|
|
1185
|
+
let id;
|
|
1186
|
+
|
|
1187
|
+
let virsubnetId;
|
|
1188
|
+
|
|
1189
|
+
let privateIpAddress;
|
|
1190
|
+
|
|
1191
|
+
let macAddress;
|
|
1192
|
+
|
|
1193
|
+
let vpcId;
|
|
1194
|
+
|
|
1195
|
+
let description;
|
|
1196
|
+
|
|
1197
|
+
let parentId;
|
|
1198
|
+
|
|
1199
|
+
if (listSubNetworkInterfacesRequest !== null && listSubNetworkInterfacesRequest !== undefined) {
|
|
1200
|
+
if (listSubNetworkInterfacesRequest instanceof ListSubNetworkInterfacesRequest) {
|
|
1201
|
+
limit = listSubNetworkInterfacesRequest.limit;
|
|
1202
|
+
marker = listSubNetworkInterfacesRequest.marker;
|
|
1203
|
+
id = listSubNetworkInterfacesRequest.id;
|
|
1204
|
+
virsubnetId = listSubNetworkInterfacesRequest.virsubnetId;
|
|
1205
|
+
privateIpAddress = listSubNetworkInterfacesRequest.privateIpAddress;
|
|
1206
|
+
macAddress = listSubNetworkInterfacesRequest.macAddress;
|
|
1207
|
+
vpcId = listSubNetworkInterfacesRequest.vpcId;
|
|
1208
|
+
description = listSubNetworkInterfacesRequest.description;
|
|
1209
|
+
parentId = listSubNetworkInterfacesRequest.parentId;
|
|
1210
|
+
} else {
|
|
1211
|
+
limit = listSubNetworkInterfacesRequest['limit'];
|
|
1212
|
+
marker = listSubNetworkInterfacesRequest['marker'];
|
|
1213
|
+
id = listSubNetworkInterfacesRequest['id'];
|
|
1214
|
+
virsubnetId = listSubNetworkInterfacesRequest['virsubnet_id'];
|
|
1215
|
+
privateIpAddress = listSubNetworkInterfacesRequest['private_ip_address'];
|
|
1216
|
+
macAddress = listSubNetworkInterfacesRequest['mac_address'];
|
|
1217
|
+
vpcId = listSubNetworkInterfacesRequest['vpc_id'];
|
|
1218
|
+
description = listSubNetworkInterfacesRequest['description'];
|
|
1219
|
+
parentId = listSubNetworkInterfacesRequest['parent_id'];
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
if (limit !== null && limit !== undefined) {
|
|
1225
|
+
localVarQueryParameter['limit'] = limit;
|
|
1226
|
+
}
|
|
1227
|
+
if (marker !== null && marker !== undefined) {
|
|
1228
|
+
localVarQueryParameter['marker'] = marker;
|
|
1229
|
+
}
|
|
1230
|
+
if (id !== null && id !== undefined) {
|
|
1231
|
+
localVarQueryParameter['id'] = id;
|
|
1232
|
+
}
|
|
1233
|
+
if (virsubnetId !== null && virsubnetId !== undefined) {
|
|
1234
|
+
localVarQueryParameter['virsubnet_id'] = virsubnetId;
|
|
1235
|
+
}
|
|
1236
|
+
if (privateIpAddress !== null && privateIpAddress !== undefined) {
|
|
1237
|
+
localVarQueryParameter['private_ip_address'] = privateIpAddress;
|
|
1238
|
+
}
|
|
1239
|
+
if (macAddress !== null && macAddress !== undefined) {
|
|
1240
|
+
localVarQueryParameter['mac_address'] = macAddress;
|
|
1241
|
+
}
|
|
1242
|
+
if (vpcId !== null && vpcId !== undefined) {
|
|
1243
|
+
localVarQueryParameter['vpc_id'] = vpcId;
|
|
1244
|
+
}
|
|
1245
|
+
if (description !== null && description !== undefined) {
|
|
1246
|
+
localVarQueryParameter['description'] = description;
|
|
1247
|
+
}
|
|
1248
|
+
if (parentId !== null && parentId !== undefined) {
|
|
1249
|
+
localVarQueryParameter['parent_id'] = parentId;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
options.queryParams = localVarQueryParameter;
|
|
1253
|
+
options.headers = localVarHeaderParameter;
|
|
1254
|
+
return options;
|
|
1255
|
+
},
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* 批量迁移辅助弹性网卡
|
|
1259
|
+
*
|
|
1260
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1261
|
+
*/
|
|
1262
|
+
migrateSubNetworkInterface(migrateSubNetworkInterfaceRequest?: MigrateSubNetworkInterfaceRequest) {
|
|
1263
|
+
const options = {
|
|
1264
|
+
method: "PUT",
|
|
1265
|
+
url: "/v3/{project_id}/vpc/sub-network-interfaces/migrate",
|
|
1266
|
+
contentType: "application/json",
|
|
1267
|
+
queryParams: {},
|
|
1268
|
+
pathParams: {},
|
|
1269
|
+
headers: {},
|
|
1270
|
+
data: {}
|
|
1271
|
+
};
|
|
1272
|
+
const localVarHeaderParameter = {} as any;
|
|
1273
|
+
|
|
1274
|
+
let body: any;
|
|
1275
|
+
|
|
1276
|
+
if (migrateSubNetworkInterfaceRequest !== null && migrateSubNetworkInterfaceRequest !== undefined) {
|
|
1277
|
+
if (migrateSubNetworkInterfaceRequest instanceof MigrateSubNetworkInterfaceRequest) {
|
|
1278
|
+
body = migrateSubNetworkInterfaceRequest.body
|
|
1279
|
+
} else {
|
|
1280
|
+
body = migrateSubNetworkInterfaceRequest['body'];
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
if (body === null || body === undefined) {
|
|
1286
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1287
|
+
}
|
|
1288
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1289
|
+
|
|
1290
|
+
options.data = body !== undefined ? body : {};
|
|
1291
|
+
options.headers = localVarHeaderParameter;
|
|
1292
|
+
return options;
|
|
1293
|
+
},
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* 查询单个安全组详情
|
|
1297
|
+
*
|
|
1298
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1299
|
+
*/
|
|
1300
|
+
showSecurityGroup(showSecurityGroupRequest?: ShowSecurityGroupRequest) {
|
|
1301
|
+
const options = {
|
|
1302
|
+
method: "GET",
|
|
1303
|
+
url: "/v3/{project_id}/vpc/security-groups/{security_group_id}",
|
|
1304
|
+
contentType: "application/json",
|
|
1305
|
+
queryParams: {},
|
|
1306
|
+
pathParams: {},
|
|
1307
|
+
headers: {}
|
|
1308
|
+
};
|
|
1309
|
+
const localVarHeaderParameter = {} as any;
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
let securityGroupId;
|
|
1313
|
+
|
|
1314
|
+
if (showSecurityGroupRequest !== null && showSecurityGroupRequest !== undefined) {
|
|
1315
|
+
if (showSecurityGroupRequest instanceof ShowSecurityGroupRequest) {
|
|
1316
|
+
securityGroupId = showSecurityGroupRequest.securityGroupId;
|
|
1317
|
+
} else {
|
|
1318
|
+
securityGroupId = showSecurityGroupRequest['security_group_id'];
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
if (securityGroupId === null || securityGroupId === undefined) {
|
|
1324
|
+
throw new RequiredError('securityGroupId','Required parameter securityGroupId was null or undefined when calling showSecurityGroup.');
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
options.pathParams = { 'security_group_id': securityGroupId, };
|
|
1328
|
+
options.headers = localVarHeaderParameter;
|
|
1329
|
+
return options;
|
|
1330
|
+
},
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* 查询单个安全组规则
|
|
1334
|
+
*
|
|
1335
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1336
|
+
*/
|
|
1337
|
+
showSecurityGroupRule(showSecurityGroupRuleRequest?: ShowSecurityGroupRuleRequest) {
|
|
1338
|
+
const options = {
|
|
1339
|
+
method: "GET",
|
|
1340
|
+
url: "/v3/{project_id}/vpc/security-group-rules/{security_group_rule_id}",
|
|
1341
|
+
contentType: "application/json",
|
|
1342
|
+
queryParams: {},
|
|
1343
|
+
pathParams: {},
|
|
1344
|
+
headers: {}
|
|
1345
|
+
};
|
|
1346
|
+
const localVarHeaderParameter = {} as any;
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
let securityGroupRuleId;
|
|
1350
|
+
|
|
1351
|
+
if (showSecurityGroupRuleRequest !== null && showSecurityGroupRuleRequest !== undefined) {
|
|
1352
|
+
if (showSecurityGroupRuleRequest instanceof ShowSecurityGroupRuleRequest) {
|
|
1353
|
+
securityGroupRuleId = showSecurityGroupRuleRequest.securityGroupRuleId;
|
|
1354
|
+
} else {
|
|
1355
|
+
securityGroupRuleId = showSecurityGroupRuleRequest['security_group_rule_id'];
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
if (securityGroupRuleId === null || securityGroupRuleId === undefined) {
|
|
1361
|
+
throw new RequiredError('securityGroupRuleId','Required parameter securityGroupRuleId was null or undefined when calling showSecurityGroupRule.');
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
options.pathParams = { 'security_group_rule_id': securityGroupRuleId, };
|
|
1365
|
+
options.headers = localVarHeaderParameter;
|
|
1366
|
+
return options;
|
|
1367
|
+
},
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* 查询辅助弹性网卡详情
|
|
1371
|
+
*
|
|
1372
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1373
|
+
*/
|
|
1374
|
+
showSubNetworkInterface(showSubNetworkInterfaceRequest?: ShowSubNetworkInterfaceRequest) {
|
|
1375
|
+
const options = {
|
|
1376
|
+
method: "GET",
|
|
1377
|
+
url: "/v3/{project_id}/vpc/sub-network-interfaces/{sub_network_interface_id}",
|
|
1378
|
+
contentType: "application/json",
|
|
1379
|
+
queryParams: {},
|
|
1380
|
+
pathParams: {},
|
|
1381
|
+
headers: {}
|
|
1382
|
+
};
|
|
1383
|
+
const localVarHeaderParameter = {} as any;
|
|
1384
|
+
|
|
1385
|
+
|
|
1386
|
+
let subNetworkInterfaceId;
|
|
1387
|
+
|
|
1388
|
+
if (showSubNetworkInterfaceRequest !== null && showSubNetworkInterfaceRequest !== undefined) {
|
|
1389
|
+
if (showSubNetworkInterfaceRequest instanceof ShowSubNetworkInterfaceRequest) {
|
|
1390
|
+
subNetworkInterfaceId = showSubNetworkInterfaceRequest.subNetworkInterfaceId;
|
|
1391
|
+
} else {
|
|
1392
|
+
subNetworkInterfaceId = showSubNetworkInterfaceRequest['sub_network_interface_id'];
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
if (subNetworkInterfaceId === null || subNetworkInterfaceId === undefined) {
|
|
1398
|
+
throw new RequiredError('subNetworkInterfaceId','Required parameter subNetworkInterfaceId was null or undefined when calling showSubNetworkInterface.');
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
options.pathParams = { 'sub_network_interface_id': subNetworkInterfaceId, };
|
|
1402
|
+
options.headers = localVarHeaderParameter;
|
|
1403
|
+
return options;
|
|
1404
|
+
},
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* 查询辅助弹性网卡数目
|
|
1408
|
+
*
|
|
1409
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1410
|
+
*/
|
|
1411
|
+
showSubNetworkInterfacesQuantity() {
|
|
1412
|
+
const options = {
|
|
1413
|
+
method: "GET",
|
|
1414
|
+
url: "/v3/{project_id}/vpc/sub-network-interfaces/count",
|
|
1415
|
+
contentType: "application/json",
|
|
1416
|
+
queryParams: {},
|
|
1417
|
+
pathParams: {},
|
|
1418
|
+
headers: {}
|
|
1419
|
+
};
|
|
1420
|
+
const localVarHeaderParameter = {} as any;
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
options.headers = localVarHeaderParameter;
|
|
1424
|
+
return options;
|
|
1425
|
+
},
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* 更新安全组
|
|
1429
|
+
*
|
|
1430
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1431
|
+
*/
|
|
1432
|
+
updateSecurityGroup(updateSecurityGroupRequest?: UpdateSecurityGroupRequest) {
|
|
1433
|
+
const options = {
|
|
1434
|
+
method: "PUT",
|
|
1435
|
+
url: "/v3/{project_id}/vpc/security-groups/{security_group_id}",
|
|
1436
|
+
contentType: "application/json",
|
|
1437
|
+
queryParams: {},
|
|
1438
|
+
pathParams: {},
|
|
1439
|
+
headers: {},
|
|
1440
|
+
data: {}
|
|
1441
|
+
};
|
|
1442
|
+
const localVarHeaderParameter = {} as any;
|
|
1443
|
+
|
|
1444
|
+
let body: any;
|
|
1445
|
+
|
|
1446
|
+
let securityGroupId;
|
|
1447
|
+
|
|
1448
|
+
if (updateSecurityGroupRequest !== null && updateSecurityGroupRequest !== undefined) {
|
|
1449
|
+
if (updateSecurityGroupRequest instanceof UpdateSecurityGroupRequest) {
|
|
1450
|
+
securityGroupId = updateSecurityGroupRequest.securityGroupId;
|
|
1451
|
+
body = updateSecurityGroupRequest.body
|
|
1452
|
+
} else {
|
|
1453
|
+
securityGroupId = updateSecurityGroupRequest['security_group_id'];
|
|
1454
|
+
body = updateSecurityGroupRequest['body'];
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
if (securityGroupId === null || securityGroupId === undefined) {
|
|
1460
|
+
throw new RequiredError('securityGroupId','Required parameter securityGroupId was null or undefined when calling updateSecurityGroup.');
|
|
1461
|
+
}
|
|
1462
|
+
if (body === null || body === undefined) {
|
|
1463
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1464
|
+
}
|
|
1465
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1466
|
+
|
|
1467
|
+
options.data = body !== undefined ? body : {};
|
|
1468
|
+
options.pathParams = { 'security_group_id': securityGroupId, };
|
|
1469
|
+
options.headers = localVarHeaderParameter;
|
|
1470
|
+
return options;
|
|
1471
|
+
},
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* 更新辅助弹性网卡
|
|
1475
|
+
*
|
|
1476
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1477
|
+
*/
|
|
1478
|
+
updateSubNetworkInterface(updateSubNetworkInterfaceRequest?: UpdateSubNetworkInterfaceRequest) {
|
|
1479
|
+
const options = {
|
|
1480
|
+
method: "PUT",
|
|
1481
|
+
url: "/v3/{project_id}/vpc/sub-network-interfaces/{sub_network_interface_id}",
|
|
1482
|
+
contentType: "application/json",
|
|
1483
|
+
queryParams: {},
|
|
1484
|
+
pathParams: {},
|
|
1485
|
+
headers: {},
|
|
1486
|
+
data: {}
|
|
1487
|
+
};
|
|
1488
|
+
const localVarHeaderParameter = {} as any;
|
|
1489
|
+
|
|
1490
|
+
let body: any;
|
|
1491
|
+
|
|
1492
|
+
let subNetworkInterfaceId;
|
|
1493
|
+
|
|
1494
|
+
if (updateSubNetworkInterfaceRequest !== null && updateSubNetworkInterfaceRequest !== undefined) {
|
|
1495
|
+
if (updateSubNetworkInterfaceRequest instanceof UpdateSubNetworkInterfaceRequest) {
|
|
1496
|
+
subNetworkInterfaceId = updateSubNetworkInterfaceRequest.subNetworkInterfaceId;
|
|
1497
|
+
body = updateSubNetworkInterfaceRequest.body
|
|
1498
|
+
} else {
|
|
1499
|
+
subNetworkInterfaceId = updateSubNetworkInterfaceRequest['sub_network_interface_id'];
|
|
1500
|
+
body = updateSubNetworkInterfaceRequest['body'];
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
if (subNetworkInterfaceId === null || subNetworkInterfaceId === undefined) {
|
|
1506
|
+
throw new RequiredError('subNetworkInterfaceId','Required parameter subNetworkInterfaceId was null or undefined when calling updateSubNetworkInterface.');
|
|
1507
|
+
}
|
|
1508
|
+
if (body === null || body === undefined) {
|
|
1509
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1510
|
+
}
|
|
1511
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1512
|
+
|
|
1513
|
+
options.data = body !== undefined ? body : {};
|
|
1514
|
+
options.pathParams = { 'sub_network_interface_id': subNetworkInterfaceId, };
|
|
1515
|
+
options.headers = localVarHeaderParameter;
|
|
1516
|
+
return options;
|
|
1517
|
+
},
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* 创建地址组
|
|
1521
|
+
*
|
|
1522
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1523
|
+
*/
|
|
1524
|
+
createAddressGroup(createAddressGroupRequest?: CreateAddressGroupRequest) {
|
|
1525
|
+
const options = {
|
|
1526
|
+
method: "POST",
|
|
1527
|
+
url: "/v3/{project_id}/vpc/address-groups",
|
|
1528
|
+
contentType: "application/json",
|
|
1529
|
+
queryParams: {},
|
|
1530
|
+
pathParams: {},
|
|
1531
|
+
headers: {},
|
|
1532
|
+
data: {}
|
|
1533
|
+
};
|
|
1534
|
+
const localVarHeaderParameter = {} as any;
|
|
1535
|
+
|
|
1536
|
+
let body: any;
|
|
1537
|
+
|
|
1538
|
+
if (createAddressGroupRequest !== null && createAddressGroupRequest !== undefined) {
|
|
1539
|
+
if (createAddressGroupRequest instanceof CreateAddressGroupRequest) {
|
|
1540
|
+
body = createAddressGroupRequest.body
|
|
1541
|
+
} else {
|
|
1542
|
+
body = createAddressGroupRequest['body'];
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
if (body === null || body === undefined) {
|
|
1548
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1549
|
+
}
|
|
1550
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1551
|
+
|
|
1552
|
+
options.data = body !== undefined ? body : {};
|
|
1553
|
+
options.headers = localVarHeaderParameter;
|
|
1554
|
+
return options;
|
|
1555
|
+
},
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* 删除地址组,非强制删除,删除前请确保未被其他资源引用
|
|
1559
|
+
*
|
|
1560
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1561
|
+
*/
|
|
1562
|
+
deleteAddressGroup(deleteAddressGroupRequest?: DeleteAddressGroupRequest) {
|
|
1563
|
+
const options = {
|
|
1564
|
+
method: "DELETE",
|
|
1565
|
+
url: "/v3/{project_id}/vpc/address-groups/{address_group_id}",
|
|
1566
|
+
contentType: "application/json",
|
|
1567
|
+
queryParams: {},
|
|
1568
|
+
pathParams: {},
|
|
1569
|
+
headers: {}
|
|
1570
|
+
};
|
|
1571
|
+
const localVarHeaderParameter = {} as any;
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
let addressGroupId;
|
|
1575
|
+
|
|
1576
|
+
if (deleteAddressGroupRequest !== null && deleteAddressGroupRequest !== undefined) {
|
|
1577
|
+
if (deleteAddressGroupRequest instanceof DeleteAddressGroupRequest) {
|
|
1578
|
+
addressGroupId = deleteAddressGroupRequest.addressGroupId;
|
|
1579
|
+
} else {
|
|
1580
|
+
addressGroupId = deleteAddressGroupRequest['address_group_id'];
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
|
|
1585
|
+
if (addressGroupId === null || addressGroupId === undefined) {
|
|
1586
|
+
throw new RequiredError('addressGroupId','Required parameter addressGroupId was null or undefined when calling deleteAddressGroup.');
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
options.pathParams = { 'address_group_id': addressGroupId, };
|
|
1590
|
+
options.headers = localVarHeaderParameter;
|
|
1591
|
+
return options;
|
|
1592
|
+
},
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* 强制删除地址组,删除的地址组与安全组规则关联时,会删除地址组与关联的安全组规则。
|
|
1596
|
+
*
|
|
1597
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1598
|
+
*/
|
|
1599
|
+
deleteIpAddressGroupForce(deleteIpAddressGroupForceRequest?: DeleteIpAddressGroupForceRequest) {
|
|
1600
|
+
const options = {
|
|
1601
|
+
method: "DELETE",
|
|
1602
|
+
url: "/v3/{project_id}/vpc/address-groups/{address_group_id}/force",
|
|
1603
|
+
contentType: "application/json",
|
|
1604
|
+
queryParams: {},
|
|
1605
|
+
pathParams: {},
|
|
1606
|
+
headers: {}
|
|
1607
|
+
};
|
|
1608
|
+
const localVarHeaderParameter = {} as any;
|
|
1609
|
+
|
|
1610
|
+
|
|
1611
|
+
let addressGroupId;
|
|
1612
|
+
|
|
1613
|
+
if (deleteIpAddressGroupForceRequest !== null && deleteIpAddressGroupForceRequest !== undefined) {
|
|
1614
|
+
if (deleteIpAddressGroupForceRequest instanceof DeleteIpAddressGroupForceRequest) {
|
|
1615
|
+
addressGroupId = deleteIpAddressGroupForceRequest.addressGroupId;
|
|
1616
|
+
} else {
|
|
1617
|
+
addressGroupId = deleteIpAddressGroupForceRequest['address_group_id'];
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
if (addressGroupId === null || addressGroupId === undefined) {
|
|
1623
|
+
throw new RequiredError('addressGroupId','Required parameter addressGroupId was null or undefined when calling deleteIpAddressGroupForce.');
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
options.pathParams = { 'address_group_id': addressGroupId, };
|
|
1627
|
+
options.headers = localVarHeaderParameter;
|
|
1628
|
+
return options;
|
|
1629
|
+
},
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* 查询地址组列表,根据过滤条件进行过滤。
|
|
1633
|
+
*
|
|
1634
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1635
|
+
*/
|
|
1636
|
+
listAddressGroup(listAddressGroupRequest?: ListAddressGroupRequest) {
|
|
1637
|
+
const options = {
|
|
1638
|
+
method: "GET",
|
|
1639
|
+
url: "/v3/{project_id}/vpc/address-groups",
|
|
1640
|
+
contentType: "application/json",
|
|
1641
|
+
queryParams: {},
|
|
1642
|
+
pathParams: {},
|
|
1643
|
+
headers: {}
|
|
1644
|
+
};
|
|
1645
|
+
const localVarHeaderParameter = {} as any;
|
|
1646
|
+
const localVarQueryParameter = {} as any;
|
|
1647
|
+
|
|
1648
|
+
let limit;
|
|
1649
|
+
|
|
1650
|
+
let marker;
|
|
1651
|
+
|
|
1652
|
+
let id;
|
|
1653
|
+
|
|
1654
|
+
let name;
|
|
1655
|
+
|
|
1656
|
+
let ipVersion;
|
|
1657
|
+
|
|
1658
|
+
let description;
|
|
1659
|
+
|
|
1660
|
+
let enterpriseProjectId;
|
|
1661
|
+
|
|
1662
|
+
if (listAddressGroupRequest !== null && listAddressGroupRequest !== undefined) {
|
|
1663
|
+
if (listAddressGroupRequest instanceof ListAddressGroupRequest) {
|
|
1664
|
+
limit = listAddressGroupRequest.limit;
|
|
1665
|
+
marker = listAddressGroupRequest.marker;
|
|
1666
|
+
id = listAddressGroupRequest.id;
|
|
1667
|
+
name = listAddressGroupRequest.name;
|
|
1668
|
+
ipVersion = listAddressGroupRequest.ipVersion;
|
|
1669
|
+
description = listAddressGroupRequest.description;
|
|
1670
|
+
enterpriseProjectId = listAddressGroupRequest.enterpriseProjectId;
|
|
1671
|
+
} else {
|
|
1672
|
+
limit = listAddressGroupRequest['limit'];
|
|
1673
|
+
marker = listAddressGroupRequest['marker'];
|
|
1674
|
+
id = listAddressGroupRequest['id'];
|
|
1675
|
+
name = listAddressGroupRequest['name'];
|
|
1676
|
+
ipVersion = listAddressGroupRequest['ip_version'];
|
|
1677
|
+
description = listAddressGroupRequest['description'];
|
|
1678
|
+
enterpriseProjectId = listAddressGroupRequest['enterprise_project_id'];
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
if (limit !== null && limit !== undefined) {
|
|
1684
|
+
localVarQueryParameter['limit'] = limit;
|
|
1685
|
+
}
|
|
1686
|
+
if (marker !== null && marker !== undefined) {
|
|
1687
|
+
localVarQueryParameter['marker'] = marker;
|
|
1688
|
+
}
|
|
1689
|
+
if (id !== null && id !== undefined) {
|
|
1690
|
+
localVarQueryParameter['id'] = id;
|
|
1691
|
+
}
|
|
1692
|
+
if (name !== null && name !== undefined) {
|
|
1693
|
+
localVarQueryParameter['name'] = name;
|
|
1694
|
+
}
|
|
1695
|
+
if (ipVersion !== null && ipVersion !== undefined) {
|
|
1696
|
+
localVarQueryParameter['ip_version'] = ipVersion;
|
|
1697
|
+
}
|
|
1698
|
+
if (description !== null && description !== undefined) {
|
|
1699
|
+
localVarQueryParameter['description'] = description;
|
|
1700
|
+
}
|
|
1701
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
1702
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
options.queryParams = localVarQueryParameter;
|
|
1706
|
+
options.headers = localVarHeaderParameter;
|
|
1707
|
+
return options;
|
|
1708
|
+
},
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* 查询地址组详情。
|
|
1712
|
+
*
|
|
1713
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1714
|
+
*/
|
|
1715
|
+
showAddressGroup(showAddressGroupRequest?: ShowAddressGroupRequest) {
|
|
1716
|
+
const options = {
|
|
1717
|
+
method: "GET",
|
|
1718
|
+
url: "/v3/{project_id}/vpc/address-groups/{address_group_id}",
|
|
1719
|
+
contentType: "application/json",
|
|
1720
|
+
queryParams: {},
|
|
1721
|
+
pathParams: {},
|
|
1722
|
+
headers: {}
|
|
1723
|
+
};
|
|
1724
|
+
const localVarHeaderParameter = {} as any;
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
let addressGroupId;
|
|
1728
|
+
|
|
1729
|
+
if (showAddressGroupRequest !== null && showAddressGroupRequest !== undefined) {
|
|
1730
|
+
if (showAddressGroupRequest instanceof ShowAddressGroupRequest) {
|
|
1731
|
+
addressGroupId = showAddressGroupRequest.addressGroupId;
|
|
1732
|
+
} else {
|
|
1733
|
+
addressGroupId = showAddressGroupRequest['address_group_id'];
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
if (addressGroupId === null || addressGroupId === undefined) {
|
|
1739
|
+
throw new RequiredError('addressGroupId','Required parameter addressGroupId was null or undefined when calling showAddressGroup.');
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
options.pathParams = { 'address_group_id': addressGroupId, };
|
|
1743
|
+
options.headers = localVarHeaderParameter;
|
|
1744
|
+
return options;
|
|
1745
|
+
},
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* 更新地址组。
|
|
1749
|
+
*
|
|
1750
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1751
|
+
*/
|
|
1752
|
+
updateAddressGroup(updateAddressGroupRequest?: UpdateAddressGroupRequest) {
|
|
1753
|
+
const options = {
|
|
1754
|
+
method: "PUT",
|
|
1755
|
+
url: "/v3/{project_id}/vpc/address-groups/{address_group_id}",
|
|
1756
|
+
contentType: "application/json",
|
|
1757
|
+
queryParams: {},
|
|
1758
|
+
pathParams: {},
|
|
1759
|
+
headers: {},
|
|
1760
|
+
data: {}
|
|
1761
|
+
};
|
|
1762
|
+
const localVarHeaderParameter = {} as any;
|
|
1763
|
+
|
|
1764
|
+
let body: any;
|
|
1765
|
+
|
|
1766
|
+
let addressGroupId;
|
|
1767
|
+
|
|
1768
|
+
if (updateAddressGroupRequest !== null && updateAddressGroupRequest !== undefined) {
|
|
1769
|
+
if (updateAddressGroupRequest instanceof UpdateAddressGroupRequest) {
|
|
1770
|
+
addressGroupId = updateAddressGroupRequest.addressGroupId;
|
|
1771
|
+
body = updateAddressGroupRequest.body
|
|
1772
|
+
} else {
|
|
1773
|
+
addressGroupId = updateAddressGroupRequest['address_group_id'];
|
|
1774
|
+
body = updateAddressGroupRequest['body'];
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
|
|
1779
|
+
if (addressGroupId === null || addressGroupId === undefined) {
|
|
1780
|
+
throw new RequiredError('addressGroupId','Required parameter addressGroupId was null or undefined when calling updateAddressGroup.');
|
|
1781
|
+
}
|
|
1782
|
+
if (body === null || body === undefined) {
|
|
1783
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1784
|
+
}
|
|
1785
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1786
|
+
|
|
1787
|
+
options.data = body !== undefined ? body : {};
|
|
1788
|
+
options.pathParams = { 'address_group_id': addressGroupId, };
|
|
1789
|
+
options.headers = localVarHeaderParameter;
|
|
1790
|
+
return options;
|
|
1791
|
+
},
|
|
1792
|
+
|
|
1793
|
+
/**
|
|
1794
|
+
* 添加VPC的扩展网段
|
|
1795
|
+
*
|
|
1796
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1797
|
+
*/
|
|
1798
|
+
addVpcExtendCidr(addVpcExtendCidrRequest?: AddVpcExtendCidrRequest) {
|
|
1799
|
+
const options = {
|
|
1800
|
+
method: "PUT",
|
|
1801
|
+
url: "/v3/{project_id}/vpc/vpcs/{vpc_id}/add-extend-cidr",
|
|
1802
|
+
contentType: "application/json",
|
|
1803
|
+
queryParams: {},
|
|
1804
|
+
pathParams: {},
|
|
1805
|
+
headers: {},
|
|
1806
|
+
data: {}
|
|
1807
|
+
};
|
|
1808
|
+
const localVarHeaderParameter = {} as any;
|
|
1809
|
+
|
|
1810
|
+
let body: any;
|
|
1811
|
+
|
|
1812
|
+
let vpcId;
|
|
1813
|
+
|
|
1814
|
+
if (addVpcExtendCidrRequest !== null && addVpcExtendCidrRequest !== undefined) {
|
|
1815
|
+
if (addVpcExtendCidrRequest instanceof AddVpcExtendCidrRequest) {
|
|
1816
|
+
vpcId = addVpcExtendCidrRequest.vpcId;
|
|
1817
|
+
body = addVpcExtendCidrRequest.body
|
|
1818
|
+
} else {
|
|
1819
|
+
vpcId = addVpcExtendCidrRequest['vpc_id'];
|
|
1820
|
+
body = addVpcExtendCidrRequest['body'];
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
if (vpcId === null || vpcId === undefined) {
|
|
1826
|
+
throw new RequiredError('vpcId','Required parameter vpcId was null or undefined when calling addVpcExtendCidr.');
|
|
1827
|
+
}
|
|
1828
|
+
if (body === null || body === undefined) {
|
|
1829
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1830
|
+
}
|
|
1831
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1832
|
+
|
|
1833
|
+
options.data = body !== undefined ? body : {};
|
|
1834
|
+
options.pathParams = { 'vpc_id': vpcId, };
|
|
1835
|
+
options.headers = localVarHeaderParameter;
|
|
1836
|
+
return options;
|
|
1837
|
+
},
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* 创建虚拟私有云
|
|
1841
|
+
*
|
|
1842
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1843
|
+
*/
|
|
1844
|
+
createVpc(createVpcRequest?: CreateVpcRequest) {
|
|
1845
|
+
const options = {
|
|
1846
|
+
method: "POST",
|
|
1847
|
+
url: "/v3/{project_id}/vpc/vpcs",
|
|
1848
|
+
contentType: "application/json",
|
|
1849
|
+
queryParams: {},
|
|
1850
|
+
pathParams: {},
|
|
1851
|
+
headers: {},
|
|
1852
|
+
data: {}
|
|
1853
|
+
};
|
|
1854
|
+
const localVarHeaderParameter = {} as any;
|
|
1855
|
+
|
|
1856
|
+
let body: any;
|
|
1857
|
+
|
|
1858
|
+
if (createVpcRequest !== null && createVpcRequest !== undefined) {
|
|
1859
|
+
if (createVpcRequest instanceof CreateVpcRequest) {
|
|
1860
|
+
body = createVpcRequest.body
|
|
1861
|
+
} else {
|
|
1862
|
+
body = createVpcRequest['body'];
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
if (body === null || body === undefined) {
|
|
1868
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1869
|
+
}
|
|
1870
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1871
|
+
|
|
1872
|
+
options.data = body !== undefined ? body : {};
|
|
1873
|
+
options.headers = localVarHeaderParameter;
|
|
1874
|
+
return options;
|
|
1875
|
+
},
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* 删除VPC
|
|
1879
|
+
*
|
|
1880
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1881
|
+
*/
|
|
1882
|
+
deleteVpc(deleteVpcRequest?: DeleteVpcRequest) {
|
|
1883
|
+
const options = {
|
|
1884
|
+
method: "DELETE",
|
|
1885
|
+
url: "/v3/{project_id}/vpc/vpcs/{vpc_id}",
|
|
1886
|
+
contentType: "application/json",
|
|
1887
|
+
queryParams: {},
|
|
1888
|
+
pathParams: {},
|
|
1889
|
+
headers: {}
|
|
1890
|
+
};
|
|
1891
|
+
const localVarHeaderParameter = {} as any;
|
|
1892
|
+
|
|
1893
|
+
|
|
1894
|
+
let vpcId;
|
|
1895
|
+
|
|
1896
|
+
if (deleteVpcRequest !== null && deleteVpcRequest !== undefined) {
|
|
1897
|
+
if (deleteVpcRequest instanceof DeleteVpcRequest) {
|
|
1898
|
+
vpcId = deleteVpcRequest.vpcId;
|
|
1899
|
+
} else {
|
|
1900
|
+
vpcId = deleteVpcRequest['vpc_id'];
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
if (vpcId === null || vpcId === undefined) {
|
|
1906
|
+
throw new RequiredError('vpcId','Required parameter vpcId was null or undefined when calling deleteVpc.');
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
options.pathParams = { 'vpc_id': vpcId, };
|
|
1910
|
+
options.headers = localVarHeaderParameter;
|
|
1911
|
+
return options;
|
|
1912
|
+
},
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* 查询vpc列表
|
|
1916
|
+
*
|
|
1917
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1918
|
+
*/
|
|
1919
|
+
listVpcs(listVpcsRequest?: ListVpcsRequest) {
|
|
1920
|
+
const options = {
|
|
1921
|
+
method: "GET",
|
|
1922
|
+
url: "/v3/{project_id}/vpc/vpcs",
|
|
1923
|
+
contentType: "application/json",
|
|
1924
|
+
queryParams: {},
|
|
1925
|
+
pathParams: {},
|
|
1926
|
+
headers: {}
|
|
1927
|
+
};
|
|
1928
|
+
const localVarHeaderParameter = {} as any;
|
|
1929
|
+
const localVarQueryParameter = {} as any;
|
|
1930
|
+
|
|
1931
|
+
let limit;
|
|
1932
|
+
|
|
1933
|
+
let marker;
|
|
1934
|
+
|
|
1935
|
+
let id;
|
|
1936
|
+
|
|
1937
|
+
let name;
|
|
1938
|
+
|
|
1939
|
+
let description;
|
|
1940
|
+
|
|
1941
|
+
let cidr;
|
|
1942
|
+
|
|
1943
|
+
if (listVpcsRequest !== null && listVpcsRequest !== undefined) {
|
|
1944
|
+
if (listVpcsRequest instanceof ListVpcsRequest) {
|
|
1945
|
+
limit = listVpcsRequest.limit;
|
|
1946
|
+
marker = listVpcsRequest.marker;
|
|
1947
|
+
id = listVpcsRequest.id;
|
|
1948
|
+
name = listVpcsRequest.name;
|
|
1949
|
+
description = listVpcsRequest.description;
|
|
1950
|
+
cidr = listVpcsRequest.cidr;
|
|
1951
|
+
} else {
|
|
1952
|
+
limit = listVpcsRequest['limit'];
|
|
1953
|
+
marker = listVpcsRequest['marker'];
|
|
1954
|
+
id = listVpcsRequest['id'];
|
|
1955
|
+
name = listVpcsRequest['name'];
|
|
1956
|
+
description = listVpcsRequest['description'];
|
|
1957
|
+
cidr = listVpcsRequest['cidr'];
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
|
|
1962
|
+
if (limit !== null && limit !== undefined) {
|
|
1963
|
+
localVarQueryParameter['limit'] = limit;
|
|
1964
|
+
}
|
|
1965
|
+
if (marker !== null && marker !== undefined) {
|
|
1966
|
+
localVarQueryParameter['marker'] = marker;
|
|
1967
|
+
}
|
|
1968
|
+
if (id !== null && id !== undefined) {
|
|
1969
|
+
localVarQueryParameter['id'] = id;
|
|
1970
|
+
}
|
|
1971
|
+
if (name !== null && name !== undefined) {
|
|
1972
|
+
localVarQueryParameter['name'] = name;
|
|
1973
|
+
}
|
|
1974
|
+
if (description !== null && description !== undefined) {
|
|
1975
|
+
localVarQueryParameter['description'] = description;
|
|
1976
|
+
}
|
|
1977
|
+
if (cidr !== null && cidr !== undefined) {
|
|
1978
|
+
localVarQueryParameter['cidr'] = cidr;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
options.queryParams = localVarQueryParameter;
|
|
1982
|
+
options.headers = localVarHeaderParameter;
|
|
1983
|
+
return options;
|
|
1984
|
+
},
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* 移除VPC扩展网段
|
|
1988
|
+
*
|
|
1989
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1990
|
+
*/
|
|
1991
|
+
removeVpcExtendCidr(removeVpcExtendCidrRequest?: RemoveVpcExtendCidrRequest) {
|
|
1992
|
+
const options = {
|
|
1993
|
+
method: "PUT",
|
|
1994
|
+
url: "/v3/{project_id}/vpc/vpcs/{vpc_id}/remove-extend-cidr",
|
|
1995
|
+
contentType: "application/json",
|
|
1996
|
+
queryParams: {},
|
|
1997
|
+
pathParams: {},
|
|
1998
|
+
headers: {},
|
|
1999
|
+
data: {}
|
|
2000
|
+
};
|
|
2001
|
+
const localVarHeaderParameter = {} as any;
|
|
2002
|
+
|
|
2003
|
+
let body: any;
|
|
2004
|
+
|
|
2005
|
+
let vpcId;
|
|
2006
|
+
|
|
2007
|
+
if (removeVpcExtendCidrRequest !== null && removeVpcExtendCidrRequest !== undefined) {
|
|
2008
|
+
if (removeVpcExtendCidrRequest instanceof RemoveVpcExtendCidrRequest) {
|
|
2009
|
+
vpcId = removeVpcExtendCidrRequest.vpcId;
|
|
2010
|
+
body = removeVpcExtendCidrRequest.body
|
|
2011
|
+
} else {
|
|
2012
|
+
vpcId = removeVpcExtendCidrRequest['vpc_id'];
|
|
2013
|
+
body = removeVpcExtendCidrRequest['body'];
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
|
|
2018
|
+
if (vpcId === null || vpcId === undefined) {
|
|
2019
|
+
throw new RequiredError('vpcId','Required parameter vpcId was null or undefined when calling removeVpcExtendCidr.');
|
|
2020
|
+
}
|
|
2021
|
+
if (body === null || body === undefined) {
|
|
2022
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
2023
|
+
}
|
|
2024
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2025
|
+
|
|
2026
|
+
options.data = body !== undefined ? body : {};
|
|
2027
|
+
options.pathParams = { 'vpc_id': vpcId, };
|
|
2028
|
+
options.headers = localVarHeaderParameter;
|
|
2029
|
+
return options;
|
|
2030
|
+
},
|
|
2031
|
+
|
|
2032
|
+
/**
|
|
2033
|
+
* 查询vpc详情
|
|
2034
|
+
*
|
|
2035
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2036
|
+
*/
|
|
2037
|
+
showVpc(showVpcRequest?: ShowVpcRequest) {
|
|
2038
|
+
const options = {
|
|
2039
|
+
method: "GET",
|
|
2040
|
+
url: "/v3/{project_id}/vpc/vpcs/{vpc_id}",
|
|
2041
|
+
contentType: "application/json",
|
|
2042
|
+
queryParams: {},
|
|
2043
|
+
pathParams: {},
|
|
2044
|
+
headers: {}
|
|
2045
|
+
};
|
|
2046
|
+
const localVarHeaderParameter = {} as any;
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
let vpcId;
|
|
2050
|
+
|
|
2051
|
+
if (showVpcRequest !== null && showVpcRequest !== undefined) {
|
|
2052
|
+
if (showVpcRequest instanceof ShowVpcRequest) {
|
|
2053
|
+
vpcId = showVpcRequest.vpcId;
|
|
2054
|
+
} else {
|
|
2055
|
+
vpcId = showVpcRequest['vpc_id'];
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
if (vpcId === null || vpcId === undefined) {
|
|
2061
|
+
throw new RequiredError('vpcId','Required parameter vpcId was null or undefined when calling showVpc.');
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
options.pathParams = { 'vpc_id': vpcId, };
|
|
2065
|
+
options.headers = localVarHeaderParameter;
|
|
2066
|
+
return options;
|
|
2067
|
+
},
|
|
2068
|
+
|
|
2069
|
+
/**
|
|
2070
|
+
* 更新vpc
|
|
2071
|
+
*
|
|
2072
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2073
|
+
*/
|
|
2074
|
+
updateVpc(updateVpcRequest?: UpdateVpcRequest) {
|
|
2075
|
+
const options = {
|
|
2076
|
+
method: "PUT",
|
|
2077
|
+
url: "/v3/{project_id}/vpc/vpcs/{vpc_id}",
|
|
2078
|
+
contentType: "application/json",
|
|
2079
|
+
queryParams: {},
|
|
2080
|
+
pathParams: {},
|
|
2081
|
+
headers: {},
|
|
2082
|
+
data: {}
|
|
2083
|
+
};
|
|
2084
|
+
const localVarHeaderParameter = {} as any;
|
|
2085
|
+
|
|
2086
|
+
let body: any;
|
|
2087
|
+
|
|
2088
|
+
let vpcId;
|
|
2089
|
+
|
|
2090
|
+
if (updateVpcRequest !== null && updateVpcRequest !== undefined) {
|
|
2091
|
+
if (updateVpcRequest instanceof UpdateVpcRequest) {
|
|
2092
|
+
vpcId = updateVpcRequest.vpcId;
|
|
2093
|
+
body = updateVpcRequest.body
|
|
2094
|
+
} else {
|
|
2095
|
+
vpcId = updateVpcRequest['vpc_id'];
|
|
2096
|
+
body = updateVpcRequest['body'];
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
|
|
2101
|
+
if (vpcId === null || vpcId === undefined) {
|
|
2102
|
+
throw new RequiredError('vpcId','Required parameter vpcId was null or undefined when calling updateVpc.');
|
|
2103
|
+
}
|
|
2104
|
+
if (body === null || body === undefined) {
|
|
2105
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
2106
|
+
}
|
|
2107
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2108
|
+
|
|
2109
|
+
options.data = body !== undefined ? body : {};
|
|
2110
|
+
options.pathParams = { 'vpc_id': vpcId, };
|
|
2111
|
+
options.headers = localVarHeaderParameter;
|
|
2112
|
+
return options;
|
|
2113
|
+
},
|
|
2114
|
+
|
|
2115
|
+
}
|
|
2116
|
+
};
|
|
2117
|
+
|
|
2118
|
+
function newClient(client: HcClient): VpcClient {
|
|
2119
|
+
return new VpcClient(client);
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
/**
|
|
2123
|
+
*
|
|
2124
|
+
* @export
|
|
2125
|
+
* @class RequiredError
|
|
2126
|
+
* @extends {Error}
|
|
2127
|
+
*/
|
|
2128
|
+
export class RequiredError extends Error {
|
|
2129
|
+
name: "RequiredError" = "RequiredError";
|
|
2130
|
+
constructor(public field: string, msg?: string) {
|
|
2131
|
+
super(msg);
|
|
2132
|
+
}
|
|
2133
|
+
}
|