/** * The DeploySpec model module. * @module Ntnx/DeploySpec * @version 4.3.1 * @class DeploySpec * * @param { EntityDeploySpec[] } entityDeploySpecs List of entity deploy specifications identifying which entities' images should be deployed to the cluster. */ export default class DeploySpec { /** * Constructs a DeploySpec from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:Ntnx/DeploySpec} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/DeploySpec} The populated DeploySpec instance. */ static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any; /** * Converts a given snake_case string to camelCase. * @param {string} snakeStr - The input string in snake_case format. * @returns {string} - The converted string in camelCase format. */ static snakeToCamel(snakeStr: string): string; /** * Constructs a new DeploySpec. * Specification for deploying (pre-staging) upgrade artifacts on a cluster. Contains a list of entity deploy specifications and optional flags for controlling image deployment behavior (e.g. copying to Objects Lite, downloading only sub-entity images). * @alias module:Ntnx/DeploySpec * * @param { EntityDeploySpec[] } entityDeploySpecs List of entity deploy specifications identifying which entities' images should be deployed to the cluster. */ constructor(entityDeploySpecs: EntityDeploySpec[]); entityDeploySpecs: EntityDeploySpec[]; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns List of entity deploy specifications identifying which entities' images should be deployed to the cluster. * @return {EntityDeploySpec[]} */ getEntityDeploySpecs(): EntityDeploySpec[]; /** * Sets List of entity deploy specifications identifying which entities' images should be deployed to the cluster. * @param {EntityDeploySpec[]} entityDeploySpecs List of entity deploy specifications identifying which entities' images should be deployed to the cluster. */ setEntityDeploySpecs(entityDeploySpecs: EntityDeploySpec[]): void; /** * Returns When true, deployed images are also copied to Objects Lite storage. The default value is false. * @return {boolean} */ getCopyToObjectsLite(): boolean; /** * Sets When true, deployed images are also copied to Objects Lite storage. The default value is false. * @param {boolean} copyToObjectsLite When true, deployed images are also copied to Objects Lite storage. The default value is false. */ setCopyToObjectsLite(copyToObjectsLite: boolean): void; copyToObjectsLite: boolean; /** * Returns When true, only sub-entity images are downloaded to the catalog, skipping the parent entity image. The default value is false. * @return {boolean} */ getDownloadSubEntityImagesOnly(): boolean; /** * Sets When true, only sub-entity images are downloaded to the catalog, skipping the parent entity image. The default value is false. * @param {boolean} downloadSubEntityImagesOnly When true, only sub-entity images are downloaded to the catalog, skipping the parent entity image. The default value is false. */ setDownloadSubEntityImagesOnly(downloadSubEntityImagesOnly: boolean): void; downloadSubEntityImagesOnly: boolean; /** * Returns When true, only the base (parent) entity images are downloaded, skipping sub-entity images. The default value is false. * @return {boolean} */ getDownloadBaseImagesOnly(): boolean; /** * Sets When true, only the base (parent) entity images are downloaded, skipping sub-entity images. The default value is false. * @param {boolean} downloadBaseImagesOnly When true, only the base (parent) entity images are downloaded, skipping sub-entity images. The default value is false. */ setDownloadBaseImagesOnly(downloadBaseImagesOnly: boolean): void; downloadBaseImagesOnly: boolean; get$Reserved(): any; get$ObjectType(): string; get$UnknownFields(): any; toJson(forMutation: any): any; validate(scope: any, properties: any, ...args: any[]): Promise; validateProperty(scope: any, property: any): ValidationError; #private; } import EntityDeploySpec from "./EntityDeploySpec"; import ValidationError from "../../../validation/ValidationError";