Class: Azure::BaseManagement::SqlManagementHttpRequest
- Inherits:
-
ManagementHttpRequest
- Object
- HttpRequest
- ManagementHttpRequest
- Azure::BaseManagement::SqlManagementHttpRequest
- Defined in:
- lib/azure/base_management/sql_management_http_request.rb
Overview
This class is used for communicating with the Management certificate authentication API endpoint
Instance Attribute Summary collapse
-
#uri ⇒ Object
Returns the value of attribute uri.
Attributes inherited from ManagementHttpRequest
Instance Method Summary collapse
-
#initialize(method, path, body = nil) ⇒ SqlManagementHttpRequest
constructor
Public: Creates the ManagementHttpRequest.
Methods inherited from ManagementHttpRequest
#call, #check_completion, #http_setup, #rebuild_request, #redirected?, #wait_for_completion
Methods included from Core::Utility
#enable_winrm?, #export_der, #export_fingerprint, #get_certificate, #initialize_external_logger, #locate_file, #random_string, #xml_content
Constructor Details
#initialize(method, path, body = nil) ⇒ SqlManagementHttpRequest
Public: Creates the ManagementHttpRequest
method - Symbol. The HTTP method to use (:get, :post, :put, :del, etc…) path - URI. The URI of the HTTP endpoint to query body - IO or String. The request body (optional)
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/azure/base_management/sql_management_http_request.rb', line 27 def initialize(method, path, body = nil) if sql_endpoint? super(method, path, body) @headers['x-ms-version'] = '1.0' @uri = URI.parse(Azure.config.sql_database_management_endpoint + Azure.config.subscription_id + path) else path = "/services/sqlservers#{path}" super(method, path, body) end end |
Instance Attribute Details
#uri ⇒ Object
Returns the value of attribute uri.
21 22 23 |
# File 'lib/azure/base_management/sql_management_http_request.rb', line 21 def uri @uri end |