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
edd„ ƒZejdd„ ƒZdd„ Zdd„ Zdd„ ZdS )ÚResponsez5
    A container object for response attributes.
    c                 K   sF   ddddddœ| _ dddd	d
dœ| _d| _d| _d| _d| _d| _dS )am  
        Initializes a new Response object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param status:
            The value to assign to the status property of this Response.
        :type status: str

        :param response_time:
            The value to assign to the response_time property of this Response.
        :type response_time: datetime

        :param headers:
            The value to assign to the headers property of this Response.
        :type headers: dict(str, list[str])

        :param payload:
            The value to assign to the payload property of this Response.
        :type payload: dict(str, object)

        :param message:
            The value to assign to the message property of this Response.
        :type message: str

        ÚstrÚdatetimezdict(str, list[str])zdict(str, object))ÚstatusÚresponse_timeÚheadersÚpayloadÚmessager	   ZresponseTimer   r   r   N)Zswagger_typesZattribute_mapÚ_statusÚ_response_timeÚ_headersÚ_payloadÚ_message)ÚselfÚkwargs© r   ú=usr/lib/python3.10/site-packages/oci/audit/models/response.pyÚ__init__   s"   û	û
zResponse.__init__c                 C   ó   | j S )z¸
        Gets the status of this Response.
        The status code of the response.

        Example: `200`


        :return: The status of this Response.
        :rtype: str
        ©r   ©r   r   r   r   r	   B   s   zResponse.statusc                 C   ó
   || _ dS )z½
        Sets the status of this Response.
        The status code of the response.

        Example: `200`


        :param status: The status of this Response.
        :type: str
        Nr   )r   r	   r   r   r   r	   P   s   
c                 C   r   )aT  
        Gets the response_time of this Response.
        The time of the response to the audited request, expressed in
        `RFC 3339`__ timestamp format.

        Example: `2019-09-18T00:10:59.278Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The response_time of this Response.
        :rtype: datetime
        ©r   r   r   r   r   r
   ^   s   zResponse.response_timec                 C   r   )a`  
        Sets the response_time of this Response.
        The time of the response to the audited request, expressed in
        `RFC 3339`__ timestamp format.

        Example: `2019-09-18T00:10:59.278Z`

        __ https://tools.ietf.org/html/rfc3339


        :param response_time: The response_time of this Response.
        :type: datetime
        Nr   )r   r
   r   r   r   r
   o   s   
c                 C   r   )aÓ  
        Gets the headers of this Response.
        The headers of the response.

        Example:

          -----
            {
              "ETag": [
                "<unique_ID>"
              ],
              "Connection": [
                "close"
              ],
              "Content-Length": [
                "1828"
              ],
              "opc-request-id": [
                "<unique_ID>"
              ],
              "Date": [
                "Wed, 18 Sep 2019 00:10:59 GMT"
              ],
              "Content-Type": [
                "application/json"
              ]
            }
          -----


        :return: The headers of this Response.
        :rtype: dict(str, list[str])
        ©r   r   r   r   r   r   €   s   #zResponse.headersc                 C   r   )aÙ  
        Sets the headers of this Response.
        The headers of the response.

        Example:

          -----
            {
              "ETag": [
                "<unique_ID>"
              ],
              "Connection": [
                "close"
              ],
              "Content-Length": [
                "1828"
              ],
              "opc-request-id": [
                "<unique_ID>"
              ],
              "Date": [
                "Wed, 18 Sep 2019 00:10:59 GMT"
              ],
              "Content-Type": [
                "application/json"
              ]
            }
          -----


        :param headers: The headers of this Response.
        :type: dict(str, list[str])
        Nr   )r   r   r   r   r   r   ¥   s   
#c                 C   r   )aâ  
        Gets the payload of this Response.
        This value is included for backward compatibility with the Audit version 1 schema, where
        it contained metadata of interest from the response payload.

        Example:

          -----
            {
              "resourceName": "my_instance",
              "id": "ocid1.instance.oc1.phx.<unique_ID>"
            }
          -----


        :return: The payload of this Response.
        :rtype: dict(str, object)
        ©r   r   r   r   r   r   Ê   s   zResponse.payloadc                 C   r   )aè  
        Sets the payload of this Response.
        This value is included for backward compatibility with the Audit version 1 schema, where
        it contained metadata of interest from the response payload.

        Example:

          -----
            {
              "resourceName": "my_instance",
              "id": "ocid1.instance.oc1.phx.<unique_ID>"
            }
          -----


        :param payload: The payload of this Response.
        :type: dict(str, object)
        Nr   )r   r   r   r   r   r   à   s   
c                 C   r   )zÝ
        Gets the message of this Response.
        A friendly description of what happened during the operation. Use this for troubleshooting.


        :return: The message of this Response.
        :rtype: str
        ©r   r   r   r   r   r   ö   s   
zResponse.messagec                 C   r   )zã
        Sets the message of this Response.
        A friendly description of what happened during the operation. Use this for troubleshooting.


        :param message: The message of this Response.
        :type: str
        Nr   )r   r   r   r   r   r     s   

c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__  s   zResponse.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__  s   zResponse.__eq__c                 C   s
   | |k S r    r   r#   r   r   r   Ú__ne__  s   
zResponse.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr	   Úsetterr
   r   r   r   r!   r%   r&   r   r   r   r   r      s4    0




$
$



r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   