Class: Azure::Storage::Profiles::V2017_03_09::Mgmt::StorageManagementClass
- Inherits:
-
Object
- Object
- Azure::Storage::Profiles::V2017_03_09::Mgmt::StorageManagementClass
- Defined in:
- lib/profiles/v2017_03_09/modules/storage_profile_module.rb
Overview
StorageManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#storage_accounts ⇒ Object
readonly
Returns the value of attribute storage_accounts.
-
#usage_operations ⇒ Object
readonly
Returns the value of attribute usage_operations.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ StorageManagementClass
constructor
A new instance of StorageManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ StorageManagementClass
Returns a new instance of StorageManagementClass.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/profiles/v2017_03_09/modules/storage_profile_module.rb', line 49 def initialize( = {}) if .is_a?(Hash) && .length == 0 @options = else @options = end reset!() @configurable = self @base_url = [:base_url].nil? ? nil:[:base_url] @options = [:options].nil? ? nil:[:options] @client_0 = Azure::Storage::Mgmt::V2016_01_01::StorageManagementClient.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @storage_accounts = @client_0.storage_accounts @usage_operations = @client_0.usage_operations @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
78 79 80 81 82 83 84 |
# File 'lib/profiles/v2017_03_09/modules/storage_profile_module.rb', line 78 def method_missing(method, *args) if @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
47 48 49 |
# File 'lib/profiles/v2017_03_09/modules/storage_profile_module.rb', line 47 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
47 48 49 |
# File 'lib/profiles/v2017_03_09/modules/storage_profile_module.rb', line 47 def configurable @configurable end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
47 48 49 |
# File 'lib/profiles/v2017_03_09/modules/storage_profile_module.rb', line 47 def model_classes @model_classes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
47 48 49 |
# File 'lib/profiles/v2017_03_09/modules/storage_profile_module.rb', line 47 def @options end |
#storage_accounts ⇒ Object (readonly)
Returns the value of attribute storage_accounts.
47 48 49 |
# File 'lib/profiles/v2017_03_09/modules/storage_profile_module.rb', line 47 def storage_accounts @storage_accounts end |
#usage_operations ⇒ Object (readonly)
Returns the value of attribute usage_operations.
47 48 49 |
# File 'lib/profiles/v2017_03_09/modules/storage_profile_module.rb', line 47 def usage_operations @usage_operations end |
Instance Method Details
#add_telemetry(client) ⇒ Object
73 74 75 76 |
# File 'lib/profiles/v2017_03_09/modules/storage_profile_module.rb', line 73 def add_telemetry(client) profile_information = 'Profiles/V2017_03_09/Storage/Mgmt' client.add_user_agent_information(profile_information) end |