类 SubnetClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.subnet.SubnetClient
-
public class SubnetClient extends AbstractBceClient
Provides the client for accessing the Baidu Cloud network Service subnet part.
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 SubnetClient()Constructs a new client to invoke service methods on network.SubnetClient(BceClientConfiguration clientConfiguration)Constructs a new network client using the client configuration to access network.
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 CreateSubnetResponsecreateSubnet(CreateSubnetRequest request)Create a subnet with the specified options.CreateSubnetResponsecreateSubnet(String name, String vpcId, String cidr, String zoneName)voiddeleteSubnet(DeleteSubnetRequest deleteSubnetRequest)Delete the specified subnet owned by the user.voiddeleteSubnet(String subnetId)Delete the specified subnet owned by the user.GetSubnetResponsegetSubnet(GetSubnetRequest getSubnetRequest)Get the detail information of specified subnet.GetSubnetResponsegetSubnet(String subnetId)已过时。GetSubnetDetailResponsegetSubnetDetail(String subnetId)Get the detail information of specified subnet.ListSubnetsResponselistSubnets()Return a list of subnets owned by the authenticated user.ListSubnetsResponselistSubnets(ListSubnetsRequest request)Return a list of subnet owned by the authenticated user.voidmodifySubnetAttributes(ModifySubnetAttributesRequest modifySubnetAttributesRequest)Modifying the special attribute to new value of the subnet owned by the user.voidmodifySubnetAttributes(String subnetId, String name)Modifying the special attribute to new value of the subnet owned by the user.-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
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 subnetname- 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.
-
-