Class: Azure::Profiles::V2020_09_01_Hybrid::DataBoxEdge::Mgmt::DataBoxEdgeManagementClass

Inherits:
Object
  • Object
show all
Defined in:
lib/v2020_09_01_hybrid/modules/databoxedge_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) ⇒ DataBoxEdgeManagementClass

Returns a new instance of DataBoxEdgeManagementClass.



148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 148

def initialize(configurable, base_url=nil, options=nil)
  @configurable, @base_url, @options = configurable, base_url, options

  @client_0 = Azure::DataBoxEdge::Mgmt::V2019_08_01::DataBoxEdgeManagementClient.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
  @devices = @client_0.devices
  @alerts = @client_0.alerts
  @bandwidth_schedules = @client_0.bandwidth_schedules
  @jobs = @client_0.jobs
  @nodes = @client_0.nodes
  @operations_status = @client_0.operations_status
  @orders = @client_0.orders
  @roles = @client_0.roles
  @shares = @client_0.shares
  @storage_account_credentials = @client_0.
  @storage_accounts = @client_0.storage_accounts
  @containers = @client_0.containers
  @triggers = @client_0.triggers
  @users = @client_0.users
  @skus = @client_0.skus

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



181
182
183
184
185
186
187
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 181

def method_missing(method, *args)
  if @client_0.respond_to?method
    @client_0.send(method, *args)
  else
    super
  end
end

Instance Attribute Details

#alertsObject (readonly)

Returns the value of attribute alerts.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def alerts
  @alerts
end

#bandwidth_schedulesObject (readonly)

Returns the value of attribute bandwidth_schedules.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def bandwidth_schedules
  @bandwidth_schedules
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def configurable
  @configurable
end

#containersObject (readonly)

Returns the value of attribute containers.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def containers
  @containers
end

#devicesObject (readonly)

Returns the value of attribute devices.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def devices
  @devices
end

#jobsObject (readonly)

Returns the value of attribute jobs.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def jobs
  @jobs
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def model_classes
  @model_classes
end

#nodesObject (readonly)

Returns the value of attribute nodes.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def nodes
  @nodes
end

#operationsObject (readonly)

Returns the value of attribute operations.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def operations
  @operations
end

#operations_statusObject (readonly)

Returns the value of attribute operations_status.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def operations_status
  @operations_status
end

#optionsObject (readonly)

Returns the value of attribute options.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def options
  @options
end

#ordersObject (readonly)

Returns the value of attribute orders.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def orders
  @orders
end

#rolesObject (readonly)

Returns the value of attribute roles.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def roles
  @roles
end

#sharesObject (readonly)

Returns the value of attribute shares.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def shares
  @shares
end

#skusObject (readonly)

Returns the value of attribute skus.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def skus
  @skus
end

#storage_account_credentialsObject (readonly)

Returns the value of attribute storage_account_credentials.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def 
  @storage_account_credentials
end

#storage_accountsObject (readonly)

Returns the value of attribute storage_accounts.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def storage_accounts
  @storage_accounts
end

#triggersObject (readonly)

Returns the value of attribute triggers.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def triggers
  @triggers
end

#usersObject (readonly)

Returns the value of attribute users.



146
147
148
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 146

def users
  @users
end

Instance Method Details

#add_telemetry(client) ⇒ Object



176
177
178
179
# File 'lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb', line 176

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