类 Ipv6GatewayClient


  • public class Ipv6GatewayClient
    extends AbstractBceClient
    Provides the client for accessing the Ipv6Gateway Service (Ipv6Gateway).
    • 构造器详细资料

      • Ipv6GatewayClient

        public Ipv6GatewayClient()
      • Ipv6GatewayClient

        public Ipv6GatewayClient​(BceClientConfiguration clientConfiguration)
        Constructs a new InstanceClient to invoke service methods on Ipv6Gateway instance.
        参数:
        clientConfiguration - The BCE client configuration options.
    • 方法详细资料

      • createIpv6Gateway

        public CreateIpv6GatewayResponse createIpv6Gateway​(String vpcId,
                                                           String name,
                                                           int bandwidthInMbps)
        Create an Ipv6Gateway with the specified options.
        参数:
        vpcId - specify the vpc
        name - specify the name for ipv6Gateway
        bandwidthInMbps - specify the bandwidth in Mbps
        返回:
      • createIpv6Gateway

        public CreateIpv6GatewayResponse createIpv6Gateway​(CreateIpv6GatewayRequest request)
        Create an Ipv6gateway with the specified options. This is an asynchronous interface
        参数:
        request - The request containing all options for creating an Ipv6Gateway.
        返回:
        created ipv6Gateway gatewayId
      • resizeIpv6Gateway

        public void resizeIpv6Gateway​(String ipv6GatewayId,
                                      int newBandwidthInMbps)
        Resizing Ipv6Gateway
        参数:
        ipv6GatewayId - ipv6Gateway to be resized
        newBandwidthInMbps - specify new bandwidth in Mbps for ipv6Gateway
      • resizeIpv6Gateway

        public void resizeIpv6Gateway​(ResizeIpv6GatewayRequest request)
        Resizing Ipv6Gateway
        参数:
        request - IPv6GatewayId & BandwidthInMbps must be provided
      • deleteIpv6Gateway

        public void deleteIpv6Gateway​(String gatewayId)
        delete the Ipv6Gateway
        参数:
        gatewayId - the ipv6Gateway to be deleted
      • deleteIpv6Gateway

        public void deleteIpv6Gateway​(DeleteIpv6GatewayRequest request)
        delete the Ipv6Gateway
        参数:
        request - The request containing all options for delete Ipv6Gateway
      • getIpv6Gateway

        public Ipv6GatewayResponse getIpv6Gateway​(String vpcId)
        get a list of Ipv6Gateway owned by the authenticated user and default conditions
        返回:
      • craeteEgressOnlyRule

        public CreateEgressOnlyRuleResponse craeteEgressOnlyRule​(String gatewayId,
                                                                 String cidr)
        Add an EgressOnluRule to the Ipv6Gateway with the specified options.
        参数:
        gatewayId - specify the ipv6GatewayId to add egressOnlyRule
        cidr - specify the cidr for ipv6Gateway egressOnlyRule
        返回:
        the id of EgressOnlyRule
      • createEgressOnlyRule

        public CreateEgressOnlyRuleResponse createEgressOnlyRule​(CreateEgressOnlyRuleRequest request)
        Add an EgressOnluRule to the Ipv6Gateway with the specified options.
        参数:
        request - the request to create Ipv6Gateway egressOnlyRule
        返回:
        the id of EgressOnlyRule
      • listEgressOnlyRule

        public ListEgressOnlyRuleResponse listEgressOnlyRule​(String gatewayId)
        Return a list of Ipv6Gateway's egressOnlyRule owned by the authenticated user.
        返回:
        The response containing a list of egressOnlyRule owned by the authenticated user.
      • listEgressOnlyRule

        public ListEgressOnlyRuleResponse listEgressOnlyRule​(ListEgressOnlyRuleRequest request)
        Return a list of Ipv6Gateway's egressOnlyRule owned by the authenticated user.
        参数:
        request - The request containing all options for listing own's egressOnlyRule.
        返回:
        The response containing a list of the Ipv6Gateway's egressOnlyRule owned by the authenticated user.
      • deleteIpv6GatewayEgressOnlyRule

        public void deleteIpv6GatewayEgressOnlyRule​(String gatewayId,
                                                    String egressOnlyRuleId)
        delete the Ipv6Gateway's egressOnlyRule
        参数:
        gatewayId - the ipv6Gateway's egressOnlyRuleId to be deleted
      • updateRateLimitRule

        public void updateRateLimitRule​(UpdateRateLimitRuleRequest request)
        update the rateLimitRule for the Ipv6Gateway's
      • deleteIpv6GatewayRateLimitRule

        public void deleteIpv6GatewayRateLimitRule​(String gatewayId,
                                                   String rateLimitRuleId)
        delete the Ipv6Gateway's rateLimitRule
        参数:
        gatewayId - the ipv6Gateway's rateLimitRule to be deleted
      • listRateLimitRule

        public ListRateLimitRuleResponse listRateLimitRule​(String gatewayId)
        list ipv6Gateway's rateLimitRule
        参数:
        gatewayId - the Ipv6Gateway's id
      • fillPayload

        protected void fillPayload​(InternalRequest internalRequest,
                                   AbstractBceRequest bceRequest)
        the method to fill the internalRequest's content field with bceRequest only support HttpMethodName.POST or HttpMethodName.PUT
        参数:
        internalRequest - A request object, populated with endpoint, resource path, ready for callers to populate any additional headers or parameters, and execute.
        bceRequest - The original request, as created by the user.