Class: Azure::ARM::ServerManagement::ServerManagement
- Inherits:
-
MsRestAzure::AzureServiceClient
- Object
- MsRestAzure::AzureServiceClient
- Azure::ARM::ServerManagement::ServerManagement
- Includes:
- MsRestAzure, MsRestAzure::Serialization
- Defined in:
- lib/generated/azure_mgmt_server_management/server_management.rb
Overview
A service client - single point of access to the REST API.
Instance Attribute Summary collapse
-
#accept_language ⇒ String
Gets or sets the preferred language for the response.
-
#api_version ⇒ String
readonly
Client Api Version.
-
#base_url ⇒ String
The base URI of the service.
-
#credentials ⇒ Object
subscription.
-
#gateway ⇒ Gateway
readonly
Gateway.
-
#generate_client_request_id ⇒ Boolean
is generated and included in each request.
-
#long_running_operation_retry_timeout ⇒ Integer
Running Operations.
-
#node ⇒ Node
readonly
Node.
-
#power_shell ⇒ PowerShell
readonly
Power_shell.
-
#session ⇒ Session
readonly
Session.
-
#subscription_id ⇒ String
Microsoft Azure subscription.
Instance Method Summary collapse
-
#initialize(credentials, base_url = nil, options = nil) ⇒ ServerManagement
constructor
Creates initializes a new instance of the ServerManagement class.
Constructor Details
#initialize(credentials, base_url = nil, options = nil) ⇒ ServerManagement
Creates initializes a new instance of the ServerManagement class.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/generated/azure_mgmt_server_management/server_management.rb', line 61 def initialize(credentials, base_url = nil, = nil) super(credentials, ) @base_url = base_url || 'https://management.azure.com' fail ArgumentError, 'credentials is nil' if credentials.nil? fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) @credentials = credentials @gateway = Gateway.new(self) @node = Node.new(self) @session = Session.new(self) @power_shell = PowerShell.new(self) @api_version = '2015-07-01-preview' @accept_language = 'en-US' @long_running_operation_retry_timeout = 30 @generate_client_request_id = true end |
Instance Attribute Details
#accept_language ⇒ String
Returns Gets or sets the preferred language for the response.
29 30 31 |
# File 'lib/generated/azure_mgmt_server_management/server_management.rb', line 29 def accept_language @accept_language end |
#api_version ⇒ String (readonly)
Returns Client Api Version.
26 27 28 |
# File 'lib/generated/azure_mgmt_server_management/server_management.rb', line 26 def api_version @api_version end |
#base_url ⇒ String
Returns the base URI of the service.
15 16 17 |
# File 'lib/generated/azure_mgmt_server_management/server_management.rb', line 15 def base_url @base_url end |
#credentials ⇒ Object
subscription.
18 19 20 |
# File 'lib/generated/azure_mgmt_server_management/server_management.rb', line 18 def credentials @credentials end |
#gateway ⇒ Gateway (readonly)
Returns gateway.
44 45 46 |
# File 'lib/generated/azure_mgmt_server_management/server_management.rb', line 44 def gateway @gateway end |
#generate_client_request_id ⇒ Boolean
is generated and included in each request. Default is true.
37 38 39 |
# File 'lib/generated/azure_mgmt_server_management/server_management.rb', line 37 def generate_client_request_id @generate_client_request_id end |
#long_running_operation_retry_timeout ⇒ Integer
Running Operations. Default value is 30.
33 34 35 |
# File 'lib/generated/azure_mgmt_server_management/server_management.rb', line 33 def long_running_operation_retry_timeout @long_running_operation_retry_timeout end |
#node ⇒ Node (readonly)
Returns node.
47 48 49 |
# File 'lib/generated/azure_mgmt_server_management/server_management.rb', line 47 def node @node end |
#power_shell ⇒ PowerShell (readonly)
Returns power_shell.
53 54 55 |
# File 'lib/generated/azure_mgmt_server_management/server_management.rb', line 53 def power_shell @power_shell end |
#session ⇒ Session (readonly)
Returns session.
50 51 52 |
# File 'lib/generated/azure_mgmt_server_management/server_management.rb', line 50 def session @session end |
#subscription_id ⇒ String
Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
23 24 25 |
# File 'lib/generated/azure_mgmt_server_management/server_management.rb', line 23 def subscription_id @subscription_id end |