// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class SubmitMediaInfoJobRequestInput extends $dara.Model { /** * @remarks * The media object. * * * If Type is set to OSS, set this parameter to the URL of an OSS object. Both the OSS and HTTP protocols are supported. * * > Before you use the OSS bucket in the URL, you must add the bucket on the [Storage Management](https://help.aliyun.com/document_detail/609918.html) page of the Intelligent Media Services (IMS) console. * * * If Type is set to Media, set this parameter to the ID of a media asset. * * This parameter is required. * * @example * oss://bucket/path/to/video.mp4 */ media?: string; /** * @remarks * The type of the media object. Valid values: OSS and Media. A value of OSS indicates an Object Storage Service (OSS) object. A value of Media indicates a media asset. * * This parameter is required. * * @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 SubmitMediaInfoJobRequestScheduleConfig extends $dara.Model { /** * @remarks * The ID of the ApsaraVideo Media Processing (MPS) queue that is used to run the job. * * @example * e37ebee5d98b4781897f6086e89f9c56 */ pipelineId?: string; /** * @remarks * The priority of the job. Valid values: 1 to 10. The greater the value, the higher the priority. * * @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 SubmitMediaInfoJobRequest extends $dara.Model { /** * @remarks * The input of the job. * * This parameter is required. */ input?: SubmitMediaInfoJobRequestInput; /** * @remarks * The job name. * * @example * job-name */ name?: string; /** * @remarks * The scheduling parameters. */ scheduleConfig?: SubmitMediaInfoJobRequestScheduleConfig; /** * @remarks * The user data. * * @example * user-data */ userData?: string; static names(): { [key: string]: string } { return { input: 'Input', name: 'Name', scheduleConfig: 'ScheduleConfig', userData: 'UserData', }; } static types(): { [key: string]: any } { return { input: SubmitMediaInfoJobRequestInput, name: 'string', scheduleConfig: SubmitMediaInfoJobRequestScheduleConfig, userData: 'string', }; } validate() { if(this.input && typeof (this.input as any).validate === 'function') { (this.input as any).validate(); } if(this.scheduleConfig && typeof (this.scheduleConfig as any).validate === 'function') { (this.scheduleConfig as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }