public class EipBpClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
EipBpClient() |
EipBpClient(BceClientConfiguration clientConfiguration)
Constructs a new InstanceClient to invoke service methods on eipbp instance.
|
| Modifier and Type | Method and Description |
|---|---|
CreateEipBpResponse |
createEipBp(CreateEipBpRequest request)
Create an eipbp with the specified options.
|
protected void |
fillPayload(InternalRequest internalRequest,
AbstractBceRequest bceRequest)
the method to fill the internalRequest's content field with bceRequest
only support HttpMethodName.POST or HttpMethodName.PUT
|
EipBpDetailResponse |
getEipBpDetail(GetEipBpRequest request)
Get detail of the eipbp givened id.
|
EipBpDetailResponse |
getEipBpDetail(String id)
Get detail of the eipbp givened id.
|
ListEipBpsResponse |
listEipBps()
Get a list of eipbps owned by the authenticated user.
|
ListEipBpsResponse |
listEipBps(ListEipBpsRequest request)
Get a list of eipbps owned by the authenticated user and specified conditions.
|
ListEipBpsResponse |
listEipBps(String id,
String name,
String bindType)
Get a list of eipbps owned by the authenticated user and specified conditions.
|
ListEipBpsResponse |
listEipBps(String id,
String name,
String bindType,
String type)
Get a list of eipbps owned by the authenticated user and specified conditions.
|
void |
releaseEipBp(ReleaseEipBpRequest request)
release the eipbp(delete operation).
|
void |
releaseEipBp(String id)
release the eipbp(delete operation).
|
void |
renameEipBp(String id,
String name)
Rename eipbp.
|
void |
renameEipBp(UpdateEipBpNameRequest request)
Rename eipbp.
|
void |
resizeEipBp(ResizeEipBpRequest request)
Resizing eipbp.
|
void |
resizeEipBp(String id,
Integer bandwidthInMbps)
Resizing eipbp.
|
void |
updateAutoReleaseTime(String id,
String autoReleaseTime)
Update eipbp's autoReleaseTime.
|
void |
updateAutoReleaseTime(UpdateEipBpAutoReleaseTimeRequest request)
Update eipbp's autoReleaseTime.
|
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic EipBpClient()
public EipBpClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The BCE client configuration options.public CreateEipBpResponse createEipBp(CreateEipBpRequest request)
request - The request containing all options for creating an eipbp.public void resizeEipBp(ResizeEipBpRequest request)
request - eipbp id & newBandwidthInMbps must be provided.public void resizeEipBp(String id, Integer bandwidthInMbps)
id - eipbp id to be resized.bandwidthInMbps - specify new bandwidth in Mbps for eipbp.public EipBpDetailResponse getEipBpDetail(GetEipBpRequest request)
request - The request containing eipbp id to query.public EipBpDetailResponse getEipBpDetail(String id)
id - The eipbp id to query.public ListEipBpsResponse listEipBps(ListEipBpsRequest request)
request - The request containing all options for query.public ListEipBpsResponse listEipBps()
public ListEipBpsResponse listEipBps(String id, String name, String bindType)
id - eipbp's id.name - eipbp's name.bindType - eipbp's bindType, eip or eipgroup.public ListEipBpsResponse listEipBps(String id, String name, String bindType, String type)
id - eipbp's id.name - eipbp's name.bindType - eipbp's bindType, eip or eipgroup.type - eipbp's type, BandwidthPackage or AccelerationPackage.public void renameEipBp(UpdateEipBpNameRequest request)
request - Eipbp id & name must be provided.public void renameEipBp(String id, String name)
id - eipbp's id.name - eipbp's new name.public void updateAutoReleaseTime(UpdateEipBpAutoReleaseTimeRequest request)
request - Eipbp id & autoReleaseTime must be provided, the autoReleaseTime must be in UTC format.public void updateAutoReleaseTime(String id, String autoReleaseTime)
id - eipbp's id.autoReleaseTime - eipbp's autoReleaseTime, must be in UTC format.public void releaseEipBp(ReleaseEipBpRequest request)
request - The request containing all options for releasing eipbp.public void releaseEipBp(String id)
id - The id eipbp to be released.protected void fillPayload(InternalRequest internalRequest, AbstractBceRequest bceRequest)
internalRequest - A request object, populated with endpoint, resource path, ready for callers to populate
any additional headers or parameters, and execute.bceRequest - The original request, as created by the user.Copyright © 2024. All rights reserved.