o
    ëÉ¶dÊ6  ã                   @   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Zd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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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e	d,d-„ ƒZejd.d-„ ƒZd/d0„ Zd1d2„ Zd3d4„ Zd5S )6Ú	HttpProbez`
    A summary that contains all of the mutable and immutable properties for an HTTP probe.
    ÚHTTPÚHTTPSÚGETÚHEADc                 K   s–   ddddddddddddddœ| _ ddd	d
ddddddddddœ| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
d| _d| _d| _d| _dS )a(	  
        Initializes a new HttpProbe object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param id:
            The value to assign to the id property of this HttpProbe.
        :type id: str

        :param results_url:
            The value to assign to the results_url property of this HttpProbe.
        :type results_url: str

        :param home_region:
            The value to assign to the home_region property of this HttpProbe.
        :type home_region: str

        :param time_created:
            The value to assign to the time_created property of this HttpProbe.
        :type time_created: datetime

        :param compartment_id:
            The value to assign to the compartment_id property of this HttpProbe.
        :type compartment_id: str

        :param targets:
            The value to assign to the targets property of this HttpProbe.
        :type targets: list[str]

        :param vantage_point_names:
            The value to assign to the vantage_point_names property of this HttpProbe.
        :type vantage_point_names: list[str]

        :param port:
            The value to assign to the port property of this HttpProbe.
        :type port: int

        :param timeout_in_seconds:
            The value to assign to the timeout_in_seconds property of this HttpProbe.
        :type timeout_in_seconds: int

        :param protocol:
            The value to assign to the protocol property of this HttpProbe.
            Allowed values for this property are: "HTTP", "HTTPS", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type protocol: str

        :param method:
            The value to assign to the method property of this HttpProbe.
            Allowed values for this property are: "GET", "HEAD", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type method: str

        :param path:
            The value to assign to the path property of this HttpProbe.
        :type path: str

        :param headers:
            The value to assign to the headers property of this HttpProbe.
        :type headers: dict(str, str)

        ÚstrÚdatetimez	list[str]Úintzdict(str, str))ÚidÚresults_urlÚhome_regionÚtime_createdÚcompartment_idÚtargetsÚvantage_point_namesÚportÚtimeout_in_secondsÚprotocolÚmethodÚpathÚheadersr   Z
resultsUrlZ
homeRegionZtimeCreatedZcompartmentIdr   ZvantagePointNamesr   ZtimeoutInSecondsr   r   r   r   N)Zswagger_typesZattribute_mapÚ_idÚ_results_urlÚ_home_regionÚ_time_createdÚ_compartment_idÚ_targetsÚ_vantage_point_namesÚ_portÚ_timeout_in_secondsÚ	_protocolÚ_methodÚ_pathÚ_headers)ÚselfÚkwargs© r*   úFusr/lib/python3.10/site-packages/oci/healthchecks/models/http_probe.pyÚ__init__"   sR   ?óó
zHttpProbe.__init__c                 C   ó   | j S )z“
        Gets the id of this HttpProbe.
        The OCID of the resource.


        :return: The id of this HttpProbe.
        :rtype: str
        ©r   ©r(   r*   r*   r+   r   Ž   ó   
zHttpProbe.idc                 C   ó
   || _ dS )z”
        Sets the id of this HttpProbe.
        The OCID of the resource.


        :param id: The id of this HttpProbe.
        :type: str
        Nr.   )r(   r   r*   r*   r+   r   š   ó   

c                 C   r-   )z±
        Gets the results_url of this HttpProbe.
        A URL for fetching the probe results.


        :return: The results_url of this HttpProbe.
        :rtype: str
        ©r   r/   r*   r*   r+   r   ¦   r0   zHttpProbe.results_urlc                 C   r1   )z»
        Sets the results_url of this HttpProbe.
        A URL for fetching the probe results.


        :param results_url: The results_url of this HttpProbe.
        :type: str
        Nr3   )r(   r   r*   r*   r+   r   ²   r2   c                 C   r-   )zÙ
        Gets the home_region of this HttpProbe.
        The region where updates must be made and where results must be fetched from.


        :return: The home_region of this HttpProbe.
        :rtype: str
        ©r   r/   r*   r*   r+   r   ¾   r0   zHttpProbe.home_regionc                 C   r1   )zã
        Sets the home_region of this HttpProbe.
        The region where updates must be made and where results must be fetched from.


        :param home_region: The home_region of this HttpProbe.
        :type: str
        Nr4   )r(   r   r*   r*   r+   r   Ê   r2   c                 C   r-   )zÎ
        Gets the time_created of this HttpProbe.
        The RFC 3339-formatted creation date and time of the probe.


        :return: The time_created of this HttpProbe.
        :rtype: datetime
        ©r   r/   r*   r*   r+   r   Ö   r0   zHttpProbe.time_createdc                 C   r1   )zÙ
        Sets the time_created of this HttpProbe.
        The RFC 3339-formatted creation date and time of the probe.


        :param time_created: The time_created of this HttpProbe.
        :type: datetime
        Nr5   )r(   r   r*   r*   r+   r   â   r2   c                 C   r-   )z®
        Gets the compartment_id of this HttpProbe.
        The OCID of the compartment.


        :return: The compartment_id of this HttpProbe.
        :rtype: str
        ©r   r/   r*   r*   r+   r   î   r0   zHttpProbe.compartment_idc                 C   r1   )z»
        Sets the compartment_id of this HttpProbe.
        The OCID of the compartment.


        :param compartment_id: The compartment_id of this HttpProbe.
        :type: str
        Nr6   )r(   r   r*   r*   r+   r   ú   r2   c                 C   r-   )zÅ
        Gets the targets of this HttpProbe.
        A list of targets (hostnames or IP addresses) of the probe.


        :return: The targets of this HttpProbe.
        :rtype: list[str]
        ©r    r/   r*   r*   r+   r     r0   zHttpProbe.targetsc                 C   r1   )zË
        Sets the targets of this HttpProbe.
        A list of targets (hostnames or IP addresses) of the probe.


        :param targets: The targets of this HttpProbe.
        :type: list[str]
        Nr7   )r(   r   r*   r*   r+   r     r2   c                 C   r-   )zä
        Gets the vantage_point_names of this HttpProbe.
        A list of names of vantage points from which to execute the probe.


        :return: The vantage_point_names of this HttpProbe.
        :rtype: list[str]
        ©r!   r/   r*   r*   r+   r     r0   zHttpProbe.vantage_point_namesc                 C   r1   )zö
        Sets the vantage_point_names of this HttpProbe.
        A list of names of vantage points from which to execute the probe.


        :param vantage_point_names: The vantage_point_names of this HttpProbe.
        :type: list[str]
        Nr8   )r(   r   r*   r*   r+   r   *  r2   c                 C   r-   )zï
        Gets the port of this HttpProbe.
        The port on which to probe endpoints. If unspecified, probes will use the
        default port of their protocol.


        :return: The port of this HttpProbe.
        :rtype: int
        ©r"   r/   r*   r*   r+   r   6  ó   zHttpProbe.portc                 C   r1   )zò
        Sets the port of this HttpProbe.
        The port on which to probe endpoints. If unspecified, probes will use the
        default port of their protocol.


        :param port: The port of this HttpProbe.
        :type: int
        Nr9   )r(   r   r*   r*   r+   r   C  ó   
c                 C   r-   )a3  
        Gets the timeout_in_seconds of this HttpProbe.
        The probe timeout in seconds. Valid values: 10, 20, 30, and 60.
        The probe timeout must be less than or equal to `intervalInSeconds` for monitors.


        :return: The timeout_in_seconds of this HttpProbe.
        :rtype: int
        ©r#   r/   r*   r*   r+   r   P  r:   zHttpProbe.timeout_in_secondsc                 C   r1   )aD  
        Sets the timeout_in_seconds of this HttpProbe.
        The probe timeout in seconds. Valid values: 10, 20, 30, and 60.
        The probe timeout must be less than or equal to `intervalInSeconds` for monitors.


        :param timeout_in_seconds: The timeout_in_seconds of this HttpProbe.
        :type: int
        Nr<   )r(   r   r*   r*   r+   r   ]  r;   c                 C   r-   )a0  
        Gets the protocol of this HttpProbe.
        Allowed values for this property are: "HTTP", "HTTPS", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The protocol of this HttpProbe.
        :rtype: str
        )r$   r/   r*   r*   r+   r   j  r:   zHttpProbe.protocolc                 C   ó    ddg}t ||ƒsd}|| _dS )zƒ
        Sets the protocol of this HttpProbe.

        :param protocol: The protocol of this HttpProbe.
        :type: str
        r   r   ÚUNKNOWN_ENUM_VALUEN)r   r$   )r(   r   Úallowed_valuesr*   r*   r+   r   w  ó   

c                 C   r-   )a*  
        Gets the method of this HttpProbe.
        Allowed values for this property are: "GET", "HEAD", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The method of this HttpProbe.
        :rtype: str
        )r%   r/   r*   r*   r+   r   „  r:   zHttpProbe.methodc                 C   r=   )z}
        Sets the method of this HttpProbe.

        :param method: The method of this HttpProbe.
        :type: str
        r	   r
   r>   N)r   r%   )r(   r   r?   r*   r*   r+   r   ‘  r@   c                 C   r-   )z¹
        Gets the path of this HttpProbe.
        The optional URL path to probe, including query parameters.


        :return: The path of this HttpProbe.
        :rtype: str
        ©r&   r/   r*   r*   r+   r   ž  r0   zHttpProbe.pathc                 C   r1   )z¼
        Sets the path of this HttpProbe.
        The optional URL path to probe, including query parameters.


        :param path: The path of this HttpProbe.
        :type: str
        NrA   )r(   r   r*   r*   r+   r   ª  r2   c                 C   r-   )a  
        Gets the headers of this HttpProbe.
        A dictionary of HTTP request headers.

        *Note:* Monitors and probes do not support the use of the `Authorization` HTTP header.


        :return: The headers of this HttpProbe.
        :rtype: dict(str, str)
        ©r'   r/   r*   r*   r+   r   ¶  s   zHttpProbe.headersc                 C   r1   )a  
        Sets the headers of this HttpProbe.
        A dictionary of HTTP request headers.

        *Note:* Monitors and probes do not support the use of the `Authorization` HTTP header.


        :param headers: The headers of this HttpProbe.
        :type: dict(str, str)
        NrB   )r(   r   r*   r*   r+   r   Ä  s   
c                 C   s   t | ƒS ©N)r   r/   r*   r*   r+   Ú__repr__Ò  s   zHttpProbe.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r(   Úotherr*   r*   r+   Ú__eq__Õ  s   zHttpProbe.__eq__c                 C   s
   | |k S rC   r*   rF   r*   r*   r+   Ú__ne__Û  s   
zHttpProbe.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZPROTOCOL_HTTPZPROTOCOL_HTTPSZ
METHOD_GETZMETHOD_HEADr,   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r   rD   rH   rI   r*   r*   r*   r+   r      s|    l

























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r*   r*   r*   r+   Ú<module>   s   