Ë
    <ªg('  ã                   ó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.32
    Generated by: https://openapi-generator.tech
é    N)ÚConfigurationc                   ó|   — e Zd ZdZ	 ddiZddiZdd„Zed„ «       Zej                  d„ «       Zd„ Z
d	„ Zd
„ Zd„ Zd„ Zy)ÚV1alpha1JSONPatchzŠNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    Ú
expressionÚstrNc                 óZ   — |€
t        «       }|| _        d| _        d| _        ||| _        yy)z.V1alpha1JSONPatch - a model defined in OpenAPIN)r   Úlocal_vars_configurationÚ_expressionÚdiscriminatorr   )Úselfr   r	   s      úa/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1alpha1_json_patch.pyÚ__init__zV1alpha1JSONPatch.__init__+   s:   € à#Ð+Ü'4£Ð$Ø(@ˆÔ%àˆÔØ!ˆÔàÐ!Ø(ˆDOð "ó    c                 ó   — | j                   S )ah  Gets the expression of this V1alpha1JSONPatch.  # noqa: E501

        expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec  expression must return an array of JSONPatch values.  For example, this CEL expression returns a JSON patch to conditionally modify a value:     [      JSONPatch{op: "test", path: "/spec/example", value: "Red"},      JSONPatch{op: "replace", path: "/spec/example", value: "Green"}    ]  To define an object for the patch value, use Object types. For example:     [      JSONPatch{        op: "add",        path: "/spec/selector",        value: Object.spec.selector{matchLabels: {"environment": "test"}}      }    ]  To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:     [      JSONPatch{        op: "add",        path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),        value: "test"      },    ]  CEL expressions have access to the types needed to create JSON patches and objects:  - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL   function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')  CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful 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 API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.   For example, a variable named 'foo' can be accessed as 'variables.foo'. - '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.  CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:  - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).  Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.  # noqa: E501

        :return: The expression of this V1alpha1JSONPatch.  # noqa: E501
        :rtype: str
        ©r
   ©r   s    r   r   zV1alpha1JSONPatch.expression7   s   € ð ×ÑÐr   c                 ó   — || _         y)ac  Sets the expression of this V1alpha1JSONPatch.

        expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec  expression must return an array of JSONPatch values.  For example, this CEL expression returns a JSON patch to conditionally modify a value:     [      JSONPatch{op: "test", path: "/spec/example", value: "Red"},      JSONPatch{op: "replace", path: "/spec/example", value: "Green"}    ]  To define an object for the patch value, use Object types. For example:     [      JSONPatch{        op: "add",        path: "/spec/selector",        value: Object.spec.selector{matchLabels: {"environment": "test"}}      }    ]  To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:     [      JSONPatch{        op: "add",        path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),        value: "test"      },    ]  CEL expressions have access to the types needed to create JSON patches and objects:  - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL   function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')  CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful 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 API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.   For example, a variable named 'foo' can be accessed as 'variables.foo'. - '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.  CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:  - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).  Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.  # noqa: E501

        :param expression: The expression of this V1alpha1JSONPatch.  # noqa: E501
        :type: str
        Nr   )r   r   s     r   r   zV1alpha1JSONPatch.expressionB   s   € ð &ˆÕ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>z+V1alpha1JSONPatch.to_dict.<locals>.<lambda>V   s   € ¬W°Q¸	Ô-B˜aŸi™i›kÐIÈÐIr   r   c                 óT   — t        | d   d«      r| d   | d   j                  «       fS | S )Né   r   r   r   )Úitems    r   r   z+V1alpha1JSONPatch.to_dict.<locals>.<lambda>]   s6   € Ü˜t A™w¨	Ô2ð #' q¡'¨4°©7¯?©?Ó+<Ð!=ð "=Ø8<ð"=r   )ÚsixÚ	iteritemsÚopenapi_typesÚgetattrÚ
isinstanceÚlistÚmapr   r   ÚdictÚitems)r   ÚresultÚattrÚ_Úvalues        r   r   zV1alpha1JSONPatch.to_dictN   s¯   € àˆä—}‘} T×%7Ñ%7Ö8‰GˆD!Ü˜D $Ó'ˆEÜ˜%¤Ô&Ü#¤CÙIØó%ó  t’ô ˜ 	Ô*Ø$Ÿ}™}›t’Ü˜E¤4Ô(Ü#¤Cñ=à—K‘K“Mó%ó  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V1alpha1JSONPatch.to_strf   s   € ä~‰~˜dŸl™l›nÓ-Ð-r   c                 ó"   — | j                  «       S )zFor `print` and `pprint`)r.   r   s    r   Ú__repr__zV1alpha1JSONPatch.__repr__j   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V1alpha1JSONPatch.__eq__n   s'   € ä˜%Ô!2Ô3Øà|‰|‹~ §¡£Ñ0Ð0r   c                 óf   — t        |t        «      sy| j                  «       |j                  «       k7  S )z*Returns true if both objects are not equalTr2   r3   s     r   Ú__ne__zV1alpha1JSONPatch.__ne__u   s'   € ä˜%Ô!2Ô3Øà|‰|‹~ §¡£Ñ0Ð0r   )NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r    Úattribute_mapr   Úpropertyr   Úsetterr   r.   r0   r5   r7   © r   r   r   r      st   „ ñðð 	eð€Mð
 	lð€Mó
)ð ñ ó ð ð ×Ññ	&ó ð	&òò0.òò1ó1r   r   )r;   r,   Úrer   Úkubernetes.client.configurationr   Úobjectr   r?   r   r   Ú<module>rC      s&   ðñó Û 	ã 
å 9ôe1˜õ e1r   