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

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

Overview

Subscriptions

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configurable, base_url = nil, options = nil) ⇒ SubscriptionsClass

Returns a new instance of SubscriptionsClass.



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/latest/modules/subscriptions_profile_module.rb', line 30

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, options

  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.



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

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



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

def configurable
  @configurable
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



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

def model_classes
  @model_classes
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

#subscriptionsObject (readonly)

Returns the value of attribute subscriptions.



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

def subscriptions
  @subscriptions
end

#tenantsObject (readonly)

Returns the value of attribute tenants.



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

def tenants
  @tenants
end