RestCallConfig

class oci.data_integration.models.RestCallConfig(**kwargs)

Bases: object

The REST API configuration.

Attributes

METHOD_TYPE_DELETE A constant which can be used with the method_type property of a RestCallConfig.
METHOD_TYPE_GET A constant which can be used with the method_type property of a RestCallConfig.
METHOD_TYPE_PATCH A constant which can be used with the method_type property of a RestCallConfig.
METHOD_TYPE_POST A constant which can be used with the method_type property of a RestCallConfig.
METHOD_TYPE_PUT A constant which can be used with the method_type property of a RestCallConfig.
config_values Gets the config_values of this RestCallConfig.
method_type Gets the method_type of this RestCallConfig.
request_headers Gets the request_headers of this RestCallConfig.

Methods

__init__(**kwargs) Initializes a new RestCallConfig object with values from keyword arguments.
METHOD_TYPE_DELETE = 'DELETE'

A constant which can be used with the method_type property of a RestCallConfig. This constant has a value of “DELETE”

METHOD_TYPE_GET = 'GET'

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

METHOD_TYPE_PATCH = 'PATCH'

A constant which can be used with the method_type property of a RestCallConfig. This constant has a value of “PATCH”

METHOD_TYPE_POST = 'POST'

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

METHOD_TYPE_PUT = 'PUT'

A constant which can be used with the method_type property of a RestCallConfig. This constant has a value of “PUT”

__init__(**kwargs)

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

Parameters:
  • method_type (str) – The value to assign to the method_type property of this RestCallConfig. Allowed values for this property are: “GET”, “POST”, “PATCH”, “DELETE”, “PUT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • request_headers (dict(str, str)) – The value to assign to the request_headers property of this RestCallConfig.
  • config_values (oci.data_integration.models.ConfigValues) – The value to assign to the config_values property of this RestCallConfig.
config_values

Gets the config_values of this RestCallConfig.

Returns:The config_values of this RestCallConfig.
Return type:oci.data_integration.models.ConfigValues
method_type

Gets the method_type of this RestCallConfig. The REST method to use.

Allowed values for this property are: “GET”, “POST”, “PATCH”, “DELETE”, “PUT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The method_type of this RestCallConfig.
Return type:str
request_headers

Gets the request_headers of this RestCallConfig. The headers for the REST call.

Returns:The request_headers of this RestCallConfig.
Return type:dict(str, str)