/** * The Snapshot model module. * @module Ntnx/Snapshot * @version 4.3.1 * @class Snapshot * @extends ExternalizableAbstractModel * * @param { string } appProtectionPolicyExtId External identifier of the associated app protection policy. * * @param { string } name Name of the snapshot. * * @param { SnapshotStatus } status */ export default class Snapshot extends ExternalizableAbstractModel { /** * Constructs a new Snapshot. * A model that represents an application snapshot captured by App DR. * @alias module:Ntnx/Snapshot * @extends module:Ntnx/ExternalizableAbstractModel * * @param { string } appProtectionPolicyExtId External identifier of the associated app protection policy. * * @param { string } name Name of the snapshot. * * @param { SnapshotStatus } status */ constructor(appProtectionPolicyExtId: string, name: string, status: SnapshotStatus); appProtectionPolicyExtId: string; name: string; status: string; /** * Returns External identifier of the associated app protection policy. * @return {string} */ getAppProtectionPolicyExtId(): string; /** * Sets External identifier of the associated app protection policy. * @param {string} appProtectionPolicyExtId External identifier of the associated app protection policy. */ setAppProtectionPolicyExtId(appProtectionPolicyExtId: string): void; /** * Returns Name of the snapshot. * @return {string} */ getName(): string; /** * Sets Name of the snapshot. * @param {string} name Name of the snapshot. */ setName(name: string): void; /** * @return {SnapshotStatus} */ getStatus(): SnapshotStatus; /** * @param {SnapshotStatus} status */ setStatus(status: SnapshotStatus): void; /** * Returns Point-in-time capture of metadata. * @return {KVStringPair[]} */ getMetadata(): KVStringPair[]; /** * Sets Point-in-time capture of metadata. * @param {KVStringPair[]} metadata Point-in-time capture of metadata. */ setMetadata(metadata: KVStringPair[]): void; metadata: KVStringPair[]; /** * Returns Object creation timestamp. * @return {Date} */ getCreatedTime(): Date; /** * Sets Object creation timestamp. * @param {Date} createdTime Object creation timestamp. */ setCreatedTime(createdTime: Date): void; createdTime: Date; /** * Returns Last update timestamp. * @return {Date} */ getUpdatedTime(): Date; /** * Sets Last update timestamp. * @param {Date} updatedTime Last update timestamp. */ setUpdatedTime(updatedTime: Date): void; updatedTime: Date; /** * Returns Time at which the snapshot operation completed. * @return {Date} */ getCompletedTime(): Date; /** * Sets Time at which the snapshot operation completed. * @param {Date} completedTime Time at which the snapshot operation completed. */ setCompletedTime(completedTime: Date): void; completedTime: Date; #private; } import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel"; import SnapshotStatus from "./SnapshotStatus"; import KVStringPair from "../../../common/v1/config/KVStringPair";