Class: FinchAPI::Models::RequestForwardingForwardParams
- Includes:
- RequestParameters
- Defined in:
- lib/finch-api/models/request_forwarding_forward_params.rb
Instance Attribute Summary collapse
-
#data ⇒ String?
The body for the forwarded request.
-
#headers ⇒ Object?
The HTTP headers to include on the forwarded request.
-
#method_ ⇒ String
The HTTP method for the forwarded request.
-
#params ⇒ Object?
The query parameters for the forwarded request.
-
#route ⇒ String
The URL route path for the forwarded request.
Attributes included from RequestParameters
Instance Method Summary collapse
-
#initialize(method_:, route:, data: nil, headers: nil, params: nil, request_options: {}) ⇒ RequestForwardingForwardParams
constructor
A new instance of RequestForwardingForwardParams.
Methods included from RequestParameters
Methods inherited from BaseModel
==, #==, #[], coerce, #deconstruct_keys, dump, fields, #inspect, known_fields, optional, required, #to_h
Methods included from Converter
#coerce, coerce, #dump, dump, type_info
Constructor Details
#initialize(method_:, route:, data: nil, headers: nil, params: nil, request_options: {}) ⇒ RequestForwardingForwardParams
Returns a new instance of RequestForwardingForwardParams.
8 |
# File 'lib/finch-api/models/request_forwarding_forward_params.rb', line 8 def initialize(method_:, route:, data: nil, headers: nil, params: nil, request_options: {}, **) = super |
Instance Attribute Details
#data ⇒ String?
The body for the forwarded request. This value must be specified as either a
string or a valid JSON object.
30 |
# File 'lib/finch-api/models/request_forwarding_forward_params.rb', line 30 optional :data, String, nil?: true |
#headers ⇒ Object?
The HTTP headers to include on the forwarded request. This value must be
specified as an object of key-value pairs. Example:
`{"Content-Type": "application/xml", "X-API-Version": "v1" }`
38 |
# File 'lib/finch-api/models/request_forwarding_forward_params.rb', line 38 optional :headers, FinchAPI::Unknown, nil?: true |
#method_ ⇒ String
The HTTP method for the forwarded request. Valid values include: ‘GET` , `POST`
, `PUT` , `DELETE` , and `PATCH`.
15 |
# File 'lib/finch-api/models/request_forwarding_forward_params.rb', line 15 required :method_, String, api_name: :method |
#params ⇒ Object?
The query parameters for the forwarded request. This value must be specified as
a valid JSON object rather than a query string.
45 |
# File 'lib/finch-api/models/request_forwarding_forward_params.rb', line 45 optional :params, FinchAPI::Unknown, nil?: true |
#route ⇒ String
The URL route path for the forwarded request. This value must begin with a
forward-slash ( / ) and may only contain alphanumeric characters, hyphens, and
underscores.
23 |
# File 'lib/finch-api/models/request_forwarding_forward_params.rb', line 23 required :route, String |