
    <ga                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.31
    Generated by: https://openapi-generator.tech
    N)Configurationc                       e Zd ZdZ	 dddZdddZddZed        Zej                  d	        Zed
        Z
e
j                  d        Z
d Zd Zd Zd Zd Zy)V1alpha1AuditAnnotationzNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    str)keyvalue_expressionr   valueExpressionNc                 p    |
t               }|| _        d| _        d| _        d| _        || _        || _        y)z4V1alpha1AuditAnnotation - a model defined in OpenAPIN)r   local_vars_configuration_key_value_expressiondiscriminatorr   r   )selfr   r   r   s       g/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1alpha1_audit_annotation.py__init__z V1alpha1AuditAnnotation.__init__-   s>    #+'4$(@%	!%! 0    c                     | j                   S )ap  Gets the key of this V1alpha1AuditAnnotation.  # noqa: E501

        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.  # noqa: E501

        :return: The key of this V1alpha1AuditAnnotation.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   zV1alpha1AuditAnnotation.key:   s     yyr   c                 X    | j                   j                  r|t        d      || _        y)ad  Sets the key of this V1alpha1AuditAnnotation.

        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.  # noqa: E501

        :param key: The key of this V1alpha1AuditAnnotation.  # noqa: E501
        :type: str
        Nz+Invalid value for `key`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   zV1alpha1AuditAnnotation.keyE   s*     ((??CKJKK	r   c                     | j                   S )a  Gets the value_expression of this V1alpha1AuditAnnotation.  # noqa: E501

        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.  # noqa: E501

        :return: The value_expression of this V1alpha1AuditAnnotation.  # noqa: E501
        :rtype: str
        )r   r   s    r   r   z(V1alpha1AuditAnnotation.value_expressionS   s     %%%r   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the value_expression of this V1alpha1AuditAnnotation.

        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.  # noqa: E501

        :param value_expression: The value_expression of this V1alpha1AuditAnnotation.  # noqa: E501
        :type: str
        Nz8Invalid value for `value_expression`, must not be `None`)r   r   r   r   )r   r   s     r   r   z(V1alpha1AuditAnnotation.value_expression^   s-     ((??DTD\WXX!1r   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrr   )xs    r   <lambda>z1V1alpha1AuditAnnotation.to_dict.<locals>.<lambda>t   s    WQ	-BaiikIIr   r   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r   r   r   )items    r   r    z1V1alpha1AuditAnnotation.to_dict.<locals>.<lambda>{   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr   r   dictitems)r   resultattr_values        r   r   zV1alpha1AuditAnnotation.to_dictl   s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatr   r   s    r   to_strzV1alpha1AuditAnnotation.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)r4   r   s    r   __repr__z V1alpha1AuditAnnotation.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr(   r   r   r   others     r   __eq__zV1alpha1AuditAnnotation.__eq__   s'    %!89||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTr8   r9   s     r   __ne__zV1alpha1AuditAnnotation.__ne__   s'    %!89||~00r   )NNN)__name__
__module____qualname____doc__r&   attribute_mapr   propertyr   setterr   r   r4   r6   r;   r=    r   r   r   r      s     !M -M
1   	ZZ  & & 2 20.11r   r   )rA   r2   rer$   kubernetes.client.configurationr   objectr   rE   r   r   <module>rI      s&     	 
 9C1f C1r   