// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class SubmitMediaInfoJobResponseBodyMediaInfoJobInput extends $dara.Model { /** * @remarks * The value of the media object. This value depends on the `Type` parameter. * * - If `Type` is `OSS`, this parameter is the URL of the media file. Both the `oss://` and HTTPS protocols are supported. * * - If `Type` is `Media`, this parameter is the media ID. * * @example * oss://bucket/path/to/video.mp4 */ media?: string; /** * @remarks * The type of input media. Valid values: * * - `OSS`: An Object Storage Service (OSS) file. * * - `Media`: A media ID. * * @example * OSS */ type?: string; static names(): { [key: string]: string } { return { media: 'Media', type: 'Type', }; } static types(): { [key: string]: any } { return { media: 'string', type: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitMediaInfoJobResponseBodyMediaInfoJobMediaInfoPropertyAudioStreamInfoList extends $dara.Model { /** * @remarks * The bitrate of the stream. * * @example * 0.f */ bitrate?: string; /** * @remarks * The channel layout. * * @example * stereo */ channelLayout?: string; /** * @remarks * The number of audio channels. * * @example * 2 */ channels?: string; /** * @remarks * The full name of the codec. * * @example * AAC (Advanced Audio Coding) */ codecLongName?: string; /** * @remarks * The stream\\"s codec. * * @example * aac */ codecName?: string; /** * @remarks * The codec tag. * * @example * 0x000f */ codecTag?: string; /** * @remarks * The codec tag string. * * @example * [15][0][0][0] */ codecTagString?: string; /** * @remarks * The time base of the codec. * * @example * 1/44100 */ codecTimeBase?: string; /** * @remarks * The duration of the stream, in seconds. * * @example * 403.039989 */ duration?: string; /** * @remarks * The stream index. * * @example * 1 */ index?: string; /** * @remarks * The stream\\"s language. * * @example * us */ lang?: string; /** * @remarks * The sample format. * * @example * fltp */ sampleFmt?: string; /** * @remarks * The sample rate, in Hz. * * @example * 44100 */ sampleRate?: string; /** * @remarks * The start time of the stream, in seconds. * * @example * 1.473556 */ startTime?: string; /** * @remarks * The stream\\"s time base. * * @example * 1/90000 */ timebase?: string; static names(): { [key: string]: string } { return { bitrate: 'Bitrate', channelLayout: 'ChannelLayout', channels: 'Channels', codecLongName: 'CodecLongName', codecName: 'CodecName', codecTag: 'CodecTag', codecTagString: 'CodecTagString', codecTimeBase: 'CodecTimeBase', duration: 'Duration', index: 'Index', lang: 'Lang', sampleFmt: 'SampleFmt', sampleRate: 'SampleRate', startTime: 'StartTime', timebase: 'Timebase', }; } static types(): { [key: string]: any } { return { bitrate: 'string', channelLayout: 'string', channels: 'string', codecLongName: 'string', codecName: 'string', codecTag: 'string', codecTagString: 'string', codecTimeBase: 'string', duration: 'string', index: 'string', lang: 'string', sampleFmt: 'string', sampleRate: 'string', startTime: 'string', timebase: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitMediaInfoJobResponseBodyMediaInfoJobMediaInfoPropertyFileBasicInfo extends $dara.Model { /** * @remarks * The video bitrate, in Kbit/s. * * @example * 888.563 */ bitrate?: string; /** * @remarks * The duration of the video, in seconds. * * @example * 403.039999 */ duration?: string; /** * @remarks * The file name. * * @example * file.m3u8 */ fileName?: string; /** * @remarks * The file size, in bytes. * * @example * 31737 */ fileSize?: string; /** * @remarks * The file status. * * @example * Normal */ fileStatus?: string; /** * @remarks * The file type. * * @example * source_file */ fileType?: string; /** * @remarks * The URL of the file. * * @example * http://bucket.oss-cn-shanghai.aliyuncs.com/path/to/file.m3u8 */ fileUrl?: string; /** * @remarks * The name of the video format. * * @example * hls,applehttp */ formatName?: string; /** * @remarks * The height of the video, in pixels. * * @example * 478 */ height?: string; /** * @remarks * The media ID. * * @example * 2b36bd19c13f4145b094c0cad80dbce5 */ mediaId?: string; /** * @remarks * The region where the file is stored. * * @example * cn-shanghai */ region?: string; /** * @remarks * The width of the video, in pixels. * * @example * 848 */ 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', mediaId: 'MediaId', 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', mediaId: 'string', region: 'string', width: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitMediaInfoJobResponseBodyMediaInfoJobMediaInfoPropertyVideoStreamInfoList extends $dara.Model { /** * @remarks * The average frame rate. * * @example * 25.0 */ avgFps?: string; /** * @remarks * The bitrate of the stream, in Kbit/s. * * @example * 888.563 */ bitRate?: string; /** * @remarks * The full name of the codec. * * @example * H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 */ codecLongName?: string; /** * @remarks * The stream\\"s codec. * * @example * h264 */ codecName?: string; /** * @remarks * The codec tag. * * @example * 0x001b */ codecTag?: string; /** * @remarks * The codec tag string. * * @example * [27][0][0][0] */ codecTagString?: string; /** * @remarks * The time base of the codec. * * @example * 1/50 */ codecTimeBase?: string; /** * @remarks * The display aspect ratio (DAR). * * @example * 16:9 */ dar?: string; /** * @remarks * The duration of the stream, in seconds. * * @example * 403.039989 */ duration?: string; /** * @remarks * The frame rate. * * @example * 25.0 */ fps?: string; /** * @remarks * Indicates whether the stream contains B-frames. Valid values: * * - `0`: The stream does not contain B-frames. * * - `1`: The stream contains one B-frame. * * - `2`: The stream contains two or more consecutive B-frames. * * @example * 2 */ hasBFrames?: string; /** * @remarks * The height of the video, in pixels. * * @example * 478 */ height?: string; /** * @remarks * The stream index. * * @example * 0 */ index?: string; /** * @remarks * The stream\\"s language. * * @example * zh */ lang?: string; /** * @remarks * The codec level. * * @example * 31 */ level?: string; /** * @remarks * The total number of frames. * * @example * 10040 */ numFrames?: string; /** * @remarks * The pixel format. * * @example * yuv420p */ pixFmt?: string; /** * @remarks * The codec profile. * * @example * High */ profile?: string; /** * @remarks * The rotation angle of the video, in degrees. * * @example * 0 */ rotate?: string; /** * @remarks * The sample aspect ratio (SAR). * * @example * 478:477 */ sar?: string; /** * @remarks * The start time of the stream, in seconds. * * @example * 1.473556 */ startTime?: string; /** * @remarks * The stream\\"s time base. * * @example * 1/90000 */ timeBase?: string; /** * @remarks * The width of the video, in pixels. * * @example * 848 */ width?: string; static names(): { [key: string]: string } { return { avgFps: 'Avg_fps', bitRate: 'Bit_rate', codecLongName: 'Codec_long_name', codecName: 'Codec_name', codecTag: 'Codec_tag', codecTagString: 'Codec_tag_string', codecTimeBase: 'Codec_time_base', dar: 'Dar', duration: 'Duration', fps: 'Fps', hasBFrames: 'Has_b_frames', height: 'Height', index: 'Index', lang: 'Lang', level: 'Level', numFrames: 'NumFrames', pixFmt: 'PixFmt', profile: 'Profile', rotate: 'Rotate', sar: 'Sar', startTime: 'Start_time', timeBase: 'Time_base', width: 'Width', }; } static types(): { [key: string]: any } { return { avgFps: 'string', bitRate: 'string', codecLongName: 'string', codecName: 'string', codecTag: 'string', codecTagString: 'string', codecTimeBase: 'string', dar: 'string', duration: 'string', fps: 'string', hasBFrames: 'string', height: 'string', index: 'string', lang: 'string', level: 'string', numFrames: 'string', pixFmt: 'string', profile: 'string', rotate: 'string', sar: 'string', startTime: 'string', timeBase: 'string', width: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitMediaInfoJobResponseBodyMediaInfoJobMediaInfoProperty extends $dara.Model { /** * @remarks * A list of audio stream details. */ audioStreamInfoList?: SubmitMediaInfoJobResponseBodyMediaInfoJobMediaInfoPropertyAudioStreamInfoList[]; /** * @remarks * Basic information about the file. */ fileBasicInfo?: SubmitMediaInfoJobResponseBodyMediaInfoJobMediaInfoPropertyFileBasicInfo; /** * @remarks * A list of video stream details. */ videoStreamInfoList?: SubmitMediaInfoJobResponseBodyMediaInfoJobMediaInfoPropertyVideoStreamInfoList[]; static names(): { [key: string]: string } { return { audioStreamInfoList: 'AudioStreamInfoList', fileBasicInfo: 'FileBasicInfo', videoStreamInfoList: 'VideoStreamInfoList', }; } static types(): { [key: string]: any } { return { audioStreamInfoList: { 'type': 'array', 'itemType': SubmitMediaInfoJobResponseBodyMediaInfoJobMediaInfoPropertyAudioStreamInfoList }, fileBasicInfo: SubmitMediaInfoJobResponseBodyMediaInfoJobMediaInfoPropertyFileBasicInfo, videoStreamInfoList: { 'type': 'array', 'itemType': SubmitMediaInfoJobResponseBodyMediaInfoJobMediaInfoPropertyVideoStreamInfoList }, }; } validate() { if(Array.isArray(this.audioStreamInfoList)) { $dara.Model.validateArray(this.audioStreamInfoList); } if(this.fileBasicInfo && typeof (this.fileBasicInfo as any).validate === 'function') { (this.fileBasicInfo as any).validate(); } if(Array.isArray(this.videoStreamInfoList)) { $dara.Model.validateArray(this.videoStreamInfoList); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitMediaInfoJobResponseBodyMediaInfoJobScheduleConfig extends $dara.Model { /** * @remarks * The pipeline ID. * * @example * e37ebee5d98b4781897f6086e89f9c56 */ pipelineId?: string; /** * @remarks * The job priority. Higher values indicate higher priority. Valid values range from 1 to 10. * * @example * 5 */ priority?: number; static names(): { [key: string]: string } { return { pipelineId: 'PipelineId', priority: 'Priority', }; } static types(): { [key: string]: any } { return { pipelineId: 'string', priority: 'number', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitMediaInfoJobResponseBodyMediaInfoJob extends $dara.Model { /** * @remarks * Indicates whether to process the job asynchronously. * * @example * true */ async?: boolean; /** * @remarks * The time when the job was completed. * * @example * 2022-01-12T08:49:41Z */ finishTime?: string; /** * @remarks * The job input. */ input?: SubmitMediaInfoJobResponseBodyMediaInfoJobInput; /** * @remarks * The job ID. * * @example * ab4802364a2e49208c99efab82dfa8e8 */ jobId?: string; /** * @remarks * Details of the media information. */ mediaInfoProperty?: SubmitMediaInfoJobResponseBodyMediaInfoJobMediaInfoProperty; /** * @remarks * The job name. * * @example * job-name */ name?: string; /** * @remarks * The request ID. * * @example * 4879B9DE-E4B6-19DC-91F5-9D5F4DCE4168 */ requestId?: string; /** * @remarks * The scheduling configuration. */ scheduleConfig?: SubmitMediaInfoJobResponseBodyMediaInfoJobScheduleConfig; /** * @remarks * The job status. Valid values: * * - `Init`: Submitted. * * - `Success`: Successful. * * - `Fail`: Failed. * * @example * Init */ status?: string; /** * @remarks * The job submission details. * * @example * {} */ submitResultJson?: { [key: string]: any }; /** * @remarks * The time when the job was submitted. * * @example * 2022-01-12T08:49:41Z */ submitTime?: string; /** * @remarks * The source of the job. Valid values: * * - `API`: The job was submitted by calling an API operation. * * - `WorkFlow`: The job was triggered by a workflow. * * - `Console`: The job was submitted in the console. * * @example * API */ triggerSource?: string; /** * @remarks * The user data. * * @example * user-data */ userData?: string; static names(): { [key: string]: string } { return { async: 'Async', finishTime: 'FinishTime', input: 'Input', jobId: 'JobId', mediaInfoProperty: 'MediaInfoProperty', name: 'Name', requestId: 'RequestId', scheduleConfig: 'ScheduleConfig', status: 'Status', submitResultJson: 'SubmitResultJson', submitTime: 'SubmitTime', triggerSource: 'TriggerSource', userData: 'UserData', }; } static types(): { [key: string]: any } { return { async: 'boolean', finishTime: 'string', input: SubmitMediaInfoJobResponseBodyMediaInfoJobInput, jobId: 'string', mediaInfoProperty: SubmitMediaInfoJobResponseBodyMediaInfoJobMediaInfoProperty, name: 'string', requestId: 'string', scheduleConfig: SubmitMediaInfoJobResponseBodyMediaInfoJobScheduleConfig, status: 'string', submitResultJson: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, submitTime: 'string', triggerSource: 'string', userData: 'string', }; } validate() { if(this.input && typeof (this.input as any).validate === 'function') { (this.input as any).validate(); } if(this.mediaInfoProperty && typeof (this.mediaInfoProperty as any).validate === 'function') { (this.mediaInfoProperty as any).validate(); } if(this.scheduleConfig && typeof (this.scheduleConfig as any).validate === 'function') { (this.scheduleConfig as any).validate(); } if(this.submitResultJson) { $dara.Model.validateMap(this.submitResultJson); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitMediaInfoJobResponseBody extends $dara.Model { /** * @remarks * The media information job. */ mediaInfoJob?: SubmitMediaInfoJobResponseBodyMediaInfoJob; /** * @remarks * The request ID. * * @example * 31E30781-9495-5E2D-A84D-759B0A01E262 */ requestId?: string; static names(): { [key: string]: string } { return { mediaInfoJob: 'MediaInfoJob', requestId: 'RequestId', }; } static types(): { [key: string]: any } { return { mediaInfoJob: SubmitMediaInfoJobResponseBodyMediaInfoJob, requestId: 'string', }; } validate() { if(this.mediaInfoJob && typeof (this.mediaInfoJob as any).validate === 'function') { (this.mediaInfoJob as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }