Method: Azure::HttpClient#sql_management_request

Defined in:
lib/azure/http_client.rb

#sql_management_request(method, path, options_or_body = {}) ⇒ Object

Creates a new management request for the current configuration

Parameters:

  • method (Symbol)

    the HTTP method

  • path (URI)

    the path to the management resource

  • options_or_body (Hash|Body) (defaults to: {})

    options which can include body



37
38
39
40
41
42
43
44
45
46
# File 'lib/azure/http_client.rb', line 37

def sql_management_request(method, path, options_or_body = {})
  options_or_body ||= {}
  options = if options_or_body.is_a?(Hash)
              options_or_body
            else
              {body: options_or_body}
            end
  puts [method, path, options]
  BaseManagement::SqlManagementHttpRequest.new(method, path, {client: self}.merge(options))
end