// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListMediaBasicInfosResponseBodyMediaInfosFileInfoListFileBasicInfo extends $dara.Model { /** * @remarks * The bitrate. * * @example * 1912.13 */ bitrate?: string; /** * @remarks * The time when the file was created. * * @example * 2021-01-08T16:52:04Z */ createTime?: string; /** * @remarks * The duration. * * @example * 60.00000 */ duration?: string; /** * @remarks * The file name. * * @example * example.mp4 */ fileName?: string; /** * @remarks * The file size. Unit: bytes. * * @example * 14340962 */ fileSize?: string; /** * @remarks * The file status. * * @example * Normal */ fileStatus?: string; /** * @remarks * The file type. * * @example * source_file */ fileType?: string; /** * @remarks * The OSS URL of the file. * * @example * http://example-bucket.oss-cn-shanghai.aliyuncs.com/example2.mp4?Expires=&OSSAccessKeyId=&Signature=&security-token= */ fileUrl?: string; /** * @remarks * The container format. * * @example * mov,mp4,m4a,3gp,3g2,mj2 */ formatName?: string; /** * @remarks * The height. * * @example * 720 */ height?: string; /** * @remarks * The time when the file was last modified. * * @example * 2021-01-08T16:52:07Z */ modifiedTime?: string; /** * @remarks * The region in which the file resides. * * @example * cn-shanghai */ region?: string; /** * @remarks * The width. * * @example * 1280 */ width?: string; static names(): { [key: string]: string } { return { bitrate: 'Bitrate', createTime: 'CreateTime', duration: 'Duration', fileName: 'FileName', fileSize: 'FileSize', fileStatus: 'FileStatus', fileType: 'FileType', fileUrl: 'FileUrl', formatName: 'FormatName', height: 'Height', modifiedTime: 'ModifiedTime', region: 'Region', width: 'Width', }; } static types(): { [key: string]: any } { return { bitrate: 'string', createTime: 'string', duration: 'string', fileName: 'string', fileSize: 'string', fileStatus: 'string', fileType: 'string', fileUrl: 'string', formatName: 'string', height: 'string', modifiedTime: 'string', region: 'string', width: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListMediaBasicInfosResponseBodyMediaInfosFileInfoList extends $dara.Model { /** * @remarks * The basic information of the file, including the duration and size. */ fileBasicInfo?: ListMediaBasicInfosResponseBodyMediaInfosFileInfoListFileBasicInfo; static names(): { [key: string]: string } { return { fileBasicInfo: 'FileBasicInfo', }; } static types(): { [key: string]: any } { return { fileBasicInfo: ListMediaBasicInfosResponseBodyMediaInfosFileInfoListFileBasicInfo, }; } validate() { if(this.fileBasicInfo && typeof (this.fileBasicInfo as any).validate === 'function') { (this.fileBasicInfo as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListMediaBasicInfosResponseBodyMediaInfosMediaBasicInfo extends $dara.Model { /** * @remarks * The service to which the media asset belongs. * * @example * ICE */ biz?: string; /** * @remarks * The business type of the media asset. * * @example * opening */ businessType?: string; /** * @remarks * The category ID. * * @example * 3049 */ cateId?: number; /** * @remarks * The category of the media asset. */ category?: string; /** * @remarks * The thumbnail URL of the media asset. * * @example * http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires=&OSSAccessKeyId=&Signature=&security-token= */ coverURL?: string; /** * @remarks * The time when the media asset was created. * * @example * 2021-01-08T16:52:04Z */ createTime?: string; /** * @remarks * The time when the media asset was deleted. * * @example * 2021-01-08T16:52:07Z */ deletedTime?: string; /** * @remarks * The description of the media asset. */ description?: string; /** * @remarks * The URL of the media asset in another service. * * @example * https://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 */ inputURL?: string; /** * @remarks * The ID of the media asset. * * @example * ****019b82e24b37a1c2958dec38**** */ mediaId?: string; /** * @remarks * The tags of the media asset. * * @example * tags,tags2 */ mediaTags?: string; /** * @remarks * The type of the media asset. * * @example * video */ mediaType?: string; /** * @remarks * The time when the media asset was last modified. * * @example * 2021-01-08T16:52:07Z */ modifiedTime?: string; /** * @remarks * The custom ID of the media asset. The ID is a string that contains 6 to 64 characters. Only letters, digits, hyphens (-), and underscores (_) are supported. The ID is unique among users. * * @example * 123-123 */ referenceId?: string; /** * @remarks * The snapshots of the media asset. * * @example * [{"bucket":"example-bucket","count":"3","iceJobId":"******f48f0e4154976b2b8c45******","location":"oss-cn-beijing","snapshotRegular":"example.jpg","templateId":"******e6a6440b29eb60bd7c******"}] */ snapshots?: string; /** * @remarks * The source of the media asset. * * @example * oss */ source?: string; /** * @remarks * The sprite. * * @example * [{"bucket":"example-bucket","count":"32","iceJobId":"******83ec44d58b2069def2e******","location":"oss-cn-shanghai","snapshotRegular":"example/example-{Count}.jpg","spriteRegular":"example/example-{TileCount}.jpg","templateId":"******e438b14ff39293eaec25******","tileCount":"1"}] */ spriteImages?: string; /** * @remarks * The status of the media asset. * * @example * Normal */ status?: string; /** * @remarks * The title of the media asset. */ title?: string; /** * @remarks * The transcoding status of the media asset. * * @example * Init */ transcodeStatus?: string; /** * @remarks * The upload source of the media asset. * * @example * general */ uploadSource?: string; /** * @remarks * The user data. * * @example * userData */ userData?: string; static names(): { [key: string]: string } { return { biz: 'Biz', businessType: 'BusinessType', cateId: 'CateId', category: 'Category', coverURL: 'CoverURL', createTime: 'CreateTime', deletedTime: 'DeletedTime', description: 'Description', inputURL: 'InputURL', mediaId: 'MediaId', mediaTags: 'MediaTags', mediaType: 'MediaType', modifiedTime: 'ModifiedTime', referenceId: 'ReferenceId', snapshots: 'Snapshots', source: 'Source', spriteImages: 'SpriteImages', status: 'Status', title: 'Title', transcodeStatus: 'TranscodeStatus', uploadSource: 'UploadSource', userData: 'UserData', }; } static types(): { [key: string]: any } { return { biz: 'string', businessType: 'string', cateId: 'number', category: 'string', coverURL: 'string', createTime: 'string', deletedTime: 'string', description: 'string', inputURL: 'string', mediaId: 'string', mediaTags: 'string', mediaType: 'string', modifiedTime: 'string', referenceId: 'string', snapshots: 'string', source: 'string', spriteImages: 'string', status: 'string', title: 'string', transcodeStatus: 'string', uploadSource: 'string', userData: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListMediaBasicInfosResponseBodyMediaInfos extends $dara.Model { /** * @remarks * FileInfos */ fileInfoList?: ListMediaBasicInfosResponseBodyMediaInfosFileInfoList[]; /** * @remarks * BasicInfo */ mediaBasicInfo?: ListMediaBasicInfosResponseBodyMediaInfosMediaBasicInfo; /** * @remarks * The ID of the media asset. * * @example * ****019b82e24b37a1c2958dec38**** */ mediaId?: string; static names(): { [key: string]: string } { return { fileInfoList: 'FileInfoList', mediaBasicInfo: 'MediaBasicInfo', mediaId: 'MediaId', }; } static types(): { [key: string]: any } { return { fileInfoList: { 'type': 'array', 'itemType': ListMediaBasicInfosResponseBodyMediaInfosFileInfoList }, mediaBasicInfo: ListMediaBasicInfosResponseBodyMediaInfosMediaBasicInfo, mediaId: 'string', }; } validate() { if(Array.isArray(this.fileInfoList)) { $dara.Model.validateArray(this.fileInfoList); } if(this.mediaBasicInfo && typeof (this.mediaBasicInfo as any).validate === 'function') { (this.mediaBasicInfo as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListMediaBasicInfosResponseBody extends $dara.Model { /** * @remarks * The maximum number of entries returned in the query. * * @example * 2 */ maxResults?: number; /** * @remarks * The media assets that meet the specified conditions. */ mediaInfos?: ListMediaBasicInfosResponseBodyMediaInfos[]; /** * @remarks * A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists. * * @example * 8EqYpQbZ6Eh7+Zz8DxVYoQ== */ nextToken?: string; /** * @remarks * The request ID. * * @example * ******B7-7F87-4792-BFE9-63CD21****** */ requestId?: string; /** * @remarks * The total number of entries returned. * * @example * 4 */ totalCount?: number; static names(): { [key: string]: string } { return { maxResults: 'MaxResults', mediaInfos: 'MediaInfos', nextToken: 'NextToken', requestId: 'RequestId', totalCount: 'TotalCount', }; } static types(): { [key: string]: any } { return { maxResults: 'number', mediaInfos: { 'type': 'array', 'itemType': ListMediaBasicInfosResponseBodyMediaInfos }, nextToken: 'string', requestId: 'string', totalCount: 'number', }; } validate() { if(Array.isArray(this.mediaInfos)) { $dara.Model.validateArray(this.mediaInfos); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }