class Ovh::Client
 
  - Ovh::Client
 - Reference
 - Object
 
Defined in:
ovh/client.crConstructors
- .new(endpoint_key : String, app_key : String, app_secret : String, app_consumer_key : String = "")
 - 
        .new(endpoint_key = "")
        
          
Create a new Client from the configuration.
 
Instance Method Summary
- 
        #apis
        
          
Retrieve available APIs.
 - #app_consumer_key : String
 - #app_consumer_key=(app_consumer_key : String)
 - #app_key : String
 - #app_key=(app_key : String)
 - #app_secret : String
 - #app_secret=(app_secret : String)
 - 
        #consumer_request
        
          
Create a new consumer request using client's endpoint.
 - 
        #delete(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil
        
          
Execute a DELETE request.
 - #endpoint : String
 - #endpoint=(endpoint : String)
 - 
        #get(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil
        
          
Execute a GET request.
 - 
        #head(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil
        
          
Execute a HEAD request.
 - #lose_time : Time::Span
 - #lose_time=(lose_time : Time::Span)
 - 
        #post(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil
        
          
Execute a POST request.
 - 
        #put(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil
        
          
Execute a PUT request.
 - 
        #signature(method, path, body, timestamp)
        
          
Return the request signature.
 
Constructor Detail
        
        def self.new(endpoint_key : String, app_key : String, app_secret : String, app_consumer_key : String = "")
        #
      
      
      Instance Method Detail
        
        def delete(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil
        #
      
      
        Execute a DELETE request.
        
        def get(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil
        #
      
      
        Execute a GET request.
        
        def head(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil
        #
      
      
        Execute a HEAD request.
        
        def post(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil
        #
      
      
        Execute a POST request.
        
        def put(path : String, body : JSON::Any | Nil | Nil = nil) : JSON::Any | Nil
        #
      
      
        Execute a PUT request.