Class: Azure::Subscriptions::Profiles::Latest::Mgmt::SubscriptionsClass

Inherits:
Object
  • Object
show all
Defined in:
lib/profiles/latest/modules/subscriptions_profile_module.rb

Overview

Subscriptions

Direct Known Subclasses

Client

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ SubscriptionsClass

Returns a new instance of SubscriptionsClass.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/profiles/latest/modules/subscriptions_profile_module.rb', line 29

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

  reset!(options)

  @configurable, @base_url, @options = self, nil, nil

  client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
  if(client_0.respond_to?(:subscription_id))
    client_0.subscription_id = configurable.subscription_id
  end
  @subscriptions = client_0.subscriptions
  @tenants = client_0.tenants

  @model_classes = ModelClasses.new
end

Instance Attribute Details

#base_urlObject (readonly)

Returns the value of attribute base_url.



27
28
29
# File 'lib/profiles/latest/modules/subscriptions_profile_module.rb', line 27

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



27
28
29
# File 'lib/profiles/latest/modules/subscriptions_profile_module.rb', line 27

def configurable
  @configurable
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



27
28
29
# File 'lib/profiles/latest/modules/subscriptions_profile_module.rb', line 27

def model_classes
  @model_classes
end

#optionsObject (readonly)

Returns the value of attribute options.



27
28
29
# File 'lib/profiles/latest/modules/subscriptions_profile_module.rb', line 27

def options
  @options
end

#subscriptionsObject (readonly)

Returns the value of attribute subscriptions.



27
28
29
# File 'lib/profiles/latest/modules/subscriptions_profile_module.rb', line 27

def subscriptions
  @subscriptions
end

#tenantsObject (readonly)

Returns the value of attribute tenants.



27
28
29
# File 'lib/profiles/latest/modules/subscriptions_profile_module.rb', line 27

def tenants
  @tenants
end