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 |
|---|---|
void |
addKeyFrameDesc(String instanceId,
KeyFrameDescAddRequest keyFrameDescAddRequest)
add keyframe for workflowInstance
|
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.
|
MatlibTaskResponse |
createDraft(MatlibTaskRequest matlibTaskRequest)
create draft
|
MatlibConfigBaseResponse |
createMatlibConfig(MatlibConfigBaseRequest baseRequest)
Create matlib config.
|
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.
|
VideoEditCreateResponse |
createVideoEdit(VideoEditCreateRequest videoEditCreateRequest)
create a task of video edit
The cmd Object in VideoEditCreateRequest
1> do not need to modify it by your self, you only put the json string to Map
|
VideoGenerationResponse |
createVideoGenerationTask(VideoGenerationRequest videoGenerationRequest)
create a video with materials and subtitles
|
WorkflowBaseResponse |
createWorkflow(WorkflowCreateRequest workflowCreateRequest)
Create workflow with specified parameter.
|
MaterialBaseResponse |
deleteMaterial(String materialId)
Delete material from material library.
|
MaterialBaseResponse |
deleteMaterialPreset(String id)
Delete material from material library.
|
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.
|
ListByPageResponse<MatlibTaskGetResponse> |
getDraftList(DraftListRequest listRequest)
List all of the draft.
|
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.
|
MaterialGetResponse |
getMaterial(String materialId)
Get material from material library.
|
MaterialPresetGetResponse |
getMaterialPreset(String id)
Get material preset from material library.
|
MatlibConfigGetResponse |
getMatlibConfig()
Get matlib config.
|
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.
|
GetDraftResponse |
getSingleDraft(long id)
Get a single draft.
|
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.
|
VideoEditPollingResponse |
pollingVideoEdit(long editId)
get edit job status
|
MediaProcessResponse |
processMedia(MediaProcessRequest processRequest)
Process media with specified processing media request.
|
KeyFrameDescGetResponse |
queryKeyFrameDescList(String instanceId)
get keyframe list from the transcoding task or no transcoding task in the instance
|
KeyFrameUrlResponse |
queryKeyFrameUrlList(String instanceId)
get target bos key's preSign url
|
MaterialSearchResponse |
searchMaterial(MaterialSearchRequest materialSearchRequest)
Search material from material library.
|
MaterialPresetSearchResponse |
searchMaterialPreset(MaterialPresetSearchRequest materialPresetSearchRequest)
Search material preset from material library.
|
Text2AudioResponse |
text2Audio(Text2AudioRequest text2AudioRequest)
Transfer a list of text to audio.
|
MediaBaseResponse |
unbanMedia(MediaBaseRequest unbanRequest)
Unban media with specified unbanning media request.
|
MediaBaseResponse |
unbanMedia(String mediaId)
Unban media with specified media id.
|
void |
updateDraft(long draftId,
MatlibTaskRequest matlibTaskRequest)
update draft
|
MatlibConfigBaseResponse |
updateMatlibConfig(MatlibConfigBaseRequest baseRequest)
Update matlib config.
|
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.
|
MatlibUploadResponse |
upload2Material(MatlibUploadRequest matlibUploadRequest)
Upload media to material library.
|
MaterialPresetUploadResponse |
uploadMaterialPreset(String type,
MatlibUploadRequest matlibUploadRequest)
Upload media preset to material library.
|
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, 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 namepublic MatlibUploadResponse upload2Material(MatlibUploadRequest matlibUploadRequest)
matlibUploadRequest - The uploading requestpublic MaterialGetResponse getMaterial(String materialId)
materialId - The material idpublic MaterialBaseResponse deleteMaterial(String materialId)
materialId - The material idpublic MaterialSearchResponse searchMaterial(MaterialSearchRequest materialSearchRequest)
materialSearchRequest - search parameterspublic MaterialPresetUploadResponse uploadMaterialPreset(String type, MatlibUploadRequest matlibUploadRequest)
matlibUploadRequest - The uploading requestpublic MaterialPresetGetResponse getMaterialPreset(String id)
id - The material preset idpublic MaterialBaseResponse deleteMaterialPreset(String id)
id - The material preset idpublic MaterialPresetSearchResponse searchMaterialPreset(MaterialPresetSearchRequest materialPresetSearchRequest)
materialPresetSearchRequest - search parameterspublic MatlibConfigBaseResponse createMatlibConfig(MatlibConfigBaseRequest baseRequest)
baseRequest - The creating matlib config request.public MatlibConfigBaseResponse updateMatlibConfig(MatlibConfigBaseRequest baseRequest)
baseRequest - The updating matlib config request.public MatlibConfigGetResponse getMatlibConfig()
public Text2AudioResponse text2Audio(Text2AudioRequest text2AudioRequest)
text2AudioRequest - The text to audio requestpublic VideoEditCreateResponse createVideoEdit(VideoEditCreateRequest videoEditCreateRequest)
videoEditCreateRequest - public VideoEditPollingResponse pollingVideoEdit(long editId)
editId - public VideoGenerationResponse createVideoGenerationTask(VideoGenerationRequest videoGenerationRequest)
videoGenerationRequest - videoGenerationResponsepublic KeyFrameDescGetResponse queryKeyFrameDescList(String instanceId)
instanceId - workflowInstanceIdpublic void addKeyFrameDesc(String instanceId, KeyFrameDescAddRequest keyFrameDescAddRequest)
instanceId - workflowInstanceIdkeyFrameDescAddRequest - keyframe descpublic KeyFrameUrlResponse queryKeyFrameUrlList(String instanceId)
instanceId - workflowInstanceIdpublic MatlibTaskResponse createDraft(MatlibTaskRequest matlibTaskRequest)
matlibTaskRequest - public void updateDraft(long draftId,
MatlibTaskRequest matlibTaskRequest)
public ListByPageResponse<MatlibTaskGetResponse> getDraftList(DraftListRequest listRequest)
public GetDraftResponse getSingleDraft(long id)
Copyright © 2024. All rights reserved.