EndpointRequest

class oci.log_analytics.models.EndpointRequest(**kwargs)

Bases: object

An object containing details to make a REST request.

Attributes:

METHOD_GET

A constant which can be used with the method property of a EndpointRequest.

METHOD_POST

A constant which can be used with the method property of a EndpointRequest.

content_type

Gets the content_type of this EndpointRequest.

form_parameters

Gets the form_parameters of this EndpointRequest.

headers

Gets the headers of this EndpointRequest.

method

Gets the method of this EndpointRequest.

payload

Gets the payload of this EndpointRequest.

url

[Required] Gets the url of this EndpointRequest.

Methods:

__init__(**kwargs)

Initializes a new EndpointRequest object with values from keyword arguments.

METHOD_GET = 'GET'

A constant which can be used with the method property of a EndpointRequest. This constant has a value of “GET”

METHOD_POST = 'POST'

A constant which can be used with the method property of a EndpointRequest. This constant has a value of “POST”

__init__(**kwargs)

Initializes a new EndpointRequest object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • method (str) – 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’.

  • url (str) – The value to assign to the url property of this EndpointRequest.

  • content_type (str) – The value to assign to the content_type property of this EndpointRequest.

  • payload (str) – The value to assign to the payload property of this EndpointRequest.

  • headers (list[oci.log_analytics.models.NameValuePair]) – The value to assign to the headers property of this EndpointRequest.

  • form_parameters (list[oci.log_analytics.models.NameValuePair]) – The value to assign to the form_parameters property of this EndpointRequest.

property content_type

Gets the content_type of this EndpointRequest. The request content type.

Returns

The content_type of this EndpointRequest.

Return type

str

property form_parameters

Gets the form_parameters of this EndpointRequest. The request form parameters represented as a list of name-value pairs.

Returns

The form_parameters of this EndpointRequest.

Return type

list[oci.log_analytics.models.NameValuePair]

property headers

Gets the headers of this EndpointRequest. The request headers represented as a list of name-value pairs.

Returns

The headers of this EndpointRequest.

Return type

list[oci.log_analytics.models.NameValuePair]

property method

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’.

Returns

The method of this EndpointRequest.

Return type

str

property payload

Gets the payload of this EndpointRequest. The request payload, applicable for POST requests.

Returns

The payload of this EndpointRequest.

Return type

str

property url

[Required] Gets the url of this EndpointRequest. The request URL.

Returns

The url of this EndpointRequest.

Return type

str