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 ⇒ Object
subscription.
-
#deployment_operations ⇒ Object
readonly
Deployment_operations.
-
#deployments ⇒ Object
readonly
Deployments.
-
#generate_client_request_id ⇒ Boolean
is generated and included in each request.
-
#long_running_operation_retry_timeout ⇒ Integer
Running Operations.
-
#policy_assignments ⇒ Object
readonly
Policy_assignments.
-
#policy_definitions ⇒ Object
readonly
Policy_definitions.
-
#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.
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 76 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 @deployments = Deployments.new(self) @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) @policy_definitions = PolicyDefinitions.new(self) @policy_assignments = PolicyAssignments.new(self) @api_version = '2015-11-01' @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/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 ⇒ Object
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.
59 60 61 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 59 def deployment_operations @deployment_operations end |
#deployments ⇒ Object (readonly)
Returns deployments.
44 45 46 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 44 def deployments @deployments end |
#generate_client_request_id ⇒ Boolean
is generated and included in each request. Default is true.
37 38 39 |
# File 'lib/azure_mgmt_resources/resource_management_client.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/azure_mgmt_resources/resource_management_client.rb', line 33 def long_running_operation_retry_timeout @long_running_operation_retry_timeout end |
#policy_assignments ⇒ Object (readonly)
Returns policy_assignments.
68 69 70 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 68 def policy_assignments @policy_assignments end |
#policy_definitions ⇒ Object (readonly)
Returns policy_definitions.
65 66 67 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 65 def policy_definitions @policy_definitions end |
#providers ⇒ Object (readonly)
Returns providers.
47 48 49 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 47 def providers @providers end |
#resource_groups ⇒ Object (readonly)
Returns resource_groups.
50 51 52 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 50 def resource_groups @resource_groups end |
#resource_provider_operation_details ⇒ Object (readonly)
Returns resource_provider_operation_details.
62 63 64 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 62 def resource_provider_operation_details @resource_provider_operation_details end |
#resources ⇒ Object (readonly)
Returns resources.
53 54 55 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 53 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.
56 57 58 |
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 56 def @tags end |