/** * The Image model module. * @module Ntnx/Image * @version 4.3.1 * @class Image * @extends ExternalizableAbstractModel * * @param { ImageType } type * * @param { ImageSource } source * * @param { string } name Name of the image. This field is required when creating an image */ export default class Image extends ExternalizableAbstractModel { /** * Constructs a new Image. * Details of an installer image containing AOS and hypervisor software for node provisioning * @alias module:Ntnx/Image * @extends module:Ntnx/ExternalizableAbstractModel * * @param { ImageType } type * * @param { ImageSource } source * * @param { string } name Name of the image. This field is required when creating an image */ constructor(type: ImageType, source: ImageSource, name: string); type: string; source: string; name: string; /** * @return {ImageType} */ getType(): ImageType; /** * @param {ImageType} type */ setType(type: ImageType): void; /** * @return {ImageSource} */ getSource(): ImageSource; /** * @param {ImageSource} source */ setSource(source: ImageSource): void; /** * Returns Name of the image. This field is required when creating an image * @return {string} */ getName(): string; /** * Sets Name of the image. This field is required when creating an image * @param {string} name Name of the image. This field is required when creating an image */ setName(name: string): void; /** * Returns Checksum value of the image. This is required and applicable only for AHV images * @return {ImageSha256Checksum | ImageMd5Checksum} */ getChecksum(): ImageSha256Checksum | ImageMd5Checksum; /** * Sets Checksum value of the image. This is required and applicable only for AHV images * @param {ImageSha256Checksum | ImageMd5Checksum} checksum Checksum value of the image. This is required and applicable only for AHV images */ setChecksum(checksum: ImageSha256Checksum | ImageMd5Checksum): void; checksum: ImageMd5Checksum | ImageSha256Checksum; /** * Returns Certificate chain for the image URL * @return {string} */ getCertificateChain(): string; /** * Sets Certificate chain for the image URL * @param {string} certificateChain Certificate chain for the image URL */ setCertificateChain(certificateChain: string): void; certificateChain: string; /** * Returns URL from where the image can be downloaded. This can be provided only through the update operation and only for images with REMOTE_URL as the source type * @return {string} */ getUrl(): string; /** * Sets URL from where the image can be downloaded. This can be provided only through the update operation and only for images with REMOTE_URL as the source type * @param {string} url URL from where the image can be downloaded. This can be provided only through the update operation and only for images with REMOTE_URL as the source type */ setUrl(url: string): void; url: string; /** * Returns URL from where the image metadata can be downloaded for an AOS image * @return {string} */ getMetadataDownloadUrl(): string; /** * Sets URL from where the image metadata can be downloaded for an AOS image * @param {string} metadataDownloadUrl URL from where the image metadata can be downloaded for an AOS image */ setMetadataDownloadUrl(metadataDownloadUrl: string): void; metadataDownloadUrl: string; /** * @return {FileStatus} */ getFileStatus(): FileStatus; /** * @param {FileStatus} fileStatus */ setFileStatus(fileStatus: FileStatus): void; fileStatus: string; /** * @return {MetadataStatus} */ getMetadataStatus(): MetadataStatus; /** * @param {MetadataStatus} metadataStatus */ setMetadataStatus(metadataStatus: MetadataStatus): void; metadataStatus: string; /** * Returns Version of the image * @return {string} */ getVersion(): string; /** * Sets Version of the image * @param {string} version Version of the image */ setVersion(version: string): void; version: string; /** * Returns Time when the image entity was created * @return {Date} */ getCreatedTime(): Date; /** * Sets Time when the image entity was created * @param {Date} createdTime Time when the image entity was created */ setCreatedTime(createdTime: Date): void; createdTime: Date; #private; } import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel"; import ImageType from "./ImageType"; import ImageSource from "./ImageSource"; import ImageSha256Checksum from "./ImageSha256Checksum"; import ImageMd5Checksum from "./ImageMd5Checksum"; import FileStatus from "./FileStatus"; import MetadataStatus from "./MetadataStatus";