
    >gj                     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ddZddd	d
dZddZed        Zej                  d        Zed        Z
e
j                  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)V1beta3FlowSchemaSpeczNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    V1beta3FlowDistinguisherMethodint*V1beta3PriorityLevelConfigurationReferencez$list[V1beta3PolicyRulesWithSubjects])distinguisher_methodmatching_precedencepriority_level_configurationrulesdistinguisherMethodmatchingPrecedencepriorityLevelConfigurationr   Nc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _        || _	        ||| _
        yy)z2V1beta3FlowSchemaSpec - a model defined in OpenAPIN)r   local_vars_configuration_distinguisher_method_matching_precedence_priority_level_configuration_rulesdiscriminatorr	   r
   r   r   )selfr	   r
   r   r   r   s         f/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1beta3_flow_schema_spec.py__init__zV1beta3FlowSchemaSpec.__init__1   su    #+'4$(@%%)"$(!-1*!+(<D%*':D$,H)DJ     c                     | j                   S )zGets the distinguisher_method of this V1beta3FlowSchemaSpec.  # noqa: E501


        :return: The distinguisher_method of this V1beta3FlowSchemaSpec.  # noqa: E501
        :rtype: V1beta3FlowDistinguisherMethod
        r   r   s    r   r	   z*V1beta3FlowSchemaSpec.distinguisher_methodE   s     )))r   c                     || _         y)zSets the distinguisher_method of this V1beta3FlowSchemaSpec.


        :param distinguisher_method: The distinguisher_method of this V1beta3FlowSchemaSpec.  # noqa: E501
        :type: V1beta3FlowDistinguisherMethod
        Nr   )r   r	   s     r   r	   z*V1beta3FlowSchemaSpec.distinguisher_methodO   s     &:"r   c                     | j                   S )a7  Gets the matching_precedence of this V1beta3FlowSchemaSpec.  # noqa: E501

        `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence.  Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.  # noqa: E501

        :return: The matching_precedence of this V1beta3FlowSchemaSpec.  # noqa: E501
        :rtype: int
        r   r   s    r   r
   z)V1beta3FlowSchemaSpec.matching_precedenceZ   s     (((r   c                     || _         y)a;  Sets the matching_precedence of this V1beta3FlowSchemaSpec.

        `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence.  Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.  # noqa: E501

        :param matching_precedence: The matching_precedence of this V1beta3FlowSchemaSpec.  # noqa: E501
        :type: int
        Nr    )r   r
   s     r   r
   z)V1beta3FlowSchemaSpec.matching_precedencee   s     %8!r   c                     | j                   S )zGets the priority_level_configuration of this V1beta3FlowSchemaSpec.  # noqa: E501


        :return: The priority_level_configuration of this V1beta3FlowSchemaSpec.  # noqa: E501
        :rtype: V1beta3PriorityLevelConfigurationReference
        )r   r   s    r   r   z2V1beta3FlowSchemaSpec.priority_level_configurationq   s     111r   c                 X    | j                   j                  r|t        d      || _        y)a  Sets the priority_level_configuration of this V1beta3FlowSchemaSpec.


        :param priority_level_configuration: The priority_level_configuration of this V1beta3FlowSchemaSpec.  # noqa: E501
        :type: V1beta3PriorityLevelConfigurationReference
        NzDInvalid value for `priority_level_configuration`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   z2V1beta3FlowSchemaSpec.priority_level_configuration{   s-     ((??D`Dhcdd-I*r   c                     | j                   S )a  Gets the rules of this V1beta3FlowSchemaSpec.  # noqa: E501

        `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.  # noqa: E501

        :return: The rules of this V1beta3FlowSchemaSpec.  # noqa: E501
        :rtype: list[V1beta3PolicyRulesWithSubjects]
        r   r   s    r   r   zV1beta3FlowSchemaSpec.rules   s     {{r   c                     || _         y)a  Sets the rules of this V1beta3FlowSchemaSpec.

        `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.  # noqa: E501

        :param rules: The rules of this V1beta3FlowSchemaSpec.  # noqa: E501
        :type: list[V1beta3PolicyRulesWithSubjects]
        Nr'   )r   r   s     r   r   zV1beta3FlowSchemaSpec.rules   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/V1beta3FlowSchemaSpec.to_dict.<locals>.<lambda>   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/   z/V1beta3FlowSchemaSpec.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V1beta3FlowSchemaSpec.to_dict   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V1beta3FlowSchemaSpec.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rC   r   s    r   __repr__zV1beta3FlowSchemaSpec.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr7   r   r+   r   others     r   __eq__zV1beta3FlowSchemaSpec.__eq__   s'    %!67||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrG   rH   s     r   __ne__zV1beta3FlowSchemaSpec.__ne__   s'    %!67||~00r   )NNNNN)__name__
__module____qualname____doc__r5   attribute_mapr   propertyr	   setterr
   r   r   r+   rC   rE   rJ   rL    r   r   r   r      s    !A$(T7	M !63(D	M( * *   : !: ) ) 	8  	8 2 2 "((
J )
J   \\	 	0.11r   r   )rP   rA   rer3   kubernetes.client.configurationr   objectr   rT   r   r   <module>rX      s&     	 
 9v1F v1r   