
    [j                      |    d Z 	 ddlmZ n# e$ r	 ddlmZ Y nw xY wddlZddlZddlZddlm	Z	  G d de
          ZdS )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.36
    Generated by: https://openapi-generator.tech
    )getfullargspec)
getargspecN)Configurationc                   0   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dZd Zd Zd Zd ZdS )V1FlowSchemaSpeczNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    V1FlowDistinguisherMethodint%V1PriorityLevelConfigurationReferencezlist[V1PolicyRulesWithSubjects])distinguisher_methodmatching_precedencepriority_level_configurationrulesdistinguisherMethodmatchingPrecedencepriorityLevelConfigurationr   Nc                     |t          j                    }|| _        d| _        d| _        d| _        d| _        d| _        ||| _        ||| _	        || _
        |	|| _        dS dS )z-V1FlowSchemaSpec - a model defined in OpenAPIN)r   get_default_copylocal_vars_configuration_distinguisher_method_matching_precedence_priority_level_configuration_rulesdiscriminatorr   r   r   r   )selfr   r   r   r   r   s         i/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/models/v1_flow_schema_spec.py__init__zV1FlowSchemaSpec.__init__4   s    #+'4'E'G'G$(@%%)"$(!-1*!+(<D%*':D$,H)DJJJ     c                     | j         S )zGets the distinguisher_method of this V1FlowSchemaSpec.  # noqa: E501


        :return: The distinguisher_method of this V1FlowSchemaSpec.  # noqa: E501
        :rtype: V1FlowDistinguisherMethod
        r   r   s    r   r   z%V1FlowSchemaSpec.distinguisher_methodH   s     ))r   c                     || _         dS )zSets the distinguisher_method of this V1FlowSchemaSpec.


        :param distinguisher_method: The distinguisher_method of this V1FlowSchemaSpec.  # noqa: E501
        :type distinguisher_method: V1FlowDistinguisherMethod
        Nr   )r   r   s     r   r   z%V1FlowSchemaSpec.distinguisher_methodR   s     &:"""r   c                     | j         S )a-  Gets the matching_precedence of this V1FlowSchemaSpec.  # 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 V1FlowSchemaSpec.  # noqa: E501
        :rtype: int
        r   r    s    r   r   z$V1FlowSchemaSpec.matching_precedence]   s     ((r   c                     || _         dS )aE  Sets the matching_precedence of this V1FlowSchemaSpec.

        `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 V1FlowSchemaSpec.  # noqa: E501
        :type matching_precedence: int
        Nr#   )r   r   s     r   r   z$V1FlowSchemaSpec.matching_precedenceh   s     %8!!!r   c                     | j         S )zGets the priority_level_configuration of this V1FlowSchemaSpec.  # noqa: E501


        :return: The priority_level_configuration of this V1FlowSchemaSpec.  # noqa: E501
        :rtype: V1PriorityLevelConfigurationReference
        )r   r    s    r   r   z-V1FlowSchemaSpec.priority_level_configurationt   s     11r   c                 N    | j         j        r|t          d          || _        dS )a  Sets the priority_level_configuration of this V1FlowSchemaSpec.


        :param priority_level_configuration: The priority_level_configuration of this V1FlowSchemaSpec.  # noqa: E501
        :type priority_level_configuration: V1PriorityLevelConfigurationReference
        NzDInvalid value for `priority_level_configuration`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r   s     r   r   z-V1FlowSchemaSpec.priority_level_configuration~   s6     (? 	eD`Dhcddd-I***r   c                     | j         S )a  Gets the rules of this V1FlowSchemaSpec.  # 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 V1FlowSchemaSpec.  # noqa: E501
        :rtype: list[V1PolicyRulesWithSubjects]
        r   r    s    r   r   zV1FlowSchemaSpec.rules   s     {r   c                     || _         dS )a  Sets the rules of this V1FlowSchemaSpec.

        `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 V1FlowSchemaSpec.  # noqa: E501
        :type rules: list[V1PolicyRulesWithSubjects]
        Nr*   )r   r   s     r   r   zV1FlowSchemaSpec.rules   s     r   Fc                    i }fdt          j        | j                  D ]\  }}t          | |          }r| j                            ||          n|}t          |t                    r$t          t          fd|                    ||<   mt          |t                    r6t          t          fd|
                                                    ||<    |          ||<   |S )z&Returns the model properties as a dictc                     t          | d          rUt          | j                  j        }t	          |          dk    r|                                 S |                               S | S )Nto_dict   )hasattrr   r.   argslen)xr1   	serializes     r   convertz)V1FlowSchemaSpec.to_dict.<locals>.convert   s[    q)$$ %ai005t99>>99;;&99Y///r   c                      |           S )N )r3   r5   s    r   <lambda>z*V1FlowSchemaSpec.to_dict.<locals>.<lambda>   s    ggajj r   c                 6    | d          | d                   fS )Nr   r/   r7   )itemr5   s    r   r8   z*V1FlowSchemaSpec.to_dict.<locals>.<lambda>   s    $q'7747+;+;!< r   )six	iteritemsopenapi_typesgetattrattribute_mapget
isinstancelistmapdictitems)r   r4   resultattr_valuer5   s    `    @r   r.   zV1FlowSchemaSpec.to_dict   s   	 	 	 	 	 }T%788 	. 	.GD!D$''E9BL4%))$555D%&& .#C((((% %    t E4(( .#C<<<<KKMM% %    t
  'wu~~tr   c                 N    t          j        |                                           S )z.Returns the string representation of the model)pprintpformatr.   r    s    r   to_strzV1FlowSchemaSpec.to_str   s    ~dllnn---r   c                 *    |                                  S )zFor `print` and `pprint`)rM   r    s    r   __repr__zV1FlowSchemaSpec.__repr__   s    {{}}r   c                     t          |t                    sdS |                                 |                                k    S )z&Returns true if both objects are equalFrA   r   r.   r   others     r   __eq__zV1FlowSchemaSpec.__eq__   s5    %!122 	5||~~00r   c                     t          |t                    sdS |                                 |                                k    S )z*Returns true if both objects are not equalTrQ   rR   s     r   __ne__zV1FlowSchemaSpec.__ne__   s5    %!122 	4||~~00r   )NNNNN)F)__name__
__module____qualname____doc__r=   r?   r   propertyr   setterr   r   r   r.   rM   rO   rT   rV   r7   r   r   r   r      s         !<$(O2	 M !63(D	 M   ( * * X*  : : ! : ) ) X) 	8 	8  	8 2 2 X2 "(
J 
J )(
J   X \	 	 \	   @. . .  1 1 11 1 1 1 1r   r   )rZ   inspectr   ImportErrorr   rK   rer;   kubernetes.client.configurationr   objectr   r7   r   r   <module>rb      s    5&&&&&&& 5 5 5444444445  				 



 9 9 9 9 9 9~1 ~1 ~1 ~1 ~1v ~1 ~1 ~1 ~1 ~1s    