// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListOperationPlansResponseBodyPlans extends $dara.Model { /** * @remarks * The cluster ID. * * @example * c29ced64b3dfe4f33b57ca0aa9f68**** */ clusterId?: string; /** * @remarks * The time when the execution plan was created. * * @example * 2023-11-21T20:01:22+08:00 */ created?: string; /** * @remarks * The expected end time of the execution. * * @example * 2023-11-22T18:00:00+08:00 */ endTime?: string; /** * @remarks * The execution plan ID. * * @example * P-655c9c127e0e6603ef00**** */ planId?: string; /** * @remarks * The expected start time of the execution. * * @example * 2023-11-22T15:18:00+08:00 */ startTime?: string; /** * @remarks * The status. Valid values: * - scheduled: Scheduled. * - canceled: Canceled. * * @example * scheduled */ state?: string; /** * @remarks * The execution target ID. * * @example * c29ced64b3dfe4f33b57ca0aa9f68**** */ targetId?: string; /** * @remarks * The execution target type. * * @example * cluster */ targetType?: string; /** * @remarks * The task ID generated by the execution plan. * * @example * T-6764d027be846d01310006b1 */ taskId?: string; /** * @remarks * The type. Valid values: * - cluster_upgrade: Cluster upgrade. * * @example * cluster_upgrade */ type?: string; static names(): { [key: string]: string } { return { clusterId: 'cluster_id', created: 'created', endTime: 'end_time', planId: 'plan_id', startTime: 'start_time', state: 'state', targetId: 'target_id', targetType: 'target_type', taskId: 'task_id', type: 'type', }; } static types(): { [key: string]: any } { return { clusterId: 'string', created: 'string', endTime: 'string', planId: 'string', startTime: 'string', state: 'string', targetId: 'string', targetType: 'string', taskId: 'string', type: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListOperationPlansResponseBody extends $dara.Model { /** * @remarks * The list of execution plans. */ plans?: ListOperationPlansResponseBodyPlans[]; static names(): { [key: string]: string } { return { plans: 'plans', }; } static types(): { [key: string]: any } { return { plans: { 'type': 'array', 'itemType': ListOperationPlansResponseBodyPlans }, }; } validate() { if(Array.isArray(this.plans)) { $dara.Model.validateArray(this.plans); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }