Documentation ¶
Index ¶
- func GenReqDefForCancelAssetTranscodeTask() *def.HttpRequestDef
- func GenReqDefForCancelExtractAudioTask() *def.HttpRequestDef
- func GenReqDefForCheckMd5Duplication() *def.HttpRequestDef
- func GenReqDefForConfirmAssetUpload() *def.HttpRequestDef
- func GenReqDefForConfirmImageUpload() *def.HttpRequestDef
- func GenReqDefForCreateAssetByFileUpload() *def.HttpRequestDef
- func GenReqDefForCreateAssetCategory() *def.HttpRequestDef
- func GenReqDefForCreateAssetProcessTask() *def.HttpRequestDef
- func GenReqDefForCreateAssetReviewTask() *def.HttpRequestDef
- func GenReqDefForCreateExtractAudioTask() *def.HttpRequestDef
- func GenReqDefForCreatePreheatingAsset() *def.HttpRequestDef
- func GenReqDefForCreateTakeOverTask() *def.HttpRequestDef
- func GenReqDefForCreateTemplateGroup() *def.HttpRequestDef
- func GenReqDefForCreateWatermarkTemplate() *def.HttpRequestDef
- func GenReqDefForDeleteAssetCategory() *def.HttpRequestDef
- func GenReqDefForDeleteAssets() *def.HttpRequestDef
- func GenReqDefForDeleteTemplateGroup() *def.HttpRequestDef
- func GenReqDefForDeleteWatermarkTemplate() *def.HttpRequestDef
- func GenReqDefForListAssetCategory() *def.HttpRequestDef
- func GenReqDefForListAssetList() *def.HttpRequestDef
- func GenReqDefForListTakeOverTask() *def.HttpRequestDef
- func GenReqDefForListTemplateGroup() *def.HttpRequestDef
- func GenReqDefForListTopStatistics() *def.HttpRequestDef
- func GenReqDefForListWatermarkTemplate() *def.HttpRequestDef
- func GenReqDefForPublishAssetFromObs() *def.HttpRequestDef
- func GenReqDefForPublishAssets() *def.HttpRequestDef
- func GenReqDefForShowAssetCipher() *def.HttpRequestDef
- func GenReqDefForShowAssetDetail() *def.HttpRequestDef
- func GenReqDefForShowAssetMeta() *def.HttpRequestDef
- func GenReqDefForShowAssetTempAuthority() *def.HttpRequestDef
- func GenReqDefForShowCdnStatistics() *def.HttpRequestDef
- func GenReqDefForShowPreheatingAsset() *def.HttpRequestDef
- func GenReqDefForShowTakeOverAssetDetails() *def.HttpRequestDef
- func GenReqDefForShowTakeOverTaskDetails() *def.HttpRequestDef
- func GenReqDefForShowVodStatistics() *def.HttpRequestDef
- func GenReqDefForUnpublishAssets() *def.HttpRequestDef
- func GenReqDefForUpdateAsset() *def.HttpRequestDef
- func GenReqDefForUpdateAssetCategory() *def.HttpRequestDef
- func GenReqDefForUpdateAssetMeta() *def.HttpRequestDef
- func GenReqDefForUpdateBucketAuthorized() *def.HttpRequestDef
- func GenReqDefForUpdateCoverByThumbnail() *def.HttpRequestDef
- func GenReqDefForUpdateTemplateGroup() *def.HttpRequestDef
- func GenReqDefForUpdateWatermarkTemplate() *def.HttpRequestDef
- func GenReqDefForUploadMetaDataByUrl() *def.HttpRequestDef
- func VodClientBuilder() *http_client.HcHttpClientBuilder
- type VodClient
- func (c *VodClient) CancelAssetTranscodeTask(request *model.CancelAssetTranscodeTaskRequest) (*model.CancelAssetTranscodeTaskResponse, error)
- func (c *VodClient) CancelExtractAudioTask(request *model.CancelExtractAudioTaskRequest) (*model.CancelExtractAudioTaskResponse, error)
- func (c *VodClient) CheckMd5Duplication(request *model.CheckMd5DuplicationRequest) (*model.CheckMd5DuplicationResponse, error)
- func (c *VodClient) ConfirmAssetUpload(request *model.ConfirmAssetUploadRequest) (*model.ConfirmAssetUploadResponse, error)
- func (c *VodClient) ConfirmImageUpload(request *model.ConfirmImageUploadRequest) (*model.ConfirmImageUploadResponse, error)
- func (c *VodClient) CreateAssetByFileUpload(request *model.CreateAssetByFileUploadRequest) (*model.CreateAssetByFileUploadResponse, error)
- func (c *VodClient) CreateAssetCategory(request *model.CreateAssetCategoryRequest) (*model.CreateAssetCategoryResponse, error)
- func (c *VodClient) CreateAssetProcessTask(request *model.CreateAssetProcessTaskRequest) (*model.CreateAssetProcessTaskResponse, error)
- func (c *VodClient) CreateAssetReviewTask(request *model.CreateAssetReviewTaskRequest) (*model.CreateAssetReviewTaskResponse, error)
- func (c *VodClient) CreateExtractAudioTask(request *model.CreateExtractAudioTaskRequest) (*model.CreateExtractAudioTaskResponse, error)
- func (c *VodClient) CreatePreheatingAsset(request *model.CreatePreheatingAssetRequest) (*model.CreatePreheatingAssetResponse, error)
- func (c *VodClient) CreateTakeOverTask(request *model.CreateTakeOverTaskRequest) (*model.CreateTakeOverTaskResponse, error)
- func (c *VodClient) CreateTemplateGroup(request *model.CreateTemplateGroupRequest) (*model.CreateTemplateGroupResponse, error)
- func (c *VodClient) CreateWatermarkTemplate(request *model.CreateWatermarkTemplateRequest) (*model.CreateWatermarkTemplateResponse, error)
- func (c *VodClient) DeleteAssetCategory(request *model.DeleteAssetCategoryRequest) (*model.DeleteAssetCategoryResponse, error)
- func (c *VodClient) DeleteAssets(request *model.DeleteAssetsRequest) (*model.DeleteAssetsResponse, error)
- func (c *VodClient) DeleteTemplateGroup(request *model.DeleteTemplateGroupRequest) (*model.DeleteTemplateGroupResponse, error)
- func (c *VodClient) DeleteWatermarkTemplate(request *model.DeleteWatermarkTemplateRequest) (*model.DeleteWatermarkTemplateResponse, error)
- func (c *VodClient) ListAssetCategory(request *model.ListAssetCategoryRequest) (*model.ListAssetCategoryResponse, error)
- func (c *VodClient) ListAssetList(request *model.ListAssetListRequest) (*model.ListAssetListResponse, error)
- func (c *VodClient) ListTakeOverTask(request *model.ListTakeOverTaskRequest) (*model.ListTakeOverTaskResponse, error)
- func (c *VodClient) ListTemplateGroup(request *model.ListTemplateGroupRequest) (*model.ListTemplateGroupResponse, error)
- func (c *VodClient) ListTopStatistics(request *model.ListTopStatisticsRequest) (*model.ListTopStatisticsResponse, error)
- func (c *VodClient) ListWatermarkTemplate(request *model.ListWatermarkTemplateRequest) (*model.ListWatermarkTemplateResponse, error)
- func (c *VodClient) PublishAssetFromObs(request *model.PublishAssetFromObsRequest) (*model.PublishAssetFromObsResponse, error)
- func (c *VodClient) PublishAssets(request *model.PublishAssetsRequest) (*model.PublishAssetsResponse, error)
- func (c *VodClient) ShowAssetCipher(request *model.ShowAssetCipherRequest) (*model.ShowAssetCipherResponse, error)
- func (c *VodClient) ShowAssetDetail(request *model.ShowAssetDetailRequest) (*model.ShowAssetDetailResponse, error)
- func (c *VodClient) ShowAssetMeta(request *model.ShowAssetMetaRequest) (*model.ShowAssetMetaResponse, error)
- func (c *VodClient) ShowAssetTempAuthority(request *model.ShowAssetTempAuthorityRequest) (*model.ShowAssetTempAuthorityResponse, error)
- func (c *VodClient) ShowCdnStatistics(request *model.ShowCdnStatisticsRequest) (*model.ShowCdnStatisticsResponse, error)
- func (c *VodClient) ShowPreheatingAsset(request *model.ShowPreheatingAssetRequest) (*model.ShowPreheatingAssetResponse, error)
- func (c *VodClient) ShowTakeOverAssetDetails(request *model.ShowTakeOverAssetDetailsRequest) (*model.ShowTakeOverAssetDetailsResponse, error)
- func (c *VodClient) ShowTakeOverTaskDetails(request *model.ShowTakeOverTaskDetailsRequest) (*model.ShowTakeOverTaskDetailsResponse, error)
- func (c *VodClient) ShowVodStatistics(request *model.ShowVodStatisticsRequest) (*model.ShowVodStatisticsResponse, error)
- func (c *VodClient) UnpublishAssets(request *model.UnpublishAssetsRequest) (*model.UnpublishAssetsResponse, error)
- func (c *VodClient) UpdateAsset(request *model.UpdateAssetRequest) (*model.UpdateAssetResponse, error)
- func (c *VodClient) UpdateAssetCategory(request *model.UpdateAssetCategoryRequest) (*model.UpdateAssetCategoryResponse, error)
- func (c *VodClient) UpdateAssetMeta(request *model.UpdateAssetMetaRequest) (*model.UpdateAssetMetaResponse, error)
- func (c *VodClient) UpdateBucketAuthorized(request *model.UpdateBucketAuthorizedRequest) (*model.UpdateBucketAuthorizedResponse, error)
- func (c *VodClient) UpdateCoverByThumbnail(request *model.UpdateCoverByThumbnailRequest) (*model.UpdateCoverByThumbnailResponse, error)
- func (c *VodClient) UpdateTemplateGroup(request *model.UpdateTemplateGroupRequest) (*model.UpdateTemplateGroupResponse, error)
- func (c *VodClient) UpdateWatermarkTemplate(request *model.UpdateWatermarkTemplateRequest) (*model.UpdateWatermarkTemplateResponse, error)
- func (c *VodClient) UploadMetaDataByUrl(request *model.UploadMetaDataByUrlRequest) (*model.UploadMetaDataByUrlResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForCancelAssetTranscodeTask ¶
func GenReqDefForCancelAssetTranscodeTask() *def.HttpRequestDef
func GenReqDefForCancelExtractAudioTask ¶
func GenReqDefForCancelExtractAudioTask() *def.HttpRequestDef
func GenReqDefForCheckMd5Duplication ¶
func GenReqDefForCheckMd5Duplication() *def.HttpRequestDef
func GenReqDefForConfirmAssetUpload ¶
func GenReqDefForConfirmAssetUpload() *def.HttpRequestDef
func GenReqDefForConfirmImageUpload ¶
func GenReqDefForConfirmImageUpload() *def.HttpRequestDef
func GenReqDefForCreateAssetByFileUpload ¶
func GenReqDefForCreateAssetByFileUpload() *def.HttpRequestDef
func GenReqDefForCreateAssetCategory ¶
func GenReqDefForCreateAssetCategory() *def.HttpRequestDef
func GenReqDefForCreateAssetProcessTask ¶
func GenReqDefForCreateAssetProcessTask() *def.HttpRequestDef
func GenReqDefForCreateAssetReviewTask ¶
func GenReqDefForCreateAssetReviewTask() *def.HttpRequestDef
func GenReqDefForCreateExtractAudioTask ¶
func GenReqDefForCreateExtractAudioTask() *def.HttpRequestDef
func GenReqDefForCreatePreheatingAsset ¶
func GenReqDefForCreatePreheatingAsset() *def.HttpRequestDef
func GenReqDefForCreateTakeOverTask ¶
func GenReqDefForCreateTakeOverTask() *def.HttpRequestDef
func GenReqDefForCreateTemplateGroup ¶
func GenReqDefForCreateTemplateGroup() *def.HttpRequestDef
func GenReqDefForCreateWatermarkTemplate ¶
func GenReqDefForCreateWatermarkTemplate() *def.HttpRequestDef
func GenReqDefForDeleteAssetCategory ¶
func GenReqDefForDeleteAssetCategory() *def.HttpRequestDef
func GenReqDefForDeleteAssets ¶
func GenReqDefForDeleteAssets() *def.HttpRequestDef
func GenReqDefForDeleteTemplateGroup ¶
func GenReqDefForDeleteTemplateGroup() *def.HttpRequestDef
func GenReqDefForDeleteWatermarkTemplate ¶
func GenReqDefForDeleteWatermarkTemplate() *def.HttpRequestDef
func GenReqDefForListAssetCategory ¶
func GenReqDefForListAssetCategory() *def.HttpRequestDef
func GenReqDefForListAssetList ¶
func GenReqDefForListAssetList() *def.HttpRequestDef
func GenReqDefForListTakeOverTask ¶
func GenReqDefForListTakeOverTask() *def.HttpRequestDef
func GenReqDefForListTemplateGroup ¶
func GenReqDefForListTemplateGroup() *def.HttpRequestDef
func GenReqDefForListTopStatistics ¶
func GenReqDefForListTopStatistics() *def.HttpRequestDef
func GenReqDefForListWatermarkTemplate ¶
func GenReqDefForListWatermarkTemplate() *def.HttpRequestDef
func GenReqDefForPublishAssetFromObs ¶
func GenReqDefForPublishAssetFromObs() *def.HttpRequestDef
func GenReqDefForPublishAssets ¶
func GenReqDefForPublishAssets() *def.HttpRequestDef
func GenReqDefForShowAssetCipher ¶
func GenReqDefForShowAssetCipher() *def.HttpRequestDef
func GenReqDefForShowAssetDetail ¶
func GenReqDefForShowAssetDetail() *def.HttpRequestDef
func GenReqDefForShowAssetMeta ¶
func GenReqDefForShowAssetMeta() *def.HttpRequestDef
func GenReqDefForShowAssetTempAuthority ¶
func GenReqDefForShowAssetTempAuthority() *def.HttpRequestDef
func GenReqDefForShowCdnStatistics ¶
func GenReqDefForShowCdnStatistics() *def.HttpRequestDef
func GenReqDefForShowPreheatingAsset ¶
func GenReqDefForShowPreheatingAsset() *def.HttpRequestDef
func GenReqDefForShowTakeOverAssetDetails ¶
func GenReqDefForShowTakeOverAssetDetails() *def.HttpRequestDef
func GenReqDefForShowTakeOverTaskDetails ¶
func GenReqDefForShowTakeOverTaskDetails() *def.HttpRequestDef
func GenReqDefForShowVodStatistics ¶
func GenReqDefForShowVodStatistics() *def.HttpRequestDef
func GenReqDefForUnpublishAssets ¶
func GenReqDefForUnpublishAssets() *def.HttpRequestDef
func GenReqDefForUpdateAsset ¶
func GenReqDefForUpdateAsset() *def.HttpRequestDef
func GenReqDefForUpdateAssetCategory ¶
func GenReqDefForUpdateAssetCategory() *def.HttpRequestDef
func GenReqDefForUpdateAssetMeta ¶
func GenReqDefForUpdateAssetMeta() *def.HttpRequestDef
func GenReqDefForUpdateBucketAuthorized ¶
func GenReqDefForUpdateBucketAuthorized() *def.HttpRequestDef
func GenReqDefForUpdateCoverByThumbnail ¶
func GenReqDefForUpdateCoverByThumbnail() *def.HttpRequestDef
func GenReqDefForUpdateTemplateGroup ¶
func GenReqDefForUpdateTemplateGroup() *def.HttpRequestDef
func GenReqDefForUpdateWatermarkTemplate ¶
func GenReqDefForUpdateWatermarkTemplate() *def.HttpRequestDef
func GenReqDefForUploadMetaDataByUrl ¶
func GenReqDefForUploadMetaDataByUrl() *def.HttpRequestDef
func VodClientBuilder ¶
func VodClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type VodClient ¶
type VodClient struct {
HcClient *http_client.HcHttpClient
}
func NewVodClient ¶
func NewVodClient(hcClient *http_client.HcHttpClient) *VodClient
func (*VodClient) CancelAssetTranscodeTask ¶
func (c *VodClient) CancelAssetTranscodeTask(request *model.CancelAssetTranscodeTaskRequest) (*model.CancelAssetTranscodeTaskResponse, error)
取消媒资转码任务,只能取消排队中的转码任务。
func (*VodClient) CancelExtractAudioTask ¶
func (c *VodClient) CancelExtractAudioTask(request *model.CancelExtractAudioTaskRequest) (*model.CancelExtractAudioTaskResponse, error)
取消提取音频任务,只有排队中的提取音频任务才可以取消。
func (*VodClient) CheckMd5Duplication ¶
func (c *VodClient) CheckMd5Duplication(request *model.CheckMd5DuplicationRequest) (*model.CheckMd5DuplicationResponse, error)
校验媒资文件是否已存储于视频点播服务中。
func (*VodClient) ConfirmAssetUpload ¶
func (c *VodClient) ConfirmAssetUpload(request *model.ConfirmAssetUploadRequest) (*model.ConfirmAssetUploadResponse, error)
媒资分段上传完成后,需要调用此接口通知点播服务媒资上传的状态,表示媒资上传创建完成。
func (*VodClient) ConfirmImageUpload ¶
func (c *VodClient) ConfirmImageUpload(request *model.ConfirmImageUploadRequest) (*model.ConfirmImageUploadResponse, error)
确认水印图片上传状态。
func (*VodClient) CreateAssetByFileUpload ¶
func (c *VodClient) CreateAssetByFileUpload(request *model.CreateAssetByFileUploadRequest) (*model.CreateAssetByFileUploadResponse, error)
调用该接口创建媒资时,需要将对应的媒资文件上传到点播服务的OBS桶中。 若上传的单媒资文件大小小于20M,则可以直接用PUT方法对该接口返回的地址进行上传。具体使用方法请参考[示例1:媒资上传(20M以下)](https://support.huaweicloud.com/api-vod/vod_04_0195.html)。 若上传的单个媒资大小大于20M,则需要进行二进制流分割后上传,该接口的具体使用方法请参考[示例2:媒资分段上传(20M以上)](https://support.huaweicloud.com/api-vod/vod_04_0216.html)。
func (*VodClient) CreateAssetCategory ¶
func (c *VodClient) CreateAssetCategory(request *model.CreateAssetCategoryRequest) (*model.CreateAssetCategoryResponse, error)
创建媒资分类。
func (*VodClient) CreateAssetProcessTask ¶
func (c *VodClient) CreateAssetProcessTask(request *model.CreateAssetProcessTaskRequest) (*model.CreateAssetProcessTaskResponse, error)
实现视频转码、截图、加密等处理。既可以同时启动多种操作,也可以只启动一种操作。
func (*VodClient) CreateAssetReviewTask ¶
func (c *VodClient) CreateAssetReviewTask(request *model.CreateAssetReviewTaskRequest) (*model.CreateAssetReviewTaskResponse, error)
对上传的媒资进行审核。审核后,可以调用[查询媒资详细信息](https://support.huaweicloud.com/api-vod/vod_04_0202.html)接口查看审核结果。
func (*VodClient) CreateExtractAudioTask ¶
func (c *VodClient) CreateExtractAudioTask(request *model.CreateExtractAudioTaskRequest) (*model.CreateExtractAudioTaskResponse, error)
用于从已有视频文件中提取音频。
func (*VodClient) CreatePreheatingAsset ¶
func (c *VodClient) CreatePreheatingAsset(request *model.CreatePreheatingAssetRequest) (*model.CreatePreheatingAssetResponse, error)
媒资发布后,可通过指定媒资ID或URL向CDN预热。用户初次请求时,将由CDN节点提供请求媒资,加快用户下载缓存时间,提高用户体验。
func (*VodClient) CreateTakeOverTask ¶
func (c *VodClient) CreateTakeOverTask(request *model.CreateTakeOverTaskRequest) (*model.CreateTakeOverTaskResponse, error)
通过存量托管的方式,将已存储在OBS桶中的音视频文件同步到点播服务。 OBS托管方式分为增量托管和存量托管,增量托管暂只支持通过视频点播控制台配置,配置后,若OBS有新增音视频文件,则会自动同步到点播服务中,具体请参见[增量托管](https://support.huaweicloud.com/usermanual-vod/vod010032.html)。两个托管方式都需要先将对应的OBS桶授权给点播服务,具体请参见[桶授权](https://support.huaweicloud.com/usermanual-vod/vod010031.html)。
func (*VodClient) CreateTemplateGroup ¶
func (c *VodClient) CreateTemplateGroup(request *model.CreateTemplateGroupRequest) (*model.CreateTemplateGroupResponse, error)
创建自定义转码模板组。
func (*VodClient) CreateWatermarkTemplate ¶
func (c *VodClient) CreateWatermarkTemplate(request *model.CreateWatermarkTemplateRequest) (*model.CreateWatermarkTemplateResponse, error)
创建水印模板。
func (*VodClient) DeleteAssetCategory ¶
func (c *VodClient) DeleteAssetCategory(request *model.DeleteAssetCategoryRequest) (*model.DeleteAssetCategoryResponse, error)
删除媒资分类。
func (*VodClient) DeleteAssets ¶
func (c *VodClient) DeleteAssets(request *model.DeleteAssetsRequest) (*model.DeleteAssetsResponse, error)
删除媒资。
func (*VodClient) DeleteTemplateGroup ¶
func (c *VodClient) DeleteTemplateGroup(request *model.DeleteTemplateGroupRequest) (*model.DeleteTemplateGroupResponse, error)
删除自定义转码模板组。
func (*VodClient) DeleteWatermarkTemplate ¶
func (c *VodClient) DeleteWatermarkTemplate(request *model.DeleteWatermarkTemplateRequest) (*model.DeleteWatermarkTemplateResponse, error)
删除水印模板
func (*VodClient) ListAssetCategory ¶
func (c *VodClient) ListAssetCategory(request *model.ListAssetCategoryRequest) (*model.ListAssetCategoryResponse, error)
查询指定分类信息,及其子分类(即下一级分类)的列表。
func (*VodClient) ListAssetList ¶
func (c *VodClient) ListAssetList(request *model.ListAssetListRequest) (*model.ListAssetListResponse, error)
查询媒资列表,列表中的每一条记录包含媒资的概要信息。
func (*VodClient) ListTakeOverTask ¶
func (c *VodClient) ListTakeOverTask(request *model.ListTakeOverTaskRequest) (*model.ListTakeOverTaskResponse, error)
查询OBS存量托管任务列表。
func (*VodClient) ListTemplateGroup ¶
func (c *VodClient) ListTemplateGroup(request *model.ListTemplateGroupRequest) (*model.ListTemplateGroupResponse, error)
查询转码模板组列表。
func (*VodClient) ListTopStatistics ¶
func (c *VodClient) ListTopStatistics(request *model.ListTopStatisticsRequest) (*model.ListTopStatisticsResponse, error)
查询指定域名在指定日期播放次数排名Top 100的媒资统计数据。
func (*VodClient) ListWatermarkTemplate ¶
func (c *VodClient) ListWatermarkTemplate(request *model.ListWatermarkTemplateRequest) (*model.ListWatermarkTemplateResponse, error)
查询水印模板
func (*VodClient) PublishAssetFromObs ¶
func (c *VodClient) PublishAssetFromObs(request *model.PublishAssetFromObsRequest) (*model.PublishAssetFromObsResponse, error)
若您在使用点播服务前,已经在OBS桶中存储了音视频文件,您可以使用该接口将存储在OBS桶中的音视频文件转存到点播服务中,使用点播服务的音视频管理功能。调用该接口前,您需要调用[桶授权](https://support.huaweicloud.com/api-vod/vod_04_0199.html)接口,将存储音视频文件的OBS桶授权给点播服务。
func (*VodClient) PublishAssets ¶
func (c *VodClient) PublishAssets(request *model.PublishAssetsRequest) (*model.PublishAssetsResponse, error)
将媒资设置为发布状态。支持批量发布。
func (*VodClient) ShowAssetCipher ¶
func (c *VodClient) ShowAssetCipher(request *model.ShowAssetCipherRequest) (*model.ShowAssetCipherResponse, error)
终端播放HLS加密视频时,向租户管理系统请求密钥,租户管理系统先查询其本地有没有已缓存的密钥,没有时则调用此接口向VOD查询。该接口的具体使用场景请参见[通过HLS加密防止视频泄露](https://support.huaweicloud.com/bestpractice-vod/vod_10_0004.html)。
func (*VodClient) ShowAssetDetail ¶
func (c *VodClient) ShowAssetDetail(request *model.ShowAssetDetailRequest) (*model.ShowAssetDetailResponse, error)
查询指定媒资的详细信息。
func (*VodClient) ShowAssetMeta ¶
func (c *VodClient) ShowAssetMeta(request *model.ShowAssetMetaRequest) (*model.ShowAssetMetaResponse, error)
查询媒资信息,支持指定媒资ID、分类、状态、起止时间查询。
func (*VodClient) ShowAssetTempAuthority ¶
func (c *VodClient) ShowAssetTempAuthority(request *model.ShowAssetTempAuthorityRequest) (*model.ShowAssetTempAuthorityResponse, error)
客户端请求创建媒资时,如果媒资文件超过20MB,需采用分段的方式向OBS上传,在每次与OBS交互前,客户端需通过此接口获取到授权方可与OBS交互。 该接口可以获取[初始化多段上传任务](https://support.huaweicloud.com/api-obs/obs_04_0098.html)、[上传段](https://support.huaweicloud.com/api-obs/obs_04_0099.html)、[合并段](https://support.huaweicloud.com/api-obs/obs_04_0102.html)、[列举已上传段](https://support.huaweicloud.com/api-obs/obs_04_0101.html)、[取消段合并](https://support.huaweicloud.com/api-obs/obs_04_0103.html)的带有临时授权的URL,用户需要根据OBS的接口文档配置相应请求的HTTP请求方法、请求头、请求体,然后请求对应的带有临时授权的URL。 视频分段上传方式和OBS的接口文档保持一致,包括HTTP请求方法、请求头、请求体等各种入参,此接口的作用是为用户生成带有鉴权信息的URL(鉴权信息即query_str),用来替换OBS接口中对应的URL,临时给用户开通向点播服务的桶上传文件的权限。 调用获取授权接口时需要传入bucket、object_key、http_verb,其中bucket和object_key是由[创建媒资:上传方式](https://support.huaweicloud.com/api-vod/vod_04_0196.html)接口中返回的响应体中的target字段获得的bucket和object,http_verb需要根据指定的操作选择。
func (*VodClient) ShowCdnStatistics ¶
func (c *VodClient) ShowCdnStatistics(request *model.ShowCdnStatisticsRequest) (*model.ShowCdnStatisticsResponse, error)
查询CDN的统计数据,包括流量、峰值带宽、请求总数、请求命中率、流量命中率。
func (*VodClient) ShowPreheatingAsset ¶
func (c *VodClient) ShowPreheatingAsset(request *model.ShowPreheatingAssetRequest) (*model.ShowPreheatingAssetResponse, error)
查询预热结果。
func (*VodClient) ShowTakeOverAssetDetails ¶
func (c *VodClient) ShowTakeOverAssetDetails(request *model.ShowTakeOverAssetDetailsRequest) (*model.ShowTakeOverAssetDetailsResponse, error)
查询OBS托管媒资的详细信息。
func (*VodClient) ShowTakeOverTaskDetails ¶
func (c *VodClient) ShowTakeOverTaskDetails(request *model.ShowTakeOverTaskDetailsRequest) (*model.ShowTakeOverTaskDetailsResponse, error)
查询OBS存量托管任务详情。
func (*VodClient) ShowVodStatistics ¶
func (c *VodClient) ShowVodStatistics(request *model.ShowVodStatisticsRequest) (*model.ShowVodStatisticsResponse, error)
查询点播源站的统计数据,包括流量、存储空间、转码时长。
func (*VodClient) UnpublishAssets ¶
func (c *VodClient) UnpublishAssets(request *model.UnpublishAssetsRequest) (*model.UnpublishAssetsResponse, error)
将媒资设置为未发布状态。
func (*VodClient) UpdateAsset ¶
func (c *VodClient) UpdateAsset(request *model.UpdateAssetRequest) (*model.UpdateAssetResponse, error)
媒资创建后,单独上传封面、更新视频文件或更新已有封面。 如果是更新视频文件,更新完后要通过[确认媒资上传](https://support.huaweicloud.com/api-vod/vod_04_0198.html)接口通知点播服务。 如果是更新封面或单独上传封面,则不需通知。 更新视频可以使用分段上传,具体方式可以参考[示例2:媒资分段上传(20M以上)](https://support.huaweicloud.com/api-vod/vod_04_0216.html)。
func (*VodClient) UpdateAssetCategory ¶
func (c *VodClient) UpdateAssetCategory(request *model.UpdateAssetCategoryRequest) (*model.UpdateAssetCategoryResponse, error)
修改媒资分类。
func (*VodClient) UpdateAssetMeta ¶
func (c *VodClient) UpdateAssetMeta(request *model.UpdateAssetMetaRequest) (*model.UpdateAssetMetaResponse, error)
修改媒资属性。
func (*VodClient) UpdateBucketAuthorized ¶
func (c *VodClient) UpdateBucketAuthorized(request *model.UpdateBucketAuthorizedRequest) (*model.UpdateBucketAuthorizedResponse, error)
用户可以通过该接口将OBS桶授权给点播服务或取消点播服务的授权。
func (*VodClient) UpdateCoverByThumbnail ¶
func (c *VodClient) UpdateCoverByThumbnail(request *model.UpdateCoverByThumbnailRequest) (*model.UpdateCoverByThumbnailResponse, error)
将视频截图生成的某张图片设置成封面。
func (*VodClient) UpdateTemplateGroup ¶
func (c *VodClient) UpdateTemplateGroup(request *model.UpdateTemplateGroupRequest) (*model.UpdateTemplateGroupResponse, error)
修改自定义转码模板组。
func (*VodClient) UpdateWatermarkTemplate ¶
func (c *VodClient) UpdateWatermarkTemplate(request *model.UpdateWatermarkTemplateRequest) (*model.UpdateWatermarkTemplateResponse, error)
修改水印模板
func (*VodClient) UploadMetaDataByUrl ¶
func (c *VodClient) UploadMetaDataByUrl(request *model.UploadMetaDataByUrlRequest) (*model.UploadMetaDataByUrlResponse, error)
基于音视频源文件URL,将音视频文件离线拉取上传到点播服务。