/**
* The ImageFile model module.
* @module Ntnx/ImageFile
* @version 4.3.1
* @class ImageFile
*
* @param { Number } sizeBytes The size of the image file in bytes.
*
* @param { CheckSumType } checksumType
*
* @param { string } checksum The checksum value of the image file, in the format specified by the checksumType field.
*/
export default class ImageFile {
/**
* Constructs a ImageFile 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/ImageFile} obj Optional instance to populate.
* @param callFromChild {Boolean} Flag to recognise calling instance
* @return {module:Ntnx/ImageFile} The populated ImageFile 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 ImageFile.
* Represents a single binary file within an LCM image. Each file has a name, size, checksum, and catalog location identifier.
* @alias module:Ntnx/ImageFile
*
* @param { Number } sizeBytes The size of the image file in bytes.
*
* @param { CheckSumType } checksumType
*
* @param { string } checksum The checksum value of the image file, in the format specified by the checksumType field.
*/
constructor(sizeBytes: number, checksumType: CheckSumType, checksum: string);
sizeBytes: number;
checksumType: string;
checksum: string;
$objectType: string;
/** @type {object} */
$reserved: object;
/** @type {object} */
$unknownFields: object;
/**
* Returns The global catalog item UUID for this image file. Used internally by LCM to locate the file in the Nutanix catalog. This is a read-only field.
* @return {string}
*/
getFileLocationId(): string;
/**
* Sets The global catalog item UUID for this image file. Used internally by LCM to locate the file in the Nutanix catalog. This is a read-only field.
* @param {string} fileLocationId The global catalog item UUID for this image file. Used internally by LCM to locate the file in the Nutanix catalog. This is a read-only field.
*/
setFileLocationId(fileLocationId: string): void;
fileLocationId: string;
/**
* Returns The filename of the image file (e.g. \"nos_update.tar.gz\", \"bmc_fw.bin\").
* @return {string}
*/
getName(): string;
/**
* Sets The filename of the image file (e.g. \"nos_update.tar.gz\", \"bmc_fw.bin\").
* @param {string} name The filename of the image file (e.g. \"nos_update.tar.gz\", \"bmc_fw.bin\").
*/
setName(name: string): void;
name: string;
/**
* Returns The size of the image file in bytes.
* @return {Number}
*/
getSizeBytes(): number;
/**
* Sets The size of the image file in bytes.
* @param {Number} sizeBytes The size of the image file in bytes.
*/
setSizeBytes(sizeBytes: number): void;
/**
* Returns The local file path of the image on the cluster. This is a read-only field populated after the image has been downloaded.
* @return {string}
*/
getFilePath(): string;
/**
* Sets The local file path of the image on the cluster. This is a read-only field populated after the image has been downloaded.
* @param {string} filePath The local file path of the image on the cluster. This is a read-only field populated after the image has been downloaded.
*/
setFilePath(filePath: string): void;
filePath: string;
/**
* @return {CheckSumType}
*/
getChecksumType(): CheckSumType;
/**
* @param {CheckSumType} checksumType
*/
setChecksumType(checksumType: CheckSumType): void;
/**
* Returns The checksum value of the image file, in the format specified by the checksumType field.
* @return {string}
*/
getChecksum(): string;
/**
* Sets The checksum value of the image file, in the format specified by the checksumType field.
* @param {string} checksum The checksum value of the image file, in the format specified by the checksumType field.
*/
setChecksum(checksum: string): void;
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 CheckSumType from "../common/CheckSumType";
import ValidationError from "../../../validation/ValidationError";