/** * The PatchedImage model module. * @module Ntnx/PatchedImage * @version 4.3.1 * @class PatchedImage * @extends ExternalizableAbstractModel * * @param { HostType } hostType * * @param { string } name Patched image name * @param { LocalHostImageDetails } imageDetails Details of the image used for patching * * * @param { string } claimTokenExtId ExtId of the claim token used in the patched image * * @param { string } patchedIsoUrl URL for downloading the patched image * * @param { string } patchedIsoSha256Checksum SHA-256 checksum of the patched image * * @param { NodeConfiguration[] } nodeConfigurations List of node configurations used for patching the image */ export default class PatchedImage extends ExternalizableAbstractModel { /** * Constructs a new PatchedImage. * A customized hypervisor image combining a base image with patches for specific node deployments * @alias module:Ntnx/PatchedImage * @extends module:Ntnx/ExternalizableAbstractModel * * @param { HostType } hostType * * @param { string } name Patched image name * @param { LocalHostImageDetails } imageDetails Details of the image used for patching * * * @param { string } claimTokenExtId ExtId of the claim token used in the patched image * * @param { string } patchedIsoUrl URL for downloading the patched image * * @param { string } patchedIsoSha256Checksum SHA-256 checksum of the patched image * * @param { NodeConfiguration[] } nodeConfigurations List of node configurations used for patching the image */ constructor(hostType: HostType, name: string, imageDetails: LocalHostImageDetails, claimTokenExtId: string, patchedIsoUrl: string, patchedIsoSha256Checksum: string, nodeConfigurations: NodeConfiguration[]); hostType: string; name: string; imageDetails: LocalHostImageDetails; claimTokenExtId: string; patchedIsoUrl: string; patchedIsoSha256Checksum: string; nodeConfigurations: NodeConfiguration[]; /** * @return {HostType} */ getHostType(): HostType; /** * @param {HostType} hostType */ setHostType(hostType: HostType): void; /** * Returns Patched image name * @return {string} */ getName(): string; /** * Sets Patched image name * @param {string} name Patched image name */ setName(name: string): void; /** * Returns Version of the base hypervisor or host OS image used for patching * @return {string} */ getVersion(): string; /** * Sets Version of the base hypervisor or host OS image used for patching * @param {string} version Version of the base hypervisor or host OS image used for patching */ setVersion(version: string): void; version: string; /** * Returns Details of the image used for patching * @return {LocalHostImageDetails} */ getImageDetails(): LocalHostImageDetails; /** * Sets Details of the image used for patching * @param {LocalHostImageDetails} imageDetails Details of the image used for patching */ setImageDetails(imageDetails: LocalHostImageDetails): void; /** * Returns ExtId of the claim token used in the patched image * @return {string} */ getClaimTokenExtId(): string; /** * Sets ExtId of the claim token used in the patched image * @param {string} claimTokenExtId ExtId of the claim token used in the patched image */ setClaimTokenExtId(claimTokenExtId: string): void; /** * Returns URL for downloading the patched image * @return {string} */ getPatchedIsoUrl(): string; /** * Sets URL for downloading the patched image * @param {string} patchedIsoUrl URL for downloading the patched image */ setPatchedIsoUrl(patchedIsoUrl: string): void; /** * Returns SHA-256 checksum of the patched image * @return {string} */ getPatchedIsoSha256Checksum(): string; /** * Sets SHA-256 checksum of the patched image * @param {string} patchedIsoSha256Checksum SHA-256 checksum of the patched image */ setPatchedIsoSha256Checksum(patchedIsoSha256Checksum: string): void; /** * Returns List of node configurations used for patching the image * @return {NodeConfiguration[]} */ getNodeConfigurations(): NodeConfiguration[]; /** * Sets List of node configurations used for patching the image * @param {NodeConfiguration[]} nodeConfigurations List of node configurations used for patching the image */ setNodeConfigurations(nodeConfigurations: NodeConfiguration[]): void; /** * Returns External ID of the owner * @return {string} */ getOwnerExtId(): string; /** * Sets External ID of the owner * @param {string} ownerExtId External ID of the owner */ setOwnerExtId(ownerExtId: string): void; ownerExtId: string; /** * Returns Timestamp when the patched image was created * @return {Date} */ getCreatedTime(): Date; /** * Sets Timestamp when the patched image was created * @param {Date} createdTime Timestamp when the patched image was created */ setCreatedTime(createdTime: Date): void; createdTime: Date; #private; } import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel"; import LocalHostImageDetails from "./LocalHostImageDetails"; import NodeConfiguration from "./NodeConfiguration"; import HostType from "./HostType";