// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class FixNodePoolVulsRequestRolloutPolicy extends $dara.Model { /** * @remarks * CVE fixes for nodes in the node pool are performed in batches. This parameter specifies the maximum number of nodes that can be fixed in parallel per batch. * * Valid values: minimum value is 1 and maximum value is the total number of nodes in the node pool. * * @example * 1 */ maxParallelism?: number; static names(): { [key: string]: string } { return { maxParallelism: 'max_parallelism', }; } static types(): { [key: string]: any } { return { maxParallelism: 'number', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class FixNodePoolVulsRequest extends $dara.Model { /** * @remarks * Specifies whether to allow node restarts. * * - true: Node restarts are allowed. * - false: Node restarts are not allowed. * * @example * true */ autoRestart?: boolean; /** * @remarks * The list of node names to fix. If this parameter is not specified, all nodes in the node pool are fixed by default. */ nodes?: string[]; /** * @remarks * The rolling fix policy. */ rolloutPolicy?: FixNodePoolVulsRequestRolloutPolicy; /** * @remarks * The list of vulnerabilities. */ vuls?: string[]; static names(): { [key: string]: string } { return { autoRestart: 'auto_restart', nodes: 'nodes', rolloutPolicy: 'rollout_policy', vuls: 'vuls', }; } static types(): { [key: string]: any } { return { autoRestart: 'boolean', nodes: { 'type': 'array', 'itemType': 'string' }, rolloutPolicy: FixNodePoolVulsRequestRolloutPolicy, vuls: { 'type': 'array', 'itemType': 'string' }, }; } validate() { if(Array.isArray(this.nodes)) { $dara.Model.validateArray(this.nodes); } if(this.rolloutPolicy && typeof (this.rolloutPolicy as any).validate === 'function') { (this.rolloutPolicy as any).validate(); } if(Array.isArray(this.vuls)) { $dara.Model.validateArray(this.vuls); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }