/** * The ProtectionTarget model module. * @module Ntnx/ProtectionTarget * @version 4.3.1 * @class ProtectionTarget * * @param { string } name Name of the protection target. Used when deploying NDK Application custom resource. * * @param { string } namespace Namespace where protected resources are located. */ export default class ProtectionTarget { /** * Constructs a ProtectionTarget 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/ProtectionTarget} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/ProtectionTarget} The populated ProtectionTarget 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 ProtectionTarget. * Protection target grouping Kubernetes resources to protect. * @alias module:Ntnx/ProtectionTarget * * @param { string } name Name of the protection target. Used when deploying NDK Application custom resource. * * @param { string } namespace Namespace where protected resources are located. */ constructor(name: string, namespace: string); name: string; namespace: string; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns Name of the protection target. Used when deploying NDK Application custom resource. * @return {string} */ getName(): string; /** * Sets Name of the protection target. Used when deploying NDK Application custom resource. * @param {string} name Name of the protection target. Used when deploying NDK Application custom resource. */ setName(name: string): void; /** * Returns Namespace where protected resources are located. * @return {string} */ getNamespace(): string; /** * Sets Namespace where protected resources are located. * @param {string} namespace Namespace where protected resources are located. */ setNamespace(namespace: string): void; /** * Returns Selectors for protected resources. Each RLS selects resources based on specified label selector and then applies excludes and includes rules for those returned resources. Omitting this will protect all the resources in the namespace. * @return {ResourceLabelSelector[]} */ getSelectors(): ResourceLabelSelector[]; /** * Sets Selectors for protected resources. Each RLS selects resources based on specified label selector and then applies excludes and includes rules for those returned resources. Omitting this will protect all the resources in the namespace. * @param {ResourceLabelSelector[]} selectors Selectors for protected resources. Each RLS selects resources based on specified label selector and then applies excludes and includes rules for those returned resources. Omitting this will protect all the resources in the namespace. */ setSelectors(selectors: ResourceLabelSelector[]): void; selectors: ResourceLabelSelector[]; 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 ResourceLabelSelector from "./ResourceLabelSelector"; import ValidationError from "../../../validation/ValidationError";