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.



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, 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

  @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_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

#credentialsServiceClient

client subscription.

Returns:

  • (ServiceClient)

    Subscription credentials which uniquely identify



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



51
52
53
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 51

def deployment_operations
  @deployment_operations
end

#deploymentsObject (readonly)

Returns deployments.

Returns:

  • deployments



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

def deployments
  @deployments
end

#long_running_operation_retry_timeoutInteger

Returns The retry timeout for Long Running Operations.

Returns:

  • (Integer)

    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

#providersObject (readonly)

Returns providers.

Returns:

  • providers



39
40
41
# File 'lib/azure_mgmt_resources/resource_management_client.rb', line 39

def providers
  @providers
end

#resource_groupsObject (readonly)

Returns resource_groups.

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

Returns resource_provider_operation_details.

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

#resourcesObject (readonly)

Returns resources.

Returns:

  • resources



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

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



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

def tags
  @tags
end