public class VpcClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
VpcClient()
Constructs a new client to invoke service methods on network.
|
VpcClient(BceClientConfiguration clientConfiguration)
Constructs a new network client using the client configuration to access network.
|
| Modifier and Type | Method and Description |
|---|---|
CreateVpcResponse |
createVpc(CreateVpcRequest request)
Create a vpc with the specified options.
|
CreateVpcResponse |
createVpc(String name,
String cidr)
Create a vpc with the specified options.
|
void |
deleteVpc(DeleteVpcRequest deleteVpcRequest)
Delete the specified vpc owned by the user.All resource in the vpc must be deleted before the vpc itself
can be deleted.
|
void |
deleteVpc(String vpcId)
Delete the specified vpc owned by the user.All resource in the vpc must be deleted before the vpc itself
can be deleted.
|
GetVpcResponse |
getVpc(GetVpcRequest getVpcRequest)
Get the detail information of specified vpc.
|
GetVpcResponse |
getVpc(String vpcId)
Get the detail information of specified vpc.
|
GetVpcPrivateAddressInfoResponse |
getVpcPrivateIpAddressInfo(GetVpcPrivateIpAddressInfoRequest request)
Return a list of vpc private ip address info which belongs to the corresponding vpc by vpc id.
|
ListVpcResponse |
listVpcs()
Return a list of vpcs owned by the authenticated user.
|
ListVpcResponse |
listVpcs(ListVpcRequest request)
Return a list of vpcs owned by the authenticated user.
|
void |
modifyInstanceAttributes(ModifyVpcAttributesRequest modifyVpcAttributesRequest)
Modifying the special attribute to new value of the vpc owned by the user.
|
void |
modifyInstanceAttributes(String name,
String vpcId)
Modifying the special attribute to new value of the vpc owned by the user.
|
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic VpcClient()
public VpcClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The network client configuration options controlling how this client
connects to network (e.g. proxy settings, retry counts, etc).public CreateVpcResponse createVpc(String name, String cidr)
name - The name of vpccidr - The CIDR of vpcpublic CreateVpcResponse createVpc(CreateVpcRequest request) throws BceClientException
request - The request containing all options for creating a vpc.BceClientExceptionpublic ListVpcResponse listVpcs()
public ListVpcResponse listVpcs(ListVpcRequest request)
request - The request containing all options for listing own's vpc.public GetVpcResponse getVpc(String vpcId)
vpcId - The id of the network.public GetVpcResponse getVpc(GetVpcRequest getVpcRequest)
getVpcRequest - The request containing all options for getting the vpc info.public void deleteVpc(String vpcId)
vpcId - The id of the vpc to delete.public void deleteVpc(DeleteVpcRequest deleteVpcRequest)
deleteVpcRequest - The request containing all options for deleting own's vpc.public void modifyInstanceAttributes(String name, String vpcId)
name - The name of the vpc after modifyingvpcId - the id of the vpcpublic void modifyInstanceAttributes(ModifyVpcAttributesRequest modifyVpcAttributesRequest)
modifyVpcAttributesRequest - The request containing all options for modifying own's vpc.public GetVpcPrivateAddressInfoResponse getVpcPrivateIpAddressInfo(GetVpcPrivateIpAddressInfoRequest request)
request - The request contains vpc id, list of private ip addresses and private ip range to be queried.Copyright © 2023. All rights reserved.