/** * The ConsistencyRule model module. * @module Ntnx/ConsistencyRule * @version 4.3.1 * @class ConsistencyRule * @extends ExternalizableAbstractModel * * @param { string } name Name of the consistency rule. * * @param { string[] } categoryIds Specifies the list of external identifiers of categories that must form the consistency rule. This consistently protects any VM or volume group associated with this category. The number of entities attached to these categories should not exceed 32, and should reside in the same cluster. */ export default class ConsistencyRule extends ExternalizableAbstractModel { /** * Constructs a new ConsistencyRule. * There are many scenarios in which it is essential to capture an application's state as an aggregate of the internal states of a group of related entities at a specific moment in time. The consistency rule is a collection of all the entities whose snapshot represents the application state at that point in time. * @alias module:Ntnx/ConsistencyRule * @extends module:Ntnx/ExternalizableAbstractModel * * @param { string } name Name of the consistency rule. * * @param { string[] } categoryIds Specifies the list of external identifiers of categories that must form the consistency rule. This consistently protects any VM or volume group associated with this category. The number of entities attached to these categories should not exceed 32, and should reside in the same cluster. */ constructor(name: string, categoryIds: string[]); name: string; categoryIds: string[]; /** * Returns Name of the consistency rule. * @return {string} */ getName(): string; /** * Sets Name of the consistency rule. * @param {string} name Name of the consistency rule. */ setName(name: string): void; /** * Returns Specifies the list of external identifiers of categories that must form the consistency rule. This consistently protects any VM or volume group associated with this category. The number of entities attached to these categories should not exceed 32, and should reside in the same cluster. * @return {string[]} */ getCategoryIds(): string[]; /** * Sets Specifies the list of external identifiers of categories that must form the consistency rule. This consistently protects any VM or volume group associated with this category. The number of entities attached to these categories should not exceed 32, and should reside in the same cluster. * @param {string[]} categoryIds Specifies the list of external identifiers of categories that must form the consistency rule. This consistently protects any VM or volume group associated with this category. The number of entities attached to these categories should not exceed 32, and should reside in the same cluster. */ setCategoryIds(categoryIds: string[]): void; #private; } import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel";