Class: Azure::Profiles::V2017_03_09::Client

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure::Common::Configurable
Defined in:
lib/v2017_03_09/v2017_03_09_profile_client.rb

Overview

Client class for the V2017_03_09 profile SDK.

Defined Under Namespace

Classes: AuthorizationAdapter, ComputeAdapter, DnsAdapter, FeaturesAdapter, KeyVaultAdapter, LinksAdapter, LocksAdapter, NetworkAdapter, PolicyAdapter, ResourcesAdapter, StorageAdapter, SubscriptionsAdapter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Client

Initializes a new instance of the Client class.

'credentials' are optional and if not passed in the hash, will be obtained
from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.

Also, base_url, active_directory_settings & options are optional.

Parameters:

  • options (Hash) (defaults to: {})

    hash of client options. options =

    tenant_id: 'YOUR TENANT ID',
    client_id: 'YOUR CLIENT ID',
    client_secret: 'YOUR CLIENT SECRET',
    subscription_id: 'YOUR SUBSCRIPTION ID',
    credentials: credentials,
    active_directory_settings: active_directory_settings,
    base_url: 'YOUR BASE URL',
    options: options
    



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 46

def initialize(options = {})
  if options.is_a?(Hash) && options.length == 0
    @options = setup_default_options
  else
    @options = options
  end

  reset!(options)

  base_url = options[:base_url].nil? ? nil:options[:base_url]
  sdk_options = options[:options].nil? ? nil:options[:options]

  @authorization = AuthorizationAdapter.new(self, base_url, sdk_options)
  @locks = LocksAdapter.new(self, base_url, sdk_options)
  @policy = PolicyAdapter.new(self, base_url, sdk_options)
  @compute = ComputeAdapter.new(self, base_url, sdk_options)
  @key_vault = KeyVaultAdapter.new(self, base_url, sdk_options)
  @network = NetworkAdapter.new(self, base_url, sdk_options)
  @dns = DnsAdapter.new(self, base_url, sdk_options)
  @resources = ResourcesAdapter.new(self, base_url, sdk_options)
  @links = LinksAdapter.new(self, base_url, sdk_options)
  @subscriptions = SubscriptionsAdapter.new(self, base_url, sdk_options)
  @storage = StorageAdapter.new(self, base_url, sdk_options)
  @features = FeaturesAdapter.new(self, base_url, sdk_options)
end

Instance Attribute Details

#authorizationObject (readonly)

Returns the value of attribute authorization.



26
27
28
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 26

def authorization
  @authorization
end

#computeObject (readonly)

Returns the value of attribute compute.



26
27
28
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 26

def compute
  @compute
end

#dnsObject (readonly)

Returns the value of attribute dns.



26
27
28
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 26

def dns
  @dns
end

#featuresObject (readonly)

Returns the value of attribute features.



26
27
28
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 26

def features
  @features
end

#key_vaultObject (readonly)

Returns the value of attribute key_vault.



26
27
28
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 26

def key_vault
  @key_vault
end

Returns the value of attribute links.



26
27
28
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 26

def links
  @links
end

#locksObject (readonly)

Returns the value of attribute locks.



26
27
28
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 26

def locks
  @locks
end

#networkObject (readonly)

Returns the value of attribute network.



26
27
28
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 26

def network
  @network
end

#policyObject (readonly)

Returns the value of attribute policy.



26
27
28
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 26

def policy
  @policy
end

#resourcesObject (readonly)

Returns the value of attribute resources.



26
27
28
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 26

def resources
  @resources
end

#storageObject (readonly)

Returns the value of attribute storage.



26
27
28
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 26

def storage
  @storage
end

#subscriptionsObject (readonly)

Returns the value of attribute subscriptions.



26
27
28
# File 'lib/v2017_03_09/v2017_03_09_profile_client.rb', line 26

def subscriptions
  @subscriptions
end