/** * The LinearRetention model module. * @module Ntnx/LinearRetention * @version 4.3.1 * @class LinearRetention * * @param { Number } local Specifies the number of recovery points to retain on the local location. */ export default class LinearRetention { /** * Constructs a LinearRetention from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:Ntnx/LinearRetention} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/LinearRetention} The populated LinearRetention instance. */ static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any; /** * Converts a given snake_case string to camelCase. * @param {string} snakeStr - The input string in snake_case format. * @returns {string} - The converted string in camelCase format. */ static snakeToCamel(snakeStr: string): string; /** * Constructs a new LinearRetention. * A simple retention scheme for the policy. If you set the retention number to n, the policy retains the n recent recovery points. * @alias module:Ntnx/LinearRetention * * @param { Number } local Specifies the number of recovery points to retain on the local location. */ constructor(local: number); local: number; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns Specifies the number of recovery points to retain on the local location. * @return {Number} */ getLocal(): number; /** * Sets Specifies the number of recovery points to retain on the local location. * @param {Number} local Specifies the number of recovery points to retain on the local location. */ setLocal(local: number): void; /** * Returns Specifies the number of recovery points to retain on the remote location. * @return {Number} */ getRemote(): number; /** * Sets Specifies the number of recovery points to retain on the remote location. * @param {Number} remote Specifies the number of recovery points to retain on the remote location. */ setRemote(remote: number): void; remote: number; get$Reserved(): any; get$ObjectType(): string; get$UnknownFields(): any; toJson(forMutation: any): any; validate(scope: any, properties: any, ...args: any[]): Promise; validateProperty(scope: any, property: any): ValidationError; #private; } import ValidationError from "../../../validation/ValidationError";