/** * The BundleItem model module. * @module Ntnx/BundleItem * @version 4.3.1 * @class BundleItem * * @param { string } uri URI pointing to the bundle file location. Supports file:// protocol for local file access. * * @param { string } sha256Sum SHA-256 checksum of the bundle file for integrity verification. Required to ensure bundle integrity. */ export default class BundleItem { /** * Constructs a BundleItem 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/BundleItem} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/BundleItem} The populated BundleItem 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 BundleItem. * Metadata about bundle files including location and integrity information. * @alias module:Ntnx/BundleItem * * @param { string } uri URI pointing to the bundle file location. Supports file:// protocol for local file access. * * @param { string } sha256Sum SHA-256 checksum of the bundle file for integrity verification. Required to ensure bundle integrity. */ constructor(uri: string, sha256Sum: string); uri: string; sha256Sum: string; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns URI pointing to the bundle file location. Supports file:// protocol for local file access. * @return {string} */ getUri(): string; /** * Sets URI pointing to the bundle file location. Supports file:// protocol for local file access. * @param {string} uri URI pointing to the bundle file location. Supports file:// protocol for local file access. */ setUri(uri: string): void; /** * Returns SHA-256 checksum of the bundle file for integrity verification. Required to ensure bundle integrity. * @return {string} */ getSha256Sum(): string; /** * Sets SHA-256 checksum of the bundle file for integrity verification. Required to ensure bundle integrity. * @param {string} sha256Sum SHA-256 checksum of the bundle file for integrity verification. Required to ensure bundle integrity. */ setSha256Sum(sha256Sum: 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 ValidationError from "../../../validation/ValidationError";