类 SubnetClient


  • public class SubnetClient
    extends AbstractBceClient
    Provides the client for accessing the Baidu Cloud network Service subnet part.
    • 构造器详细资料

      • SubnetClient

        public SubnetClient()
        Constructs a new client to invoke service methods on network.
      • SubnetClient

        public SubnetClient​(BceClientConfiguration clientConfiguration)
        Constructs a new network client using the client configuration to access network.
        参数:
        clientConfiguration - The network client configuration options controlling how this client connects to network (e.g. proxy settings, retry counts, etc).
    • 方法详细资料

      • createSubnet

        public CreateSubnetResponse createSubnet​(String name,
                                                 String vpcId,
                                                 String cidr,
                                                 String zoneName)
        参数:
        name - The name of subnet that will be created.
        vpcId - The id of vpc which this subnet belong.
        cidr - The CIDR of this subnet.
        zoneName - the name of available zone which the subnet belong through listZones, we can get all available zone info at current region ee.g. "cn-gz-a" "cn-gz-b"
        返回:
      • createSubnet

        public CreateSubnetResponse createSubnet​(CreateSubnetRequest request)
                                          throws BceClientException
        Create a subnet with the specified options. You must fill the field of clientToken,which is especially for keeping idempotent.

        参数:
        request - The request containing all options for creating subnet.
        返回:
        List of subnetId newly created
        抛出:
        BceClientException
      • listSubnets

        public ListSubnetsResponse listSubnets()
        Return a list of subnets owned by the authenticated user.
        返回:
        The response containing a list of subnets owned by the authenticated user.
      • listSubnets

        public ListSubnetsResponse listSubnets​(ListSubnetsRequest request)
        Return a list of subnet owned by the authenticated user.
        参数:
        request - The request containing all options for listing own's subnet.
        返回:
        The response containing a list of subnets owned by the authenticated user.
      • getSubnet

        @Deprecated
        public GetSubnetResponse getSubnet​(String subnetId)
        已过时。
        Get the detail information of specified subnet.
        参数:
        subnetId - The id of the subnet.
        返回:
        A subnet detail model for the subnetId.
      • getSubnet

        public GetSubnetResponse getSubnet​(GetSubnetRequest getSubnetRequest)
        Get the detail information of specified subnet.
        参数:
        getSubnetRequest - The request containing all options for getting the subnet info.
        返回:
        A subnet detail model for the subnetId.
      • getSubnetDetail

        public GetSubnetDetailResponse getSubnetDetail​(String subnetId)
        Get the detail information of specified subnet.
        参数:
        subnetId - The id of the subnet.
        返回:
        A subnet detail model for the subnetId.
      • deleteSubnet

        public void deleteSubnet​(String subnetId)
        Delete the specified subnet owned by the user.

        参数:
        subnetId - The id of the subnet to delete.
      • deleteSubnet

        public void deleteSubnet​(DeleteSubnetRequest deleteSubnetRequest)
        Delete the specified subnet owned by the user.

        参数:
        deleteSubnetRequest - the request containing all options for deleting own's subnet.
      • modifySubnetAttributes

        public void modifySubnetAttributes​(String subnetId,
                                           String name)
        Modifying the special attribute to new value of the subnet owned by the user.
        参数:
        subnetId - The id of the subnet
        name - The name of the subnet after modifying
      • modifySubnetAttributes

        public void modifySubnetAttributes​(ModifySubnetAttributesRequest modifySubnetAttributesRequest)
        Modifying the special attribute to new value of the subnet owned by the user.

        参数:
        modifySubnetAttributesRequest - The request containing all options for modifying own's subnet.