Class: Azure::NetApp::Profiles::Latest::Mgmt::NetAppManagementClass
- Inherits:
-
Object
- Object
- Azure::NetApp::Profiles::Latest::Mgmt::NetAppManagementClass
- Defined in:
- lib/profiles/latest/modules/netapp_profile_module.rb
Overview
NetAppManagementClass
Direct Known Subclasses
Instance Attribute Summary collapse
-
#account_backups ⇒ Object
readonly
Returns the value of attribute account_backups.
-
#accounts ⇒ Object
readonly
Returns the value of attribute accounts.
-
#backup_policies ⇒ Object
readonly
Returns the value of attribute backup_policies.
-
#backups ⇒ Object
readonly
Returns the value of attribute backups.
-
#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.
-
#net_app_resource ⇒ Object
readonly
Returns the value of attribute net_app_resource.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#pools ⇒ Object
readonly
Returns the value of attribute pools.
-
#snapshot_policies ⇒ Object
readonly
Returns the value of attribute snapshot_policies.
-
#snapshots ⇒ Object
readonly
Returns the value of attribute snapshots.
-
#vaults ⇒ Object
readonly
Returns the value of attribute vaults.
-
#volumes ⇒ Object
readonly
Returns the value of attribute volumes.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(options = {}) ⇒ NetAppManagementClass
constructor
A new instance of NetAppManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ NetAppManagementClass
Returns a new instance of NetAppManagementClass.
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 100 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::NetApp::Mgmt::V2020_11_01::AzureNetAppFilesManagementClient.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @operations = @client_0.operations @net_app_resource = @client_0.net_app_resource @accounts = @client_0.accounts @pools = @client_0.pools @volumes = @client_0.volumes @snapshots = @client_0.snapshots @snapshot_policies = @client_0.snapshot_policies @account_backups = @client_0.account_backups @backups = @client_0.backups @backup_policies = @client_0.backup_policies @vaults = @client_0.vaults @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
138 139 140 141 142 143 144 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 138 def method_missing(method, *args) if @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#account_backups ⇒ Object (readonly)
Returns the value of attribute account_backups.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def account_backups @account_backups end |
#accounts ⇒ Object (readonly)
Returns the value of attribute accounts.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def accounts @accounts end |
#backup_policies ⇒ Object (readonly)
Returns the value of attribute backup_policies.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def backup_policies @backup_policies end |
#backups ⇒ Object (readonly)
Returns the value of attribute backups.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def backups @backups end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def configurable @configurable end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def model_classes @model_classes end |
#net_app_resource ⇒ Object (readonly)
Returns the value of attribute net_app_resource.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def net_app_resource @net_app_resource end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def @options end |
#pools ⇒ Object (readonly)
Returns the value of attribute pools.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def pools @pools end |
#snapshot_policies ⇒ Object (readonly)
Returns the value of attribute snapshot_policies.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def snapshot_policies @snapshot_policies end |
#snapshots ⇒ Object (readonly)
Returns the value of attribute snapshots.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def snapshots @snapshots end |
#vaults ⇒ Object (readonly)
Returns the value of attribute vaults.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def vaults @vaults end |
#volumes ⇒ Object (readonly)
Returns the value of attribute volumes.
98 99 100 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 98 def volumes @volumes end |
Instance Method Details
#add_telemetry(client) ⇒ Object
133 134 135 136 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 133 def add_telemetry(client) profile_information = 'Profiles/Latest/NetApp/Mgmt' client.add_user_agent_information(profile_information) end |