public class BvwClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
BvwClient(BceClientConfiguration config)
Constructs a new bvw client using the client configuration to access bvw.
|
| Modifier and Type | Method and Description |
|---|---|
MediaBaseResponse |
banMedia(MediaBaseRequest banRequest)
Ban media with specified banning media request.
|
MediaBaseResponse |
banMedia(String mediaId)
Ban media with specified media id.
|
MediaBaseResponse |
batchDeleteMedia(List<String> mediaIds)
Batch delete media with specified media id list.
|
MediaBaseResponse |
batchDeleteMedia(MediaBatchDeleteRequest batchDeleteRequest)
Batch delete media with specified batch deleting media request.
|
NotificationBaseResponse |
createNotification(NotificationCreateRequest createRequest)
Create notification with specified creating notification request.
|
NotificationBaseResponse |
createNotification(String name,
String endpoint)
Create notification with specified parameters.(No authentication)
|
NotificationBaseResponse |
createNotification(String name,
String endpoint,
String token,
AuthType authType)
Create notification with specified parameters.
|
WorkflowBaseResponse |
createWorkflow(WorkflowCreateRequest workflowCreateRequest)
Create workflow with specified parameter.
|
MediaBaseResponse |
deleteMedia(MediaBaseRequest deleteRequest)
Delete media with specified deleting media request.
|
MediaBaseResponse |
deleteMedia(String mediaId)
Delete media with specified media id.
|
NotificationBaseResponse |
deleteNotification(NotificationBaseRequest deleteRequest)
Delete notification with specified deleting request.
|
NotificationBaseResponse |
deleteNotification(String name)
Delete notification with specified notification name.
|
WorkflowBaseResponse |
deleteWorkflow(String workflowName)
Delete workflow with specified workflow name.
|
WorkflowBaseResponse |
deleteWorkflow(WorkflowBaseRequest deleteRequest)
Get workflow with specified deleting workflow request.
|
NotificationBaseResponse |
disableNotification(NotificationBaseRequest disableRequest)
Disable notification with specified enabling request.
|
NotificationBaseResponse |
disableNotification(String name)
Enable notification with specified notification name.
|
WorkflowBaseResponse |
disableWorkflow(String workflowName)
Disable workflow with specified workflow name.
|
WorkflowBaseResponse |
disableWorkflow(WorkflowBaseRequest disableRequest)
Disable workflow with specified enabling workflow request.
|
NotificationBaseResponse |
enableNotification(NotificationBaseRequest enableRequest)
Enable notification with specified enabling request.
|
NotificationBaseResponse |
enableNotification(String name)
Enable notification with specified notification name.
|
WorkflowBaseResponse |
enableWorkflow(String workflowName)
Enable workflow with specified workflow name.
|
WorkflowBaseResponse |
enableWorkflow(WorkflowBaseRequest enableRequest)
Enable workflow with specified enabling workflow request.
|
InstanceGetResponse |
getInstance(InstanceBaseRequest getRequest)
Get instance with specified getting instance request.
|
InstanceGetResponse |
getInstance(String instanceId)
Get instance with specified instance id.
|
InstanceGetTaskUrlsResponse |
getInstanceTaskUrls(InstanceBaseRequest getRequest)
Get url resource from a instance with specified getting request.
|
InstanceGetTaskUrlsResponse |
getInstanceTaskUrls(String instanceId)
Get url resource from a instance with specified instance id.
|
MediaGetResponse |
getMedia(MediaBaseRequest getRequest)
Get media with specified getting media request.
|
MediaGetResponse |
getMedia(String mediaId)
Get media with specified media id.
|
MediaInstanceListResponse |
getMediaInstanceList(MediaBaseRequest getRequest)
Get instance list of media.
|
MediaInstanceListResponse |
getMediaInstanceList(String mediaId)
Get instance list of media.
|
NotificationGetResponse |
getNotification(NotificationBaseRequest getRequest)
Get notification with specified parameters.
|
NotificationGetResponse |
getNotification(String name)
Get notification with specified notification name.
|
TaskGetResponse |
getTask(String taskId)
Get task with specified task id.
|
TaskGetResponse |
getTask(TaskBaseRequest getRequest)
Get task with specified getting task request.
|
WorkflowGetResponse |
getWorkflow(String workflowName)
Get workflow with specified workflow name.
|
WorkflowGetResponse |
getWorkflow(WorkflowBaseRequest getRequest)
Get workflow with specified getting workflow request.
|
ListByPageResponse<MediaListResponse> |
listMedia(MediaListRequest listRequest)
List media with specified listing media request.
|
NotificationListResponse |
listNotification()
List all of the notifications.
|
NotificationListResponse |
listNotification(NotificationListRequest listRequest)
List notification with specified listing request.
|
NotificationListResponse |
listNotification(NotificationStatus status)
List notification with specified notification status.
|
ListByPageResponse<WorkflowListResponse> |
listWorkflow(WorkflowListRequest listRequest)
List workflow with specified listing workflow request.
|
MediaProcessResponse |
processMedia(MediaProcessRequest processRequest)
Process media with specified processing media request.
|
MediaBaseResponse |
unbanMedia(MediaBaseRequest unbanRequest)
Unban media with specified unbanning media request.
|
MediaBaseResponse |
unbanMedia(String mediaId)
Unban media with specified media id.
|
MediaBaseResponse |
updateMedia(MediaUpdateRequest updateRequest)
Update media with specified updating media request.
|
NotificationBaseResponse |
updateNotification(NotificationUpdateRequest updateRequest)
Update notification with specified updating request.
|
NotificationBaseResponse |
updateNotification(String name,
String endpoint)
Update notification with specified parameters.
|
NotificationBaseResponse |
updateNotification(String name,
String endpoint,
String token,
AuthType authType)
Update notification with specified parameters.
|
WorkflowBaseResponse |
updateWorkflow(WorkflowUpdateRequest updateRequest)
Update workflow with specified updating workflow request.
|
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic BvwClient(BceClientConfiguration config)
config - The bvw client configuration options controlling how this client
connects to bvw (e.g. proxy settings, retry counts, etc).public WorkflowBaseResponse createWorkflow(WorkflowCreateRequest workflowCreateRequest)
workflowCreateRequest - The creating workflow requestpublic WorkflowGetResponse getWorkflow(String workflowName)
workflowName - The workflow namepublic WorkflowGetResponse getWorkflow(WorkflowBaseRequest getRequest)
getRequest - The getting workflow requestpublic WorkflowBaseResponse deleteWorkflow(String workflowName)
workflowName - The workflow namepublic WorkflowBaseResponse deleteWorkflow(WorkflowBaseRequest deleteRequest)
deleteRequest - The deleting workflow requestpublic WorkflowBaseResponse updateWorkflow(WorkflowUpdateRequest updateRequest)
updateRequest - The updating workflow requestpublic ListByPageResponse<WorkflowListResponse> listWorkflow(WorkflowListRequest listRequest)
listRequest - The listing workflow requestpublic WorkflowBaseResponse enableWorkflow(WorkflowBaseRequest enableRequest)
enableRequest - Enabling workflow requestpublic WorkflowBaseResponse enableWorkflow(String workflowName)
workflowName - Workflow namepublic WorkflowBaseResponse disableWorkflow(WorkflowBaseRequest disableRequest)
disableRequest - Disabling workflow requestpublic WorkflowBaseResponse disableWorkflow(String workflowName)
workflowName - Workflow namepublic MediaProcessResponse processMedia(MediaProcessRequest processRequest)
processRequest - processing media requestpublic MediaGetResponse getMedia(MediaBaseRequest getRequest)
getRequest - getting media requestpublic MediaGetResponse getMedia(String mediaId)
mediaId - Media idpublic MediaBaseResponse updateMedia(MediaUpdateRequest updateRequest)
updateRequest - The updating media requestpublic MediaInstanceListResponse getMediaInstanceList(MediaBaseRequest getRequest)
getRequest - The getting instance list of media requestpublic MediaInstanceListResponse getMediaInstanceList(String mediaId)
mediaId - The media idpublic MediaBaseResponse banMedia(MediaBaseRequest banRequest)
banRequest - The banning media requestpublic MediaBaseResponse banMedia(String mediaId)
mediaId - The media idpublic MediaBaseResponse unbanMedia(MediaBaseRequest unbanRequest)
unbanRequest - The unbanning media requestpublic MediaBaseResponse unbanMedia(String mediaId)
mediaId - The media idpublic ListByPageResponse<MediaListResponse> listMedia(MediaListRequest listRequest)
listRequest - The listing media requestpublic MediaBaseResponse deleteMedia(MediaBaseRequest deleteRequest)
deleteRequest - The deleting media requestpublic MediaBaseResponse deleteMedia(String mediaId)
mediaId - The media idpublic MediaBaseResponse batchDeleteMedia(MediaBatchDeleteRequest batchDeleteRequest)
batchDeleteRequest - The batch deleting media requestpublic MediaBaseResponse batchDeleteMedia(List<String> mediaIds)
mediaIds - The media id listpublic InstanceGetResponse getInstance(InstanceBaseRequest getRequest)
getRequest - The getting instance requestpublic InstanceGetResponse getInstance(String instanceId)
instanceId - The instance idpublic InstanceGetTaskUrlsResponse getInstanceTaskUrls(InstanceBaseRequest getRequest)
getRequest - The getting instance task urls requestpublic InstanceGetTaskUrlsResponse getInstanceTaskUrls(String instanceId)
instanceId - The instance idpublic TaskGetResponse getTask(TaskBaseRequest getRequest)
getRequest - The getting task requestpublic TaskGetResponse getTask(String taskId)
taskId - The task idpublic NotificationBaseResponse createNotification(NotificationCreateRequest createRequest)
createRequest - The creating notification requestpublic NotificationBaseResponse createNotification(String name, String endpoint)
name - The notification nameendpoint - The notification endpointpublic NotificationBaseResponse createNotification(String name, String endpoint, String token, AuthType authType)
name - The notification nameendpoint - The notification endpointtoken - The notification authentication tokenauthType - The notification auth typepublic NotificationGetResponse getNotification(NotificationBaseRequest getRequest)
getRequest - The getting notification requestpublic NotificationGetResponse getNotification(String name)
name - The notification namepublic NotificationListResponse listNotification(NotificationListRequest listRequest)
listRequest - The listing notification request.public NotificationListResponse listNotification(NotificationStatus status)
status - The notification statuspublic NotificationListResponse listNotification()
public NotificationBaseResponse updateNotification(NotificationUpdateRequest updateRequest)
updateRequest - The updating notification requestpublic NotificationBaseResponse updateNotification(String name, String endpoint)
name - The notification nameendpoint - The notification endpoint to updatepublic NotificationBaseResponse updateNotification(String name, String endpoint, String token, AuthType authType)
name - The notification nameendpoint - The notification endpoint to updatetoken - The notification token to updateauthType - The notification authentication type to updatepublic NotificationBaseResponse enableNotification(NotificationBaseRequest enableRequest)
enableRequest - The enabling notification requestpublic NotificationBaseResponse enableNotification(String name)
name - The notification namepublic NotificationBaseResponse disableNotification(NotificationBaseRequest disableRequest)
disableRequest - The disabling notification requestpublic NotificationBaseResponse disableNotification(String name)
name - The notification namepublic NotificationBaseResponse deleteNotification(NotificationBaseRequest deleteRequest)
deleteRequest - The deleting notification requestpublic NotificationBaseResponse deleteNotification(String name)
name - The notification nameCopyright © 2020. All rights reserved.