Class: Azure::Storage::Profiles::Latest::Mgmt::StorageClass

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

Overview

Storage

Direct Known Subclasses

Client

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ StorageClass

Returns a new instance of StorageClass.



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 79

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::Storage::Mgmt::V2017_06_01::StorageManagementClient.new(configurable.credentials, base_url, options)
  if(client_0.respond_to?(:subscription_id))
    client_0.subscription_id = configurable.subscription_id
  end
  @operations = client_0.operations
  @skus = client_0.skus
  @storage_accounts = client_0.storage_accounts
  @usage_operations = client_0.usage_operations

  @model_classes = ModelClasses.new
end

Instance Attribute Details

#base_urlObject (readonly)

Returns the value of attribute base_url.



77
78
79
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 77

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



77
78
79
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 77

def configurable
  @configurable
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



77
78
79
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 77

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



77
78
79
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 77

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



77
78
79
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 77

def options
  @options
end

#skusObject (readonly)

Returns the value of attribute skus.



77
78
79
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 77

def skus
  @skus
end

#storage_accountsObject (readonly)

Returns the value of attribute storage_accounts.



77
78
79
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 77

def storage_accounts
  @storage_accounts
end

#usage_operationsObject (readonly)

Returns the value of attribute usage_operations.



77
78
79
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 77

def usage_operations
  @usage_operations
end