ruạṛ
a ���f� � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z edd � �Zej dd � �Zedd� �Zej dd� �Zedd� �Z e j dd� �Z edd� �Zej dd� �Zdd� Zdd� Zdd� ZdS )�EndpointRequestz> An object containing details to make a REST request. �GET�POSTc K sP ddddddd�| _ dddddd d�| _d | _d | _d | _d | _d | _d | _d S )a Initializes a new EndpointRequest object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param method: The value to assign to the method property of this EndpointRequest. Allowed values for this property are: "GET", "POST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type method: str :param url: The value to assign to the url property of this EndpointRequest. :type url: str :param content_type: The value to assign to the content_type property of this EndpointRequest. :type content_type: str :param payload: The value to assign to the payload property of this EndpointRequest. :type payload: str :param headers: The value to assign to the headers property of this EndpointRequest. :type headers: list[oci.log_analytics.models.NameValuePair] :param form_parameters: The value to assign to the form_parameters property of this EndpointRequest. :type form_parameters: list[oci.log_analytics.models.NameValuePair] �strzlist[NameValuePair])�method�url�content_type�payload�headers�form_parametersr r ZcontentTyper r ZformParametersN)Z swagger_typesZ attribute_map�_method�_url� _content_type�_payload�_headers�_form_parameters)�self�kwargs� r �M/usr/lib/python3.9/site-packages/oci/log_analytics/models/endpoint_request.py�__init__ s( !� � zEndpointRequest.__init__c C s | j S )ab Gets the method of this EndpointRequest. The endpoint method - GET or POST. Allowed values for this property are: "GET", "POST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The method of this EndpointRequest. :rtype: str )r �r r r r r S s zEndpointRequest.methodc C s ddg}t ||�sd}|| _dS )z� Sets the method of this EndpointRequest. The endpoint method - GET or POST. :param method: The method of this EndpointRequest. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r b s c C s | j S )z� **[Required]** Gets the url of this EndpointRequest. The request URL. :return: The url of this EndpointRequest. :rtype: str �r r r r r r q s zEndpointRequest.urlc C s || _ dS )z� Sets the url of this EndpointRequest. The request URL. :param url: The url of this EndpointRequest. :type: str Nr )r r r r r r } s c C s | j S )z� Gets the content_type of this EndpointRequest. The request content type. :return: The content_type of this EndpointRequest. :rtype: str �r r r r r r � s zEndpointRequest.content_typec C s || _ dS )z� Sets the content_type of this EndpointRequest. The request content type. :param content_type: The content_type of this EndpointRequest. :type: str Nr )r r r r r r � s c C s | j S )z� Gets the payload of this EndpointRequest. The request payload, applicable for POST requests. :return: The payload of this EndpointRequest. :rtype: str �r r r r r r � s zEndpointRequest.payloadc C s || _ dS )z� Sets the payload of this EndpointRequest. The request payload, applicable for POST requests. :param payload: The payload of this EndpointRequest. :type: str Nr )r r r r r r � s c C s | j S )z� Gets the headers of this EndpointRequest. The request headers represented as a list of name-value pairs. :return: The headers of this EndpointRequest. :rtype: list[oci.log_analytics.models.NameValuePair] �r r r r r r � s zEndpointRequest.headersc C s || _ dS )z� Sets the headers of this EndpointRequest. The request headers represented as a list of name-value pairs. :param headers: The headers of this EndpointRequest. :type: list[oci.log_analytics.models.NameValuePair] Nr )r r r r r r � s c C s | j S )a Gets the form_parameters of this EndpointRequest. The request form parameters represented as a list of name-value pairs. :return: The form_parameters of this EndpointRequest. :rtype: list[oci.log_analytics.models.NameValuePair] �r r r r r r � s zEndpointRequest.form_parametersc C s || _ dS )a Sets the form_parameters of this EndpointRequest. The request form parameters represented as a list of name-value pairs. :param form_parameters: The form_parameters of this EndpointRequest. :type: list[oci.log_analytics.models.NameValuePair] Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zEndpointRequest.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zEndpointRequest.__eq__c C s | |k S r! r r$ r r r �__ne__� s zEndpointRequest.__ne__N)�__name__� __module__�__qualname__�__doc__Z METHOD_GETZMETHOD_POSTr �propertyr �setterr r r r r r"