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.
96 97 98 99 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 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 96 def initialize( = {}) if .is_a?(Hash) && .length == 0 = else = end reset!() @configurable = self @base_url = [:base_url].nil? ? nil:options[:base_url] = [:options].nil? ? nil:options[:options] @client_0 = Azure::NetApp::Mgmt::V2020_06_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
134 135 136 137 138 139 140 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 134 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.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def account_backups @account_backups end |
#accounts ⇒ Object (readonly)
Returns the value of attribute accounts.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def accounts @accounts end |
#backup_policies ⇒ Object (readonly)
Returns the value of attribute backup_policies.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def backup_policies @backup_policies end |
#backups ⇒ Object (readonly)
Returns the value of attribute backups.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def backups @backups end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def base_url @base_url end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def configurable @configurable end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def model_classes @model_classes end |
#net_app_resource ⇒ Object (readonly)
Returns the value of attribute net_app_resource.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def net_app_resource @net_app_resource end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def end |
#pools ⇒ Object (readonly)
Returns the value of attribute pools.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def pools @pools end |
#snapshot_policies ⇒ Object (readonly)
Returns the value of attribute snapshot_policies.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def snapshot_policies @snapshot_policies end |
#snapshots ⇒ Object (readonly)
Returns the value of attribute snapshots.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def snapshots @snapshots end |
#vaults ⇒ Object (readonly)
Returns the value of attribute vaults.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def vaults @vaults end |
#volumes ⇒ Object (readonly)
Returns the value of attribute volumes.
94 95 96 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94 def volumes @volumes end |
Instance Method Details
#add_telemetry(client) ⇒ Object
129 130 131 132 |
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 129 def add_telemetry(client) profile_information = 'Profiles/Latest/NetApp/Mgmt' client.add_user_agent_information(profile_information) end |