/** * The Bundle model module. * @module Ntnx/Bundle * @version 4.3.1 * @class Bundle * @extends ExternalizableAbstractModel * * @param { BundleVendor } vendor */ export default class Bundle extends ExternalizableAbstractModel { /** * Constructs a new Bundle. * Represents an LCM upgrade bundle containing one or more upgrade images. Bundles package software and firmware update payloads for delivery to clusters, primarily used in dark-site environments. Each bundle has a vendor (NUTANIX or THIRD_PARTY), a type, and may contain multiple images for different entities. * @alias module:Ntnx/Bundle * @extends module:Ntnx/ExternalizableAbstractModel * * @param { BundleVendor } vendor */ constructor(vendor: BundleVendor); vendor: string; /** * Returns The display name of the bundle (e.g. \"lcm_nos_6.10.tar.gz\"). When creating a bundle via the 2-step upload flow, this must be the object key used in the S3 PUT request to the objects-lite service in Step 1. * @return {string} */ getName(): string; /** * Sets The display name of the bundle (e.g. \"lcm_nos_6.10.tar.gz\"). When creating a bundle via the 2-step upload flow, this must be the object key used in the S3 PUT request to the objects-lite service in Step 1. * @param {string} name The display name of the bundle (e.g. \"lcm_nos_6.10.tar.gz\"). When creating a bundle via the 2-step upload flow, this must be the object key used in the S3 PUT request to the objects-lite service in Step 1. */ setName(name: string): void; name: string; /** * Returns The total size of the bundle in bytes. * @return {Number} */ getSizeBytes(): number; /** * Sets The total size of the bundle in bytes. * @param {Number} sizeBytes The total size of the bundle in bytes. */ setSizeBytes(sizeBytes: number): void; sizeBytes: number; /** * @return {BundleType} */ getType(): BundleType; /** * @param {BundleType} type */ setType(type: BundleType): void; type: any; /** * @return {BundleVendor} */ getVendor(): BundleVendor; /** * @param {BundleVendor} vendor */ setVendor(vendor: BundleVendor): void; /** * Returns List of LCM images contained within this bundle. Each image represents an upgrade payload for a specific entity class and model. * @return {Image[]} */ getImages(): (new (width?: number, height?: number) => HTMLImageElement)[]; /** * Sets List of LCM images contained within this bundle. Each image represents an upgrade payload for a specific entity class and model. * @param {Image[]} images List of LCM images contained within this bundle. Each image represents an upgrade payload for a specific entity class and model. */ setImages(images: (new (width?: number, height?: number) => HTMLImageElement)[]): void; images: (new (width?: number, height?: number) => HTMLImageElement)[]; /** * Returns The cluster UUID on which the resource is present or the operation is being performed. * @return {string} */ getClusterExtId(): string; /** * Sets The cluster UUID on which the resource is present or the operation is being performed. * @param {string} clusterExtId The cluster UUID on which the resource is present or the operation is being performed. */ setClusterExtId(clusterExtId: string): void; clusterExtId: string; /** * @return {BundleUrlSource} */ getUrlSource(): BundleUrlSource; /** * @param {BundleUrlSource} urlSource */ setUrlSource(urlSource: BundleUrlSource): void; urlSource: BundleUrlSource; /** * Returns SHA-256 checksum algorithm. * @return {LcmSha256Sum | LcmMd5Sum} */ getChecksum(): LcmSha256Sum | LcmMd5Sum; /** * Sets SHA-256 checksum algorithm. * @param {LcmSha256Sum | LcmMd5Sum} checksum SHA-256 checksum algorithm. */ setChecksum(checksum: LcmSha256Sum | LcmMd5Sum): void; checksum: LcmMd5Sum | LcmSha256Sum; /** * Returns The timestamp (in ISO 8601 format) when the bundle was created or uploaded to the cluster. * @return {Date} */ getCreatedTime(): Date; /** * Sets The timestamp (in ISO 8601 format) when the bundle was created or uploaded to the cluster. * @param {Date} createdTime The timestamp (in ISO 8601 format) when the bundle was created or uploaded to the cluster. */ setCreatedTime(createdTime: Date): void; createdTime: Date; /** * @return {BundleUploadMode} */ getUploadMode(): BundleUploadMode; /** * @param {BundleUploadMode} uploadMode */ setUploadMode(uploadMode: BundleUploadMode): void; uploadMode: string; /** * Returns List of entities within the bundle that were not applicable to the cluster during upload. Each entry explains which entity was unqualified and why. * @return {UnqualifiedEntitiesDetail[]} */ getUnqualifiedEntitiesDetail(): UnqualifiedEntitiesDetail[]; /** * Sets List of entities within the bundle that were not applicable to the cluster during upload. Each entry explains which entity was unqualified and why. * @param {UnqualifiedEntitiesDetail[]} unqualifiedEntitiesDetail List of entities within the bundle that were not applicable to the cluster during upload. Each entry explains which entity was unqualified and why. */ setUnqualifiedEntitiesDetail(unqualifiedEntitiesDetail: UnqualifiedEntitiesDetail[]): void; unqualifiedEntitiesDetail: UnqualifiedEntitiesDetail[]; #private; } import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel"; import BundleVendor from "./BundleVendor"; import BundleUrlSource from "./BundleUrlSource"; import LcmSha256Sum from "../common/LcmSha256Sum"; import LcmMd5Sum from "../common/LcmMd5Sum"; import BundleUploadMode from "./BundleUploadMode"; import UnqualifiedEntitiesDetail from "./UnqualifiedEntitiesDetail";