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

Inherits:
Object
  • Object
show all
Defined in:
lib/latest/modules/netapp_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) ⇒ NetAppManagementClass

Returns a new instance of NetAppManagementClass.



94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'lib/latest/modules/netapp_profile_module.rb', line 94

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, 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



122
123
124
125
126
127
128
# File 'lib/latest/modules/netapp_profile_module.rb', line 122

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.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def 
  @account_backups
end

#accountsObject (readonly)

Returns the value of attribute accounts.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def accounts
  @accounts
end

#backup_policiesObject (readonly)

Returns the value of attribute backup_policies.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def backup_policies
  @backup_policies
end

#backupsObject (readonly)

Returns the value of attribute backups.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def backups
  @backups
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def configurable
  @configurable
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def model_classes
  @model_classes
end

#net_app_resourceObject (readonly)

Returns the value of attribute net_app_resource.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def net_app_resource
  @net_app_resource
end

#operationsObject (readonly)

Returns the value of attribute operations.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def operations
  @operations
end

#optionsObject (readonly)

Returns the value of attribute options.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def options
  @options
end

#poolsObject (readonly)

Returns the value of attribute pools.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def pools
  @pools
end

#snapshot_policiesObject (readonly)

Returns the value of attribute snapshot_policies.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def snapshot_policies
  @snapshot_policies
end

#snapshotsObject (readonly)

Returns the value of attribute snapshots.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def snapshots
  @snapshots
end

#vaultsObject (readonly)

Returns the value of attribute vaults.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def vaults
  @vaults
end

#volumesObject (readonly)

Returns the value of attribute volumes.



92
93
94
# File 'lib/latest/modules/netapp_profile_module.rb', line 92

def volumes
  @volumes
end

Instance Method Details

#add_telemetry(client) ⇒ Object



117
118
119
120
# File 'lib/latest/modules/netapp_profile_module.rb', line 117

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