UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

44 lines (43 loc) 2.87 kB
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook. * @export * @interface IoK8sApiAdmissionregistrationV1beta1MatchCondition */ export interface IoK8sApiAdmissionregistrationV1beta1MatchCondition { /** * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: * * 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. * See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the * request resource. * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ * * Required. * @type {string} * @memberof IoK8sApiAdmissionregistrationV1beta1MatchCondition */ expression: string; /** * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') * * Required. * @type {string} * @memberof IoK8sApiAdmissionregistrationV1beta1MatchCondition */ name: string; } export declare function IoK8sApiAdmissionregistrationV1beta1MatchConditionFromJSON(json: any): IoK8sApiAdmissionregistrationV1beta1MatchCondition; export declare function IoK8sApiAdmissionregistrationV1beta1MatchConditionFromJSONTyped(json: any, _ignoreDiscriminator: boolean): IoK8sApiAdmissionregistrationV1beta1MatchCondition; export declare function IoK8sApiAdmissionregistrationV1beta1MatchConditionToJSON(value?: IoK8sApiAdmissionregistrationV1beta1MatchCondition | null): any;