Skip to content

InsertMediaToSearchLibProps

Properties for defining a InsertMediaToSearchLib.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ice-insertmediatosearchlib

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkice"
&alicloudroscdkice.InsertMediaToSearchLibProps {
    Input: interface{},
    MediaId: interface{},
    MediaType: interface{},
    MsgBody: interface{},
    SearchLibName: interface{},
}

Properties

Name Type Description
Input interface{} Property input: The URL of the video, audio, or image file that you want to import to the search library.
MediaId interface{} Property mediaId: The ID of the media asset.
MediaType interface{} Property mediaType: The type of the media asset.
MsgBody interface{} Property msgBody: The message body.
SearchLibName interface{} Property searchLibName: The name of the search library.

InputRequired

Input interface{}
  • Type: interface{}

Property input: The URL of the video, audio, or image file that you want to import to the search library.

Note: Make sure that you specify a correct file name and the bucket in which the file resides is in the same region where this operation is called. Otherwise, the file cannot be found or the operation may fail. Specify an Object Storage Service (OSS) URL in the following format: oss://[Bucket name]/[File path]. For example, you can specify oss://[example-bucket-]/[object_path-]. Specify an HTTP URL in the following format: public endpoint. For example, you can specify http://example-test-****.mp4.


MediaIdOptional

MediaId interface{}
  • Type: interface{}

Property mediaId: The ID of the media asset.

Each media ID is unique. If you leave this parameter empty, a media ID is automatically generated for this parameter.


MediaTypeOptional

MediaType interface{}
  • Type: interface{}

Property mediaType: The type of the media asset.

Valid values: video (default) image audio


MsgBodyOptional

MsgBody interface{}
  • Type: interface{}

Property msgBody: The message body.


SearchLibNameOptional

SearchLibName interface{}
  • Type: interface{}

Property searchLibName: The name of the search library.

Default value: ims-default-search-lib.