Class V1AuditAnnotation
java.lang.Object
io.kubernetes.client.openapi.models.V1AuditAnnotation
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1AuditAnnotation
extends Object
AuditAnnotation describes how to produce an audit annotation for an API request.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1AuditAnnotation
Create an instance of V1AuditAnnotation given an JSON stringgetKey()
key specifies the audit annotation key.valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value.int
hashCode()
void
void
setValueExpression
(String valueExpression) toJson()
Convert an instance of V1AuditAnnotation to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundvalueExpression
(String valueExpression)
-
Field Details
-
SERIALIZED_NAME_KEY
- See Also:
-
SERIALIZED_NAME_VALUE_EXPRESSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1AuditAnnotation
public V1AuditAnnotation()
-
-
Method Details
-
key
-
getKey
key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required.- Returns:
- key
-
setKey
-
valueExpression
-
getValueExpression
valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required.- Returns:
- valueExpression
-
setValueExpression
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1AuditAnnotation
-
fromJson
Create an instance of V1AuditAnnotation given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1AuditAnnotation
- Throws:
IOException
- if the JSON string is invalid with respect to V1AuditAnnotation
-
toJson
Convert an instance of V1AuditAnnotation to an JSON string- Returns:
- JSON string
-