Class: Azure::Profiles::V2020_09_01_Hybrid::Storage::Mgmt::StorageManagementClass

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

Defined Under Namespace

Classes: ModelClasses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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



187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 187

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

  @client_0 = Azure::Storage::Mgmt::V2019_06_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
  @usages = @client_0.usages
  @management_policies = @client_0.management_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



221
222
223
224
225
226
227
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 221

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.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def base_url
  @base_url
end

#blob_containersObject (readonly)

Returns the value of attribute blob_containers.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def blob_containers
  @blob_containers
end

#blob_servicesObject (readonly)

Returns the value of attribute blob_services.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def blob_services
  @blob_services
end

#configurableObject (readonly)

Returns the value of attribute configurable.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def configurable
  @configurable
end

#encryption_scopesObject (readonly)

Returns the value of attribute encryption_scopes.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def encryption_scopes
  @encryption_scopes
end

#file_servicesObject (readonly)

Returns the value of attribute file_services.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def file_services
  @file_services
end

#file_sharesObject (readonly)

Returns the value of attribute file_shares.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def file_shares
  @file_shares
end

#management_policiesObject (readonly)

Returns the value of attribute management_policies.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def management_policies
  @management_policies
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def model_classes
  @model_classes
end

#object_replication_policies_operationsObject (readonly)

Returns the value of attribute object_replication_policies_operations.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def object_replication_policies_operations
  @object_replication_policies_operations
end

#operationsObject (readonly)

Returns the value of attribute operations.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def options
  @options
end

#private_endpoint_connectionsObject (readonly)

Returns the value of attribute private_endpoint_connections.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def private_endpoint_connections
  @private_endpoint_connections
end

Returns the value of attribute private_link_resources.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def private_link_resources
  @private_link_resources
end

#queueObject (readonly)

Returns the value of attribute queue.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def queue
  @queue
end

#queue_servicesObject (readonly)

Returns the value of attribute queue_services.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def queue_services
  @queue_services
end

#skusObject (readonly)

Returns the value of attribute skus.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def skus
  @skus
end

#storage_accountsObject (readonly)

Returns the value of attribute storage_accounts.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def storage_accounts
  @storage_accounts
end

#table_operationsObject (readonly)

Returns the value of attribute table_operations.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def table_operations
  @table_operations
end

#table_servicesObject (readonly)

Returns the value of attribute table_services.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def table_services
  @table_services
end

#usagesObject (readonly)

Returns the value of attribute usages.



185
186
187
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 185

def usages
  @usages
end

Instance Method Details

#add_telemetry(client) ⇒ Object



216
217
218
219
# File 'lib/v2020_09_01_hybrid/modules/storage_profile_module.rb', line 216

def add_telemetry(client)
  profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2020_09_01_Hybrid/Storage/Mgmt"
  client.add_user_agent_information(profile_information)
end