Class: Azure::ARM::Resources::ResourceManagementClient
- Inherits:
-
MsRestAzure::AzureServiceClient
- Object
- MsRestAzure::AzureServiceClient
- Azure::ARM::Resources::ResourceManagementClient
- Includes:
- Models, MsRestAzure
- Defined in:
- lib/azure_mgmt_resources/resource_management_client.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 ⇒ ServiceClient
client subscription.
-
#deployment_operations ⇒ Object
readonly
Deployment_operations.
-
#deployments ⇒ Object
readonly
Deployments.
-
#long_running_operation_retry_timeout ⇒ Integer
The retry timeout for Long Running Operations.
-
#providers ⇒ Object
readonly
Providers.
-
#resource_groups ⇒ Object
readonly
Resource_groups.
-
#resource_provider_operation_details ⇒ Object
readonly
Resource_provider_operation_details.
-
#resources ⇒ Object
readonly
Resources.
-
#subscription_id ⇒ String
Microsoft Azure subscription.
-
#tags ⇒ Object
readonly
Tags.
Instance Method Summary collapse
-
#initialize(credentials, base_url = nil, options = nil) ⇒ ResourceManagementClient
constructor
Creates initializes a new instance of the ResourceManagementClient class.
Constructor Details
#initialize(credentials, base_url = nil, options = nil) ⇒ ResourceManagementClient
Creates initializes a new instance of the ResourceManagementClient class.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 65 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 @providers = Providers.new(self) @resource_groups = ResourceGroups.new(self) @resources = Resources.new(self) @tags = Tags.new(self) @deployment_operations = DeploymentOperations.new(self) @resource_provider_operation_details = ResourceProviderOperationDetails.new(self) @deployments = Deployments.new(self) @api_version = "2014-04-01-preview" @accept_language = "en-US" end |
Instance Attribute Details
#accept_language ⇒ String
Returns Gets or sets the preferred language for the response.
29 30 31 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 29 def accept_language @accept_language end |
#api_version ⇒ String (readonly)
Returns Client Api Version.
26 27 28 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 26 def api_version @api_version end |
#base_url ⇒ String
Returns the base URI of the service.
15 16 17 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 15 def base_url @base_url end |
#credentials ⇒ ServiceClient
client subscription.
18 19 20 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 18 def credentials @credentials end |
#deployment_operations ⇒ Object (readonly)
Returns deployment_operations.
51 52 53 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 51 def deployment_operations @deployment_operations end |
#deployments ⇒ Object (readonly)
Returns deployments.
57 58 59 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 57 def deployments @deployments end |
#long_running_operation_retry_timeout ⇒ Integer
Returns The retry timeout for Long Running Operations.
32 33 34 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 32 def long_running_operation_retry_timeout @long_running_operation_retry_timeout end |
#providers ⇒ Object (readonly)
Returns providers.
39 40 41 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 39 def providers @providers end |
#resource_groups ⇒ Object (readonly)
Returns resource_groups.
42 43 44 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 42 def resource_groups @resource_groups end |
#resource_provider_operation_details ⇒ Object (readonly)
Returns resource_provider_operation_details.
54 55 56 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 54 def resource_provider_operation_details @resource_provider_operation_details end |
#resources ⇒ Object (readonly)
Returns resources.
45 46 47 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 45 def resources @resources end |
#subscription_id ⇒ String
Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
23 24 25 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 23 def subscription_id @subscription_id end |
#tags ⇒ Object (readonly)
Returns tags.
48 49 50 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 48 def @tags end |