o
    ëÉ¶d>  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   s˜   e Zd ZdZdd„ Zedd„ ƒZejdd„ ƒZedd„ ƒZejd	d„ ƒZed
d„ ƒZ	e	jdd„ ƒZ	edd„ ƒZ
e
jdd„ ƒZ
dd„ Zdd„ Zdd„ ZdS )ÚRoutingz6
    The routing information for a vantage point.
    c                 K   s<   dddddœ| _ dddddœ| _d| _d| _d| _d| _dS )	a¨  
        Initializes a new Routing object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param as_label:
            The value to assign to the as_label property of this Routing.
        :type as_label: str

        :param asn:
            The value to assign to the asn property of this Routing.
        :type asn: int

        :param prefix:
            The value to assign to the prefix property of this Routing.
        :type prefix: str

        :param weight:
            The value to assign to the weight property of this Routing.
        :type weight: int

        ÚstrÚint)Úas_labelÚasnÚprefixÚweightZasLabelr
   r   r   N)Zswagger_typesZattribute_mapÚ	_as_labelÚ_asnÚ_prefixÚ_weight)ÚselfÚkwargs© r   úCusr/lib/python3.10/site-packages/oci/healthchecks/models/routing.pyÚ__init__   s   üü
zRouting.__init__c                 C   ó   | j S )z÷
        Gets the as_label of this Routing.
        The registry label for `asn`, usually the name of the organization that
        owns the ASN. May be omitted or null.


        :return: The as_label of this Routing.
        :rtype: str
        ©r   ©r   r   r   r   r	   ;   ó   zRouting.as_labelc                 C   ó
   || _ dS )zþ
        Sets the as_label of this Routing.
        The registry label for `asn`, usually the name of the organization that
        owns the ASN. May be omitted or null.


        :param as_label: The as_label of this Routing.
        :type: str
        Nr   )r   r	   r   r   r   r	   H   ó   
c                 C   r   )zì
        Gets the asn of this Routing.
        The Autonomous System Number (ASN) identifying the organization
        responsible for routing packets to `prefix`.


        :return: The asn of this Routing.
        :rtype: int
        ©r   r   r   r   r   r
   U   r   zRouting.asnc                 C   r   )zî
        Sets the asn of this Routing.
        The Autonomous System Number (ASN) identifying the organization
        responsible for routing packets to `prefix`.


        :param asn: The asn of this Routing.
        :type: int
        Nr   )r   r
   r   r   r   r
   b   r   c                 C   r   )zé
        Gets the prefix of this Routing.
        An IP prefix (CIDR syntax) that is less specific than
        `address`, through which `address` is routed.


        :return: The prefix of this Routing.
        :rtype: str
        ©r   r   r   r   r   r   o   r   zRouting.prefixc                 C   r   )zî
        Sets the prefix of this Routing.
        An IP prefix (CIDR syntax) that is less specific than
        `address`, through which `address` is routed.


        :param prefix: The prefix of this Routing.
        :type: str
        Nr   )r   r   r   r   r   r   |   r   c                 C   r   )a?  
        Gets the weight of this Routing.
        An integer between 0 and 100 used to select between multiple
        origin ASNs when routing to `prefix`. Most prefixes have
        exactly one origin ASN, in which case `weight` will be 100.


        :return: The weight of this Routing.
        :rtype: int
        ©r   r   r   r   r   r   ‰   s   zRouting.weightc                 C   r   )aD  
        Sets the weight of this Routing.
        An integer between 0 and 100 used to select between multiple
        origin ASNs when routing to `prefix`. Most prefixes have
        exactly one origin ASN, in which case `weight` will be 100.


        :param weight: The weight of this Routing.
        :type: int
        Nr   )r   r   r   r   r   r   —   s   
c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__¥   s   zRouting.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__¨   s   zRouting.__eq__c                 C   s
   | |k S r   r   r"   r   r   r   Ú__ne__®   s   
zRouting.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr	   Úsetterr
   r   r   r    r$   r%   r   r   r   r   r      s,    )







r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   