|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.baidubce.AbstractBceClient
com.baidubce.services.vpc.VpcClient
public class VpcClient
Provides the client for accessing the Baidu Cloud network Service vpc part.
| Field Summary |
|---|
| Fields inherited from class com.baidubce.AbstractBceClient |
|---|
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
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. |
| 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 |
|---|
public 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).| Method Detail |
|---|
public CreateVpcResponse createVpc(String name,
String cidr)
name - The name of vpccidr - The CIDR of vpc
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||