com.baidubce.services.ipv6Gateway
Class Ipv6GatewayClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.ipv6Gateway.Ipv6GatewayClient

public class Ipv6GatewayClient
extends AbstractBceClient

Provides the client for accessing the Ipv6Gateway Service (Ipv6Gateway).


Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
Ipv6GatewayClient()
           
Ipv6GatewayClient(BceClientConfiguration clientConfiguration)
          Constructs a new InstanceClient to invoke service methods on Ipv6Gateway instance.
 
Method Summary
 CreateEgressOnlyRuleResponse craeteEgressOnlyRule(String gatewayId, String cidr)
          Add an EgressOnluRule to the Ipv6Gateway with the specified options.
 CreateEgressOnlyRuleResponse createEgressOnlyRule(CreateEgressOnlyRuleRequest request)
          Add an EgressOnluRule to the Ipv6Gateway with the specified options.
 CreateIpv6GatewayResponse createIpv6Gateway(CreateIpv6GatewayRequest request)
          Create an Ipv6gateway with the specified options.
 CreateIpv6GatewayResponse createIpv6Gateway(String vpcId, String name, int bandwidthInMbps)
          Create an Ipv6Gateway with the specified options.
 RateLimitRuleResponse createRateLimitRule(CreateRateLimitRuleRequest request)
          create the rateLimitRule for the Ipv6Gateway's
 void deleteIpv6Gateway(DeleteIpv6GatewayRequest request)
          delete the Ipv6Gateway
 void deleteIpv6Gateway(String gatewayId)
          delete the Ipv6Gateway
 void deleteIpv6GatewayEgressOnlyRule(DeleteIpv6EgressOnlyRuleRequest deleteIpv6EgressOnlyRuleRequest)
           
 void deleteIpv6GatewayEgressOnlyRule(DeleteIpv6RateLimitRuleRequest request)
           
 void deleteIpv6GatewayEgressOnlyRule(String gatewayId, String egressOnlyRuleId)
          delete the Ipv6Gateway's egressOnlyRule
 void deleteIpv6GatewayRateLimitRule(String gatewayId, String rateLimitRuleId)
          delete the Ipv6Gateway's rateLimitRule
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
 Ipv6GatewayResponse getIpv6Gateway(ListIpv6GatewayRequest request)
          get a single Ipv6Gateway owned by the authenticated user and specified conditions
 Ipv6GatewayResponse getIpv6Gateway(String vpcId)
          get a list of Ipv6Gateway owned by the authenticated user and default conditions
 ListEgressOnlyRuleResponse listEgressOnlyRule(ListEgressOnlyRuleRequest request)
          Return a list of Ipv6Gateway's egressOnlyRule owned by the authenticated user.
 ListEgressOnlyRuleResponse listEgressOnlyRule(String gatewayId)
          Return a list of Ipv6Gateway's egressOnlyRule owned by the authenticated user.
 ListRateLimitRuleResponse listRateLimitRule(ListEgressOnlyRuleRequest request)
           
 ListRateLimitRuleResponse listRateLimitRule(String gatewayId)
          list ipv6Gateway's rateLimitRule
 void resizeIpv6Gateway(ResizeIpv6GatewayRequest request)
          Resizing Ipv6Gateway
 void resizeIpv6Gateway(String ipv6GatewayId, int newBandwidthInMbps)
          Resizing Ipv6Gateway
 void updateRateLimitRule(UpdateRateLimitRuleRequest request)
          update the rateLimitRule for the Ipv6Gateway's
 
Methods inherited from class com.baidubce.AbstractBceClient
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ipv6GatewayClient

public Ipv6GatewayClient()

Ipv6GatewayClient

public Ipv6GatewayClient(BceClientConfiguration clientConfiguration)
Constructs a new InstanceClient to invoke service methods on Ipv6Gateway instance.

Parameters:
clientConfiguration - The BCE client configuration options.
Method Detail

createIpv6Gateway

public CreateIpv6GatewayResponse createIpv6Gateway(String vpcId,
                                                   String name,
                                                   int bandwidthInMbps)
Create an Ipv6Gateway with the specified options.

Parameters:
vpcId - specify the vpc
name - specify the name for ipv6Gateway
bandwidthInMbps - specify the bandwidth in Mbps
Returns:

createIpv6Gateway

public CreateIpv6GatewayResponse createIpv6Gateway(CreateIpv6GatewayRequest request)
Create an Ipv6gateway with the specified options. This is an asynchronous interface

Parameters:
request - The request containing all options for creating an Ipv6Gateway.
Returns:
created ipv6Gateway gatewayId

resizeIpv6Gateway

public void resizeIpv6Gateway(String ipv6GatewayId,
                              int newBandwidthInMbps)
Resizing Ipv6Gateway

Parameters:
ipv6GatewayId - ipv6Gateway to be resized
newBandwidthInMbps - specify new bandwidth in Mbps for ipv6Gateway

resizeIpv6Gateway

public void resizeIpv6Gateway(ResizeIpv6GatewayRequest request)
Resizing Ipv6Gateway

Parameters:
request - IPv6GatewayId & BandwidthInMbps must be provided

deleteIpv6Gateway

public void deleteIpv6Gateway(String gatewayId)
delete the Ipv6Gateway

Parameters:
gatewayId - the ipv6Gateway to be deleted

deleteIpv6Gateway

public void deleteIpv6Gateway(DeleteIpv6GatewayRequest request)
delete the Ipv6Gateway

Parameters:
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

Returns:

getIpv6Gateway

public Ipv6GatewayResponse getIpv6Gateway(ListIpv6GatewayRequest request)
get a single Ipv6Gateway owned by the authenticated user and specified conditions

Returns:

craeteEgressOnlyRule

public CreateEgressOnlyRuleResponse craeteEgressOnlyRule(String gatewayId,
                                                         String cidr)
Add an EgressOnluRule to the Ipv6Gateway with the specified options.

Parameters:
gatewayId - specify the ipv6GatewayId to add egressOnlyRule
cidr - specify the cidr for ipv6Gateway egressOnlyRule
Returns:
the id of EgressOnlyRule

createEgressOnlyRule

public CreateEgressOnlyRuleResponse createEgressOnlyRule(CreateEgressOnlyRuleRequest request)
Add an EgressOnluRule to the Ipv6Gateway with the specified options.

Parameters:
request - the request to create Ipv6Gateway egressOnlyRule
Returns:
the id of EgressOnlyRule

listEgressOnlyRule

public ListEgressOnlyRuleResponse listEgressOnlyRule(String gatewayId)
Return a list of Ipv6Gateway's egressOnlyRule owned by the authenticated user.

Returns:
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.

Parameters:
request - The request containing all options for listing own's egressOnlyRule.
Returns:
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

Parameters:
gatewayId - the ipv6Gateway's egressOnlyRuleId to be deleted

deleteIpv6GatewayEgressOnlyRule

public void deleteIpv6GatewayEgressOnlyRule(DeleteIpv6EgressOnlyRuleRequest deleteIpv6EgressOnlyRuleRequest)

createRateLimitRule

public RateLimitRuleResponse createRateLimitRule(CreateRateLimitRuleRequest request)
create the rateLimitRule for the Ipv6Gateway's


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

Parameters:
gatewayId - the ipv6Gateway's rateLimitRule to be deleted

deleteIpv6GatewayEgressOnlyRule

public void deleteIpv6GatewayEgressOnlyRule(DeleteIpv6RateLimitRuleRequest request)

listRateLimitRule

public ListRateLimitRuleResponse listRateLimitRule(String gatewayId)
list ipv6Gateway's rateLimitRule

Parameters:
gatewayId - the Ipv6Gateway's id

listRateLimitRule

public ListRateLimitRuleResponse listRateLimitRule(ListEgressOnlyRuleRequest request)

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

Parameters:
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.


Copyright © 2020. All rights reserved.