Class: Azure::NetApp::Profiles::Latest::Mgmt::NetAppManagementClass

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

Overview

NetAppManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

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(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::NetApp::Mgmt::V2020_06_01::AzureNetAppFilesManagementClient.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
  @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.
  @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_backupsObject (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
end

#accountsObject (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_policiesObject (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

#backupsObject (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_urlObject (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

#configurableObject (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_classesObject (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_resourceObject (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

#operationsObject (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

#optionsObject (readonly)

Returns the value of attribute options.



94
95
96
# File 'lib/profiles/latest/modules/netapp_profile_module.rb', line 94

def options
  @options
end

#poolsObject (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_policiesObject (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

#snapshotsObject (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

#vaultsObject (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

#volumesObject (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