Class: Azure::ARM::Resources::ResourceManagementClient

Inherits:
MsRestAzure::AzureServiceClient
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(credentials, base_url = nil, options = nil) ⇒ ResourceManagementClient

Creates initializes a new instance of the ResourceManagementClient class.

Parameters:

  • credentials (MsRest::ServiceClientCredentials)

    credentials to authorize HTTP requests made by the service client.

  • base_url (String) (defaults to: nil)

    the base URI of the service.

  • options (Array) (defaults to: nil)

    filters to be applied to the HTTP requests.



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, options = nil)
  super(credentials, options)
  @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_languageString

Returns Gets or sets the preferred language for the response.

Returns:

  • (String)

    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_versionString (readonly)

Returns Client Api Version.

Returns:

  • (String)

    Client Api Version.



26
27
28
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 26

def api_version
  @api_version
end

#base_urlString

Returns the base URI of the service.

Returns:

  • (String)

    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

#credentialsObject

subscription.

Returns:

  • Subscription credentials which uniquely identify client



18
19
20
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 18

def credentials
  @credentials
end

#deployment_operationsObject (readonly)

Returns deployment_operations.

Returns:

  • deployment_operations



59
60
61
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 59

def deployment_operations
  @deployment_operations
end

#deploymentsObject (readonly)

Returns deployments.

Returns:

  • deployments



44
45
46
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 44

def deployments
  @deployments
end

#generate_client_request_idBoolean

is generated and included in each request. Default is true.

Returns:

  • (Boolean)

    When set to true a unique x-ms-client-request-id value



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_timeoutInteger

Running Operations. Default value is 30.

Returns:

  • (Integer)

    Gets or sets the retry timeout in seconds for Long



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_assignmentsObject (readonly)

Returns policy_assignments.

Returns:

  • policy_assignments



68
69
70
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 68

def policy_assignments
  @policy_assignments
end

#policy_definitionsObject (readonly)

Returns policy_definitions.

Returns:

  • policy_definitions



65
66
67
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 65

def policy_definitions
  @policy_definitions
end

#providersObject (readonly)

Returns providers.

Returns:

  • providers



47
48
49
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 47

def providers
  @providers
end

#resource_groupsObject (readonly)

Returns resource_groups.

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_detailsObject (readonly)

Returns resource_provider_operation_details.

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

#resourcesObject (readonly)

Returns resources.

Returns:

  • resources



53
54
55
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 53

def resources
  @resources
end

#subscription_idString

Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Returns:

  • (String)

    Gets subscription credentials which uniquely identify



23
24
25
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 23

def subscription_id
  @subscription_id
end

#tagsObject (readonly)

Returns tags.

Returns:

  • tags



56
57
58
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 56

def tags
  @tags
end