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 )ÚRequestz4
    A container object for request attributes.
    c                 K   sF   ddddddœ| _ ddddddœ| _d	| _d	| _d	| _d	| _d	| _d	S )
aD  
        Initializes a new Request 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 Request.
        :type id: str

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

        :param action:
            The value to assign to the action property of this Request.
        :type action: str

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

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

        Ústrzdict(str, list[str]))ÚidÚpathÚactionÚ
parametersÚheadersr   r	   r
   r   r   N)Zswagger_typesZattribute_mapÚ_idÚ_pathÚ_actionÚ_parametersÚ_headers)ÚselfÚkwargs© r   ú<usr/lib/python3.10/site-packages/oci/audit/models/request.pyÚ__init__   s"   û	û
zRequest.__init__c                 C   ó   | j S )z˜
        Gets the id of this Request.
        The opc-request-id of the request.


        :return: The id of this Request.
        :rtype: str
        ©r   ©r   r   r   r   r   B   ó   
z
Request.idc                 C   ó
   || _ dS )z™
        Sets the id of this Request.
        The opc-request-id of the request.


        :param id: The id of this Request.
        :type: str
        Nr   )r   r   r   r   r   r   N   ó   

c                 C   r   )zæ
        Gets the path of this Request.
        The full path of the API request.

        Example: `/20160918/instances/ocid1.instance.oc1.phx.<unique_ID>`


        :return: The path of this Request.
        :rtype: str
        ©r   r   r   r   r   r	   Z   ó   zRequest.pathc                 C   r   )zé
        Sets the path of this Request.
        The full path of the API request.

        Example: `/20160918/instances/ocid1.instance.oc1.phx.<unique_ID>`


        :param path: The path of this Request.
        :type: str
        Nr   )r   r	   r   r   r   r	   h   ó   
c                 C   r   )zµ
        Gets the action of this Request.
        The HTTP method of the request.

        Example: `GET`


        :return: The action of this Request.
        :rtype: str
        ©r   r   r   r   r   r
   v   r   zRequest.actionc                 C   r   )zº
        Sets the action of this Request.
        The HTTP method of the request.

        Example: `GET`


        :param action: The action of this Request.
        :type: str
        Nr    )r   r
   r   r   r   r
   „   r   c                 C   r   )zÓ
        Gets the parameters of this Request.
        The parameters supplied by the caller during this operation.


        :return: The parameters of this Request.
        :rtype: dict(str, list[str])
        ©r   r   r   r   r   r   ’   r   zRequest.parametersc                 C   r   )zÜ
        Sets the parameters of this Request.
        The parameters supplied by the caller during this operation.


        :param parameters: The parameters of this Request.
        :type: dict(str, list[str])
        Nr!   )r   r   r   r   r   r   ž   r   c                 C   r   )a	  
        Gets the headers of this Request.
        The HTTP header fields and values in the request.

        Example:

          -----
            {
              "opc-principal": [
                "{\"tenantId\":\"ocid1.tenancy.oc1..<unique_ID>\",\"subjectId\":\"ocid1.user.oc1..<unique_ID>\",\"claims\":[{\"key\":\"pstype\",\"value\":\"natv\",\"issuer\":\"authService.oracle.com\"},{\"key\":\"h_host\",\"value\":\"iaas.r2.oracleiaas.com\",\"issuer\":\"h\"},{\"key\":\"h_opc-request-id\",\"value\":\"<unique_ID>\",\"issuer\":\"h\"},{\"key\":\"ptype\",\"value\":\"user\",\"issuer\":\"authService.oracle.com\"},{\"key\":\"h_date\",\"value\":\"Wed, 18 Sep 2019 00:10:58 UTC\",\"issuer\":\"h\"},{\"key\":\"h_accept\",\"value\":\"application/json\",\"issuer\":\"h\"},{\"key\":\"authorization\",\"value\":\"Signature headers=\\\"date (request-target) host accept opc-request-id\\\",keyId=\\\"ocid1.tenancy.oc1..<unique_ID>/ocid1.user.oc1..<unique_ID>/8c:b4:5f:18:e7:ec:db:08:b8:fa:d2:2a:7d:11:76:ac\\\",algorithm=\\\"rsa-pss-sha256\\\",signature=\\\"<unique_ID>\\\",version=\\\"1\\\"\",\"issuer\":\"h\"},{\"key\":\"h_(request-target)\",\"value\":\"get /20160918/instances/ocid1.instance.oc1.phx.<unique_ID>\",\"issuer\":\"h\"}]}"
              ],
              "Accept": [
                "application/json"
              ],
              "X-Oracle-Auth-Client-CN": [
                "splat-proxy-se-02302.node.ad2.r2"
              ],
              "X-Forwarded-Host": [
                "compute-api.svc.ad1.r2"
              ],
              "Connection": [
                "close"
              ],
              "User-Agent": [
                "Jersey/2.23 (HttpUrlConnection 1.8.0_212)"
              ],
              "X-Forwarded-For": [
                "172.24.80.88"
              ],
              "X-Real-IP": [
                "172.24.80.88"
              ],
              "oci-original-url": [
                "https://iaas.r2.oracleiaas.com/20160918/instances/ocid1.instance.oc1.phx.<unique_ID>"
              ],
              "opc-request-id": [
                "<unique_ID>"
              ],
              "Date": [
                "Wed, 18 Sep 2019 00:10:58 UTC"
              ]
            }
          -----


        :return: The headers of this Request.
        :rtype: dict(str, list[str])
        ©r   r   r   r   r   r   ª   s   2zRequest.headersc                 C   r   )a	  
        Sets the headers of this Request.
        The HTTP header fields and values in the request.

        Example:

          -----
            {
              "opc-principal": [
                "{\"tenantId\":\"ocid1.tenancy.oc1..<unique_ID>\",\"subjectId\":\"ocid1.user.oc1..<unique_ID>\",\"claims\":[{\"key\":\"pstype\",\"value\":\"natv\",\"issuer\":\"authService.oracle.com\"},{\"key\":\"h_host\",\"value\":\"iaas.r2.oracleiaas.com\",\"issuer\":\"h\"},{\"key\":\"h_opc-request-id\",\"value\":\"<unique_ID>\",\"issuer\":\"h\"},{\"key\":\"ptype\",\"value\":\"user\",\"issuer\":\"authService.oracle.com\"},{\"key\":\"h_date\",\"value\":\"Wed, 18 Sep 2019 00:10:58 UTC\",\"issuer\":\"h\"},{\"key\":\"h_accept\",\"value\":\"application/json\",\"issuer\":\"h\"},{\"key\":\"authorization\",\"value\":\"Signature headers=\\\"date (request-target) host accept opc-request-id\\\",keyId=\\\"ocid1.tenancy.oc1..<unique_ID>/ocid1.user.oc1..<unique_ID>/8c:b4:5f:18:e7:ec:db:08:b8:fa:d2:2a:7d:11:76:ac\\\",algorithm=\\\"rsa-pss-sha256\\\",signature=\\\"<unique_ID>\\\",version=\\\"1\\\"\",\"issuer\":\"h\"},{\"key\":\"h_(request-target)\",\"value\":\"get /20160918/instances/ocid1.instance.oc1.phx.<unique_ID>\",\"issuer\":\"h\"}]}"
              ],
              "Accept": [
                "application/json"
              ],
              "X-Oracle-Auth-Client-CN": [
                "splat-proxy-se-02302.node.ad2.r2"
              ],
              "X-Forwarded-Host": [
                "compute-api.svc.ad1.r2"
              ],
              "Connection": [
                "close"
              ],
              "User-Agent": [
                "Jersey/2.23 (HttpUrlConnection 1.8.0_212)"
              ],
              "X-Forwarded-For": [
                "172.24.80.88"
              ],
              "X-Real-IP": [
                "172.24.80.88"
              ],
              "oci-original-url": [
                "https://iaas.r2.oracleiaas.com/20160918/instances/ocid1.instance.oc1.phx.<unique_ID>"
              ],
              "opc-request-id": [
                "<unique_ID>"
              ],
              "Date": [
                "Wed, 18 Sep 2019 00:10:58 UTC"
              ]
            }
          -----


        :param headers: The headers of this Request.
        :type: dict(str, list[str])
        Nr"   )r   r   r   r   r   r   Þ   s   
2c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__  s   zRequest.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__  s   zRequest.__eq__c                 C   s
   | |k S r#   r   r&   r   r   r   Ú__ne__  s   
zRequest.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr	   r
   r   r   r$   r(   r)   r   r   r   r   r      s4    0








3
3r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   