类 BciClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.bci.BciClient
-
public class BciClient extends AbstractBceClient
Provides the client for accessing the Baidu Cloud network Service bci part.
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 BciClient()Constructs a new client to invoke service methods on network.BciClient(BceClientConfiguration clientConfiguration)Constructs a new network client using the client configuration to access network.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 DeleteInstanceResponsebatchDeleteInstance(DeleteInstanceRequest request)batch delete bci instance with the specified options.CreateInstanceResponsecreateInstance(CreateInstanceRequest request)Create a bci instance with the specified options.DeleteInstanceResponsedeleteInstance(String instanceId)Describe a bci instance with the specified options.DeleteInstanceResponsedeleteInstance(String instanceId, Boolean relatedReleaseFlag)Delete a bci instance with the specified options.GetInstanceResponsegetInstance(GetInstanceRequest request)Get the bci instance with the specified options.GetInstanceResponsegetInstance(String instanceId)Get the bci instance with the specified options.ListInstancesResponselistInstances()Get the bci instance with the specified options.ListInstancesResponselistInstances(ListInstancesRequest request)Get the bci instance with the specified options.-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
BciClient
public BciClient()
Constructs a new client to invoke service methods on network.
-
BciClient
public BciClient(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).
-
-
方法详细资料
-
createInstance
public CreateInstanceResponse createInstance(CreateInstanceRequest request) throws BceClientException
Create a bci instance 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 a bci instance.- 返回:
- List of bci instanceId newly created
- 抛出:
BceClientException
-
deleteInstance
public DeleteInstanceResponse deleteInstance(String instanceId) throws BceClientException
Describe a bci instance with the specified options.- 参数:
instanceId-- 返回:
- DeleteInstanceResponse
- 抛出:
BceClientException
-
deleteInstance
public DeleteInstanceResponse deleteInstance(String instanceId, Boolean relatedReleaseFlag) throws BceClientException
Delete a bci instance with the specified options.- 参数:
instanceId-relatedReleaseFlag-- 返回:
- DeleteInstanceResponse
- 抛出:
BceClientException
-
batchDeleteInstance
public DeleteInstanceResponse batchDeleteInstance(DeleteInstanceRequest request) throws BceClientException
batch delete bci instance with the specified options. You must fill the field of clientToken,which is especially for keeping idempotent.- 参数:
request- The request containing all options for batch deleting bci instance.- 返回:
- List of bci instanceId newly deleted DeleteInstanceResponse void
- 抛出:
BceClientException
-
getInstance
public GetInstanceResponse getInstance(String instanceId) throws BceClientException
Get the bci instance with the specified options.- 参数:
String- instanceId- 返回:
- GetInstanceResponse
- 抛出:
BceClientException
-
getInstance
public GetInstanceResponse getInstance(GetInstanceRequest request) throws BceClientException
Get the bci instance with the specified options.- 参数:
GetInstanceRequest- request- 返回:
- GetInstanceResponse
- 抛出:
BceClientException
-
listInstances
public ListInstancesResponse listInstances() throws BceClientException
Get the bci instance with the specified options.- 参数:
String- instanceId- 返回:
- GetInstanceResponse
- 抛出:
BceClientException
-
listInstances
public ListInstancesResponse listInstances(ListInstancesRequest request) throws BceClientException
Get the bci instance with the specified options.- 参数:
ListInstancesRequest- request- 返回:
- GetInstanceResponse
- 抛出:
BceClientException
-
-