class

Ovh::Client

Inherits Reference / Object

Constructors

new(endpoint_key : String, app_key : String, app_secret : String, app_consumer_key : String = "")
Source
new(endpoint_key = "")

Create a new Client from the configuration.

Source

Instance methods

apis

Retrieve available APIs.

Source
app_consumer_key
Source
app_consumer_key=(app_consumer_key : String)
Source
app_key
Source
app_key=(app_key : String)
Source
app_secret
Source
app_secret=(app_secret : String)
Source
consumer_request

Create a new consumer request using client's endpoint.

Source
delete(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil

Execute a DELETE request.

Source
endpoint
Source
endpoint=(endpoint : String)
Source
get(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil

Execute a GET request.

Source
head(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil

Execute a HEAD request.

Source
lose_time
Source
lose_time=(lose_time : Time::Span)
Source
post(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil

Execute a POST request.

Source
put(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil

Execute a PUT request.

Source
signature(method, path, body, timestamp)

Return the request signature.

Source