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 )ÚOriginz}
    A detailed description of your web application's origin host server. An origin must be defined to set up WAF rules.
    c                 K   s<   dddddœ| _ dddddœ| _d	| _d	| _d	| _d	| _d	S )
aã  
        Initializes a new Origin object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param uri:
            The value to assign to the uri property of this Origin.
        :type uri: str

        :param http_port:
            The value to assign to the http_port property of this Origin.
        :type http_port: int

        :param https_port:
            The value to assign to the https_port property of this Origin.
        :type https_port: int

        :param custom_headers:
            The value to assign to the custom_headers property of this Origin.
        :type custom_headers: list[oci.waas.models.Header]

        ÚstrÚintzlist[Header])ÚuriÚ	http_portÚ
https_portÚcustom_headersr	   ZhttpPortZ	httpsPortZcustomHeadersN)Zswagger_typesZattribute_mapÚ_uriÚ
_http_portÚ_https_portÚ_custom_headers)ÚselfÚkwargs© r   ú:usr/lib/python3.10/site-packages/oci/waas/models/origin.pyÚ__init__   s   üü
zOrigin.__init__c                 C   ó   | j S )zþ
        **[Required]** Gets the uri of this Origin.
        The URI of the origin. Does not support paths. Port numbers should be specified in the `httpPort` and `httpsPort` fields.


        :return: The uri of this Origin.
        :rtype: str
        ©r   ©r   r   r   r   r	   ;   ó   
z
Origin.uric                 C   ó
   || _ dS )zñ
        Sets the uri of this Origin.
        The URI of the origin. Does not support paths. Port numbers should be specified in the `httpPort` and `httpsPort` fields.


        :param uri: The uri of this Origin.
        :type: str
        Nr   )r   r	   r   r   r   r	   G   ó   

c                 C   r   )a#  
        Gets the http_port of this Origin.
        The HTTP port on the origin that the web application listens on. If unspecified, defaults to `80`. If `0` is specified - the origin is not used for HTTP traffic.


        :return: The http_port of this Origin.
        :rtype: int
        ©r   r   r   r   r   r
   S   r   zOrigin.http_portc                 C   r   )a+  
        Sets the http_port of this Origin.
        The HTTP port on the origin that the web application listens on. If unspecified, defaults to `80`. If `0` is specified - the origin is not used for HTTP traffic.


        :param http_port: The http_port of this Origin.
        :type: int
        Nr   )r   r
   r   r   r   r
   _   r   c                 C   r   )a(  
        Gets the https_port of this Origin.
        The HTTPS port on the origin that the web application listens on. If unspecified, defaults to `443`. If `0` is specified - the origin is not used for HTTPS traffic.


        :return: The https_port of this Origin.
        :rtype: int
        ©r   r   r   r   r   r   k   r   zOrigin.https_portc                 C   r   )a1  
        Sets the https_port of this Origin.
        The HTTPS port on the origin that the web application listens on. If unspecified, defaults to `443`. If `0` is specified - the origin is not used for HTTPS traffic.


        :param https_port: The https_port of this Origin.
        :type: int
        Nr   )r   r   r   r   r   r   w   r   c                 C   r   )zÖ
        Gets the custom_headers of this Origin.
        A list of HTTP headers to forward to your origin.


        :return: The custom_headers of this Origin.
        :rtype: list[oci.waas.models.Header]
        ©r   r   r   r   r   r   ƒ   r   zOrigin.custom_headersc                 C   r   )zã
        Sets the custom_headers of this Origin.
        A list of HTTP headers to forward to your origin.


        :param custom_headers: The custom_headers of this Origin.
        :type: list[oci.waas.models.Header]
        Nr   )r   r   r   r   r   r      r   c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__›   s   zOrigin.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__ž   s   zOrigin.__eq__c                 C   s
   | |k S r   r   r"   r   r   r   Ú__ne__¤   s   
zOrigin.__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   