class Azure::BaseManagement::SqlManagementHttpRequest
This class is used for communicating with the Management certificate authentication API endpoint
Public Class Methods
new(method, path, options_or_body = {})
click to toggle source
Creates the SqlManagementHttpRequest
@param method [Symbol] The HTTP method to use (:get, :post, :put, :del, etc…) @param path [URI] The URI of the HTTP endpoint to query @param options_or_body [Hash|IO|String] The request options including {:client, :body} or raw body only
Calls superclass method
Azure::BaseManagement::ManagementHttpRequest.new
# File lib/azure/base_management/sql_management_http_request.rb, line 27 def initialize(method, path, options_or_body = {}) path = '/services/sqlservers' + (path.start_with?('/') ? path : '/' + path) super(method, path, options_or_body) headers['x-ms-version'] = '2012-03-01' self.uri = URI.parse(Azure.config.sql_database_management_endpoint + Azure.config.subscription_id + path) end