/** * The AppProtectionPolicy model module. * @module Ntnx/AppProtectionPolicy * @version 4.3.1 * @class AppProtectionPolicy * @extends ExternalizableAbstractModel * * @param { string } name Name of the app protection policy. * * @param { ClusterTarget } sourceCluster * * @param { ReplicationTarget[] } replicationTargets List of replication target configurations. */ export default class AppProtectionPolicy extends ExternalizableAbstractModel { /** * Constructs a new AppProtectionPolicy. * A model that represents an Application Disaster Recovery (App DR) app protection policy. * @alias module:Ntnx/AppProtectionPolicy * @extends module:Ntnx/ExternalizableAbstractModel * * @param { string } name Name of the app protection policy. * * @param { ClusterTarget } sourceCluster * * @param { ReplicationTarget[] } replicationTargets List of replication target configurations. */ constructor(name: string, sourceCluster: ClusterTarget, replicationTargets: ReplicationTarget[]); name: string; sourceCluster: ClusterTarget; replicationTargets: ReplicationTarget[]; /** * Returns Name of the app protection policy. * @return {string} */ getName(): string; /** * Sets Name of the app protection policy. * @param {string} name Name of the app protection policy. */ setName(name: string): void; /** * Returns External identifier of the SMSP cluster to which the app protection policy is bound. * @return {string} */ getClusterExtId(): string; /** * Sets External identifier of the SMSP cluster to which the app protection policy is bound. * @param {string} clusterExtId External identifier of the SMSP cluster to which the app protection policy is bound. */ setClusterExtId(clusterExtId: string): void; clusterExtId: string; /** * @return {ClusterTarget} */ getSourceCluster(): ClusterTarget; /** * @param {ClusterTarget} sourceCluster */ setSourceCluster(sourceCluster: ClusterTarget): void; /** * Returns List of replication target configurations. * @return {ReplicationTarget[]} */ getReplicationTargets(): ReplicationTarget[]; /** * Sets List of replication target configurations. * @param {ReplicationTarget[]} replicationTargets List of replication target configurations. */ setReplicationTargets(replicationTargets: ReplicationTarget[]): void; /** * @return {AppProtectionPolicyState} */ getState(): AppProtectionPolicyState; /** * @param {AppProtectionPolicyState} state */ setState(state: AppProtectionPolicyState): void; state: string; /** * Returns Information about the Helm-managed applications being protected. * @return {HelmApplicationInfo[]} */ getHelmApplications(): HelmApplicationInfo[]; /** * Sets Information about the Helm-managed applications being protected. * @param {HelmApplicationInfo[]} helmApplications Information about the Helm-managed applications being protected. */ setHelmApplications(helmApplications: HelmApplicationInfo[]): void; helmApplications: HelmApplicationInfo[]; /** * Returns Protection targets that extend coverage across multiple namespaces. * @return {ProtectionTarget[]} */ getProtectionTargets(): ProtectionTarget[]; /** * Sets Protection targets that extend coverage across multiple namespaces. * @param {ProtectionTarget[]} protectionTargets Protection targets that extend coverage across multiple namespaces. */ setProtectionTargets(protectionTargets: ProtectionTarget[]): void; protectionTargets: ProtectionTarget[]; /** * 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 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[]; #private; } import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel"; import ClusterTarget from "./ClusterTarget"; import ReplicationTarget from "./ReplicationTarget"; import AppProtectionPolicyState from "./AppProtectionPolicyState"; import HelmApplicationInfo from "./HelmApplicationInfo"; import ProtectionTarget from "./ProtectionTarget"; import KVStringPair from "../../../common/v1/config/KVStringPair";