google_gax v0.3.1 GoogleApi.Gax.Request View Source
This module is used to build an HTTP request
Link to this section Summary
Functions
Add optional parameters to the request
Add optional parameters to the request
Specify the library version when building a request
Specify the request method when building a request
Specify the request URL when building a request
Link to this section Types
Link to this type
method()
View Sourcemethod() :: :head | :get | :delete | :trace | :options | :post | :put | :patch
Link to this section Functions
Link to this function
add_optional_params(request, definitions, list)
View Sourceadd_optional_params( GoogleApi.Gax.Request.t(), %{optional(atom()) => param_location()}, keyword() ) :: GoogleApi.Gax.Request.t()
Add optional parameters to the request
Parameters
request
(type:GoogleApi.Gax.Request.t
) - Collected request optionsdefinitions
(type:Map
) - Map of parameter name to parameter locationoptions
(type:keyword()
) - The provided optional parameters
Returns
GoogleApi.Gax.Request.t
Link to this function
add_param(request, location, key, values)
View Sourceadd_param(GoogleApi.Gax.Request.t(), param_location(), atom(), any()) :: GoogleApi.Gax.Request.t()
Add optional parameters to the request
Parameters
request
(type:GoogleApi.Gax.Request.t
) - Collected request optionslocation
(type:atom()
) - Where to put the parameterkey
(type:atom()
) - The name of the parametervalue
(type:any()
) - The value of the parameter
Returns
GoogleApi.Gax.Request.t
Link to this function
library_version(request)
View Sourcelibrary_version(GoogleApi.Gax.Request.t()) :: {:ok, String.t()} | :error
Link to this function
library_version(request, version)
View Sourcelibrary_version(GoogleApi.Gax.Request.t(), String.t()) :: GoogleApi.Gax.Request.t()
Specify the library version when building a request
Parameters
request
(type:GoogleApi.Gax.Request.t
) - Collected request optionsversion
(type:String
) - Library version
Returns
GoogleApi.Gax.Request.t
Link to this function
method(request)
View Sourcemethod(GoogleApi.Gax.Request.t()) :: {:ok, atom()} | :error
Link to this function
method(request, m)
View Sourcemethod(GoogleApi.Gax.Request.t(), atom()) :: GoogleApi.Gax.Request.t()
Specify the request method when building a request
Parameters
request
(type:GoogleApi.Gax.Request.t
) - Collected request optionsm
(type:String
) - Request method
Returns
GoogleApi.Gax.Request.t
Link to this function
url(request)
View Sourceurl(GoogleApi.Gax.Request.t()) :: {:ok, String.t()} | :error
Link to this function
url(request, u, replacements)
View Sourceurl(GoogleApi.Gax.Request.t(), String.t(), map()) :: GoogleApi.Gax.Request.t()
Specify the request URL when building a request
Parameters
request
(type:GoogleApi.Gax.Request.t
) - Collected request optionsu
(type:String
) - Request URL
Returns
GoogleApi.Gax.Request.t