UNPKG

kubernetes-models

Version:
24 lines (23 loc) 1.16 kB
import { ModelData, Model } from "@kubernetes-models/base"; /** * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. */ export interface IVariable { /** * expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. */ "expression": string; /** * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo` */ "name": string; } /** * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. */ export declare class Variable extends Model<IVariable> implements IVariable { "expression": string; "name": string; constructor(data?: ModelData<IVariable>); } export type { IVariable as IIoK8sApiAdmissionregistrationV1Variable, Variable as IoK8sApiAdmissionregistrationV1Variable };