// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListPublicMediaBasicInfosResponseBodyMediaInfosFileInfoListFileBasicInfo extends $dara.Model { /** * @remarks * The bitrate. * * @example * 270112.12 */ bitrate?: string; /** * @remarks * The duration. * * @example * 10.040000 */ duration?: string; /** * @remarks * The file name. * * @example * example.mp4 */ fileName?: string; /** * @remarks * The file size. Unit: bytes. * * @example * 338990717 */ fileSize?: string; /** * @remarks * The file status. * * @example * Normal */ fileStatus?: string; /** * @remarks * The file type. * * @example * source_file */ fileType?: string; /** * @remarks * The Object Storage Service (OSS) URL of the file. * * @example * http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.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 * 1080 */ height?: string; /** * @remarks * The region in which the file resides. * * @example * cn-shanghai */ region?: string; /** * @remarks * The width. * * @example * 1920 */ width?: string; static names(): { [key: string]: string } { return { bitrate: 'Bitrate', duration: 'Duration', fileName: 'FileName', fileSize: 'FileSize', fileStatus: 'FileStatus', fileType: 'FileType', fileUrl: 'FileUrl', formatName: 'FormatName', height: 'Height', region: 'Region', width: 'Width', }; } static types(): { [key: string]: any } { return { bitrate: 'string', duration: 'string', fileName: 'string', fileSize: 'string', fileStatus: 'string', fileType: 'string', fileUrl: 'string', formatName: 'string', height: 'string', region: 'string', width: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListPublicMediaBasicInfosResponseBodyMediaInfosFileInfoList extends $dara.Model { /** * @remarks * The basic information of the file, such as the duration and size. */ fileBasicInfo?: ListPublicMediaBasicInfosResponseBodyMediaInfosFileInfoListFileBasicInfo; static names(): { [key: string]: string } { return { fileBasicInfo: 'FileBasicInfo', }; } static types(): { [key: string]: any } { return { fileBasicInfo: ListPublicMediaBasicInfosResponseBodyMediaInfosFileInfoListFileBasicInfo, }; } 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 ListPublicMediaBasicInfosResponseBodyMediaInfosMediaBasicInfo extends $dara.Model { /** * @remarks * The business type of the media asset. * * @example * general */ businessType?: string; /** * @remarks * The category of the media asset. * * @example * video */ 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:04Z */ deletedTime?: string; /** * @remarks * The description of the media asset. * * @example * description */ 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 * sticker-daily */ 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:04Z */ modifiedTime?: string; /** * @remarks * The snapshots of the media asset. * * @example * null */ snapshots?: string; /** * @remarks * The source of the media asset. * * @example * oss */ source?: 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 user data. * * @example * userData */ userData?: string; static names(): { [key: string]: string } { return { businessType: 'BusinessType', category: 'Category', coverURL: 'CoverURL', createTime: 'CreateTime', deletedTime: 'DeletedTime', description: 'Description', inputURL: 'InputURL', mediaId: 'MediaId', mediaTags: 'MediaTags', mediaType: 'MediaType', modifiedTime: 'ModifiedTime', snapshots: 'Snapshots', source: 'Source', status: 'Status', title: 'Title', transcodeStatus: 'TranscodeStatus', userData: 'UserData', }; } static types(): { [key: string]: any } { return { businessType: 'string', category: 'string', coverURL: 'string', createTime: 'string', deletedTime: 'string', description: 'string', inputURL: 'string', mediaId: 'string', mediaTags: 'string', mediaType: 'string', modifiedTime: 'string', snapshots: 'string', source: 'string', status: 'string', title: 'string', transcodeStatus: 'string', userData: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListPublicMediaBasicInfosResponseBodyMediaInfos extends $dara.Model { /** * @remarks * The file information of the media asset. */ fileInfoList?: ListPublicMediaBasicInfosResponseBodyMediaInfosFileInfoList[]; /** * @remarks * The basic information of the media asset. */ mediaBasicInfo?: ListPublicMediaBasicInfosResponseBodyMediaInfosMediaBasicInfo; /** * @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': ListPublicMediaBasicInfosResponseBodyMediaInfosFileInfoList }, mediaBasicInfo: ListPublicMediaBasicInfosResponseBodyMediaInfosMediaBasicInfo, 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 ListPublicMediaBasicInfosResponseBody extends $dara.Model { /** * @remarks * The maximum number of entries returned. * * @example * 2 */ maxResults?: number; /** * @remarks * The media assets that meet the specified conditions. */ mediaInfos?: ListPublicMediaBasicInfosResponseBodyMediaInfos[]; /** * @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 media assets that meet the specified conditions. * * @example * 2 */ 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': ListPublicMediaBasicInfosResponseBodyMediaInfos }, 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); } }