com.baidubce.services.dcc
Class DccClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.dcc.DccClient

public class DccClient
extends AbstractBceClient

Provides the client for accessing the Baidu Dedicated Cloud Compute Service(dcc).


Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
DccClient()
          Constructs a new client to invoke service methods on dcc.
DccClient(BceClientConfiguration clientConfiguration)
          Constructs a new dcc client using the client configuration to access dcc.
 
Method Summary
 CreateDccResponse createDcc(CreateDccRequest request)
          Create a dcc host with specified options.
 CreateDccInstanceResponse createDccInstance(CreateDccInstanceRequest request)
          Create a dcc instance with specified options.
 CreateDccInstanceResponse createDccInstanceWithEncryption(CreateDccInstanceRequest request)
          Create a dcc instance with specified options.
 void dccBindTags(DccBindTagsRequest request)
          Bind tags to dcc.
 DccModel dccDetail(DccDetailRequest request)
          Query detail information of a dedicated host.
 ListDccResponse dccList(ListDccRequest request)
          Listing dcc hosts owned by the user.
 void dccRename(DccRenameRequest request)
          Renaming dcc instance.
 void dccUnbindTags(DccUnbindTagsRequest request)
          Unbind tags from dcc.
 
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

DccClient

public DccClient()
Constructs a new client to invoke service methods on dcc.


DccClient

public DccClient(BceClientConfiguration clientConfiguration)
Constructs a new dcc client using the client configuration to access dcc.

Parameters:
clientConfiguration - The dcc client configuration options controlling how this client connects to dcc (e.g. proxy settings, retry counts, etc).
Method Detail

createDcc

public CreateDccResponse createDcc(CreateDccRequest request)
Create a dcc host with specified options. You must fill the field of clientToken,which is especially for keeping idempotent.

Parameters:
request - CreateDccRequest
Returns:
CreateDccResponse

createDccInstance

public CreateDccInstanceResponse createDccInstance(CreateDccInstanceRequest request)
Create a dcc instance with specified options.

Parameters:
request - CreateDccInstanceRequest
Returns:
CreateDccInstanceResponse

createDccInstanceWithEncryption

public CreateDccInstanceResponse createDccInstanceWithEncryption(CreateDccInstanceRequest request)
Create a dcc instance with specified options. This interface will encrypt the password

Parameters:
request - CreateDccInstanceRequest
Returns:
CreateDccInstanceResponse

dccBindTags

public void dccBindTags(DccBindTagsRequest request)
Bind tags to dcc. Tags will also be bound to instances created on the dcc.

Parameters:
request - DccBindTagsRequest

dccUnbindTags

public void dccUnbindTags(DccUnbindTagsRequest request)
Unbind tags from dcc.

Parameters:
request - DccUnbindTagsRequest

dccRename

public void dccRename(DccRenameRequest request)
Renaming dcc instance.

Parameters:
request -

dccDetail

public DccModel dccDetail(DccDetailRequest request)
Query detail information of a dedicated host.

Parameters:
request - DccDetailRequest
Returns:
DccModel

dccList

public ListDccResponse dccList(ListDccRequest request)
Listing dcc hosts owned by the user. zoneName can be specified in the request to list dcc in the target zone.

Parameters:
request - ListDccRequest
Returns:
ListDccResponse


Copyright © 2020. All rights reserved.