Class: Vapi::IdempotencyRequestOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/requests.rb

Overview

Additional options for request-specific configuration when calling APIs via the

SDK.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base_url: nil, token: nil, additional_headers: nil, additional_query_parameters: nil, additional_body_parameters: nil, timeout_in_seconds: nil) ⇒ Vapi::IdempotencyRequestOptions

Parameters:

  • base_url (String) (defaults to: nil)
  • token (String) (defaults to: nil)
  • additional_headers (Hash{String => Object}) (defaults to: nil)
  • additional_query_parameters (Hash{String => Object}) (defaults to: nil)
  • additional_body_parameters (Hash{String => Object}) (defaults to: nil)
  • timeout_in_seconds (Long) (defaults to: nil)


156
157
158
159
160
161
162
163
164
# File 'lib/requests.rb', line 156

def initialize(base_url: nil, token: nil, additional_headers: nil, additional_query_parameters: nil,
               additional_body_parameters: nil, timeout_in_seconds: nil)
  @base_url = base_url
  @token = token
  @additional_headers = additional_headers
  @additional_query_parameters = additional_query_parameters
  @additional_body_parameters = additional_body_parameters
  @timeout_in_seconds = timeout_in_seconds
end

Instance Attribute Details

#additional_body_parametersHash{String => Object} (readonly)

Returns:

  • (Hash{String => Object})


145
146
147
# File 'lib/requests.rb', line 145

def additional_body_parameters
  @additional_body_parameters
end

#additional_headersHash{String => Object} (readonly)

Returns:

  • (Hash{String => Object})


141
142
143
# File 'lib/requests.rb', line 141

def additional_headers
  @additional_headers
end

#additional_query_parametersHash{String => Object} (readonly)

Returns:

  • (Hash{String => Object})


143
144
145
# File 'lib/requests.rb', line 143

def additional_query_parameters
  @additional_query_parameters
end

#base_urlString (readonly)

Returns:

  • (String)


137
138
139
# File 'lib/requests.rb', line 137

def base_url
  @base_url
end

#timeout_in_secondsLong (readonly)

Returns:

  • (Long)


147
148
149
# File 'lib/requests.rb', line 147

def timeout_in_seconds
  @timeout_in_seconds
end

#tokenString (readonly)

Returns:

  • (String)


139
140
141
# File 'lib/requests.rb', line 139

def token
  @token
end