Class V1alpha1MatchCondition
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha1MatchCondition
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1alpha1MatchCondition
extends Object
V1alpha1MatchCondition
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
expression
(String expression) static V1alpha1MatchCondition
Create an instance of V1alpha1MatchCondition given an JSON stringExpression represents the expression which will be evaluated by CEL.getName()
Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes.int
hashCode()
void
setExpression
(String expression) void
toJson()
Convert an instance of V1alpha1MatchCondition to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_EXPRESSION
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha1MatchCondition
public V1alpha1MatchCondition()
-
-
Method Details
-
expression
-
getExpression
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.- Returns:
- expression
-
setExpression
-
name
-
getName
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.- Returns:
- name
-
setName
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1alpha1MatchCondition
-
fromJson
Create an instance of V1alpha1MatchCondition given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha1MatchCondition
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha1MatchCondition
-
toJson
Convert an instance of V1alpha1MatchCondition to an JSON string- Returns:
- JSON string
-