// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class SubmitPackageJobRequestInputsInput 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. * * 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: an Object Storage Service (OSS) object. * * Media: 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 SubmitPackageJobRequestInputs extends $dara.Model { /** * @remarks * The information about the input stream file. * * This parameter is required. */ input?: SubmitPackageJobRequestInputsInput; static names(): { [key: string]: string } { return { input: 'Input', }; } static types(): { [key: string]: any } { return { input: SubmitPackageJobRequestInputsInput, }; } validate() { if(this.input && typeof (this.input as any).validate === 'function') { (this.input as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitPackageJobRequestOutput 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. 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: an OSS object. * * Media: 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 SubmitPackageJobRequestScheduleConfig extends $dara.Model { /** * @remarks * The ID of the MPS queue to which the job was submitted. * * @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 SubmitPackageJobRequest extends $dara.Model { /** * @remarks * The input of the job. * * This parameter is required. */ inputs?: SubmitPackageJobRequestInputs[]; /** * @remarks * The name of the job. * * @example * job-name */ name?: string; /** * @remarks * The output of the job. * * This parameter is required. */ output?: SubmitPackageJobRequestOutput; /** * @remarks * The scheduling settings. */ scheduleConfig?: SubmitPackageJobRequestScheduleConfig; /** * @remarks * The user-defined data. * * @example * {"param": "value"} */ userData?: string; static names(): { [key: string]: string } { return { inputs: 'Inputs', name: 'Name', output: 'Output', scheduleConfig: 'ScheduleConfig', userData: 'UserData', }; } static types(): { [key: string]: any } { return { inputs: { 'type': 'array', 'itemType': SubmitPackageJobRequestInputs }, name: 'string', output: SubmitPackageJobRequestOutput, scheduleConfig: SubmitPackageJobRequestScheduleConfig, userData: 'string', }; } validate() { if(Array.isArray(this.inputs)) { $dara.Model.validateArray(this.inputs); } if(this.output && typeof (this.output as any).validate === 'function') { (this.output 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); } }