Class: Azure::Storage::Profiles::Latest::Mgmt::StorageManagementClass

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

Overview

StorageManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ StorageManagementClass

Returns a new instance of StorageManagementClass.



215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 215

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

  reset!(options)

  @configurable = self
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
  @options = options[:options].nil? ? nil:options[:options]

  @client_0 = Azure::Storage::Mgmt::V2021_01_01::StorageManagementClient.new(configurable.credentials, base_url, options)
  if(@client_0.respond_to?(:subscription_id))
    @client_0.subscription_id = configurable.subscription_id
  end
  add_telemetry(@client_0)
  @operations = @client_0.operations
  @skus = @client_0.skus
  @storage_accounts = @client_0.storage_accounts
  @deleted_accounts = @client_0.deleted_accounts
  @usages = @client_0.usages
  @management_policies = @client_0.management_policies
  @blob_inventory_policies = @client_0.blob_inventory_policies
  @private_endpoint_connections = @client_0.private_endpoint_connections
  @private_link_resources = @client_0.private_link_resources
  @object_replication_policies_operations = @client_0.object_replication_policies_operations
  @encryption_scopes = @client_0.encryption_scopes
  @blob_services = @client_0.blob_services
  @blob_containers = @client_0.blob_containers
  @file_services = @client_0.file_services
  @file_shares = @client_0.file_shares
  @queue_services = @client_0.queue_services
  @queue = @client_0.queue
  @table_services = @client_0.table_services
  @table_operations = @client_0.table_operations

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



261
262
263
264
265
266
267
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 261

def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end

Instance Attribute Details

#base_urlObject (readonly)

Returns the value of attribute base_url.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def base_url
  @base_url
end

#blob_containersObject (readonly)

Returns the value of attribute blob_containers.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def blob_containers
  @blob_containers
end

#blob_inventory_policiesObject (readonly)

Returns the value of attribute blob_inventory_policies.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def blob_inventory_policies
  @blob_inventory_policies
end

#blob_servicesObject (readonly)

Returns the value of attribute blob_services.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def blob_services
  @blob_services
end

#configurableObject (readonly)

Returns the value of attribute configurable.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def configurable
  @configurable
end

#deleted_accountsObject (readonly)

Returns the value of attribute deleted_accounts.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def deleted_accounts
  @deleted_accounts
end

#encryption_scopesObject (readonly)

Returns the value of attribute encryption_scopes.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def encryption_scopes
  @encryption_scopes
end

#file_servicesObject (readonly)

Returns the value of attribute file_services.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def file_services
  @file_services
end

#file_sharesObject (readonly)

Returns the value of attribute file_shares.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def file_shares
  @file_shares
end

#management_policiesObject (readonly)

Returns the value of attribute management_policies.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def management_policies
  @management_policies
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def model_classes
  @model_classes
end

#object_replication_policies_operationsObject (readonly)

Returns the value of attribute object_replication_policies_operations.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def object_replication_policies_operations
  @object_replication_policies_operations
end

#operationsObject (readonly)

Returns the value of attribute operations.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def options
  @options
end

#private_endpoint_connectionsObject (readonly)

Returns the value of attribute private_endpoint_connections.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def private_endpoint_connections
  @private_endpoint_connections
end

Returns the value of attribute private_link_resources.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def private_link_resources
  @private_link_resources
end

#queueObject (readonly)

Returns the value of attribute queue.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def queue
  @queue
end

#queue_servicesObject (readonly)

Returns the value of attribute queue_services.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def queue_services
  @queue_services
end

#skusObject (readonly)

Returns the value of attribute skus.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def skus
  @skus
end

#storage_accountsObject (readonly)

Returns the value of attribute storage_accounts.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def storage_accounts
  @storage_accounts
end

#table_operationsObject (readonly)

Returns the value of attribute table_operations.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def table_operations
  @table_operations
end

#table_servicesObject (readonly)

Returns the value of attribute table_services.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def table_services
  @table_services
end

#usagesObject (readonly)

Returns the value of attribute usages.



213
214
215
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 213

def usages
  @usages
end

Instance Method Details

#add_telemetry(client) ⇒ Object



256
257
258
259
# File 'lib/profiles/latest/modules/storage_profile_module.rb', line 256

def add_telemetry(client)
  profile_information = 'Profiles/Latest/Storage/Mgmt'
  client.add_user_agent_information(profile_information)
end