Class: Azure::EdgeGateway::Profiles::Latest::Mgmt::EdgeGatewayManagementClass

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

Overview

EdgeGatewayManagementClass

Direct Known Subclasses

Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ EdgeGatewayManagementClass

Returns a new instance of EdgeGatewayManagementClass.



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 129

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::EdgeGateway::Mgmt::V2019_03_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
  @operations_status = @client_0.operations_status
  @orders = @client_0.orders
  @roles = @client_0.roles
  @shares = @client_0.shares
   = @client_0.
  @triggers = @client_0.triggers
  @users = @client_0.users

  @model_classes = ModelClasses.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



168
169
170
171
172
173
174
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 168

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.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def alerts
  @alerts
end

#bandwidth_schedulesObject (readonly)

Returns the value of attribute bandwidth_schedules.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def bandwidth_schedules
  @bandwidth_schedules
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def base_url
  @base_url
end

#configurableObject (readonly)

Returns the value of attribute configurable.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def configurable
  @configurable
end

#devicesObject (readonly)

Returns the value of attribute devices.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def devices
  @devices
end

#jobsObject (readonly)

Returns the value of attribute jobs.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def jobs
  @jobs
end

#model_classesObject (readonly)

Returns the value of attribute model_classes.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def model_classes
  @model_classes
end

#operationsObject (readonly)

Returns the value of attribute operations.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def operations
  @operations
end

#operations_statusObject (readonly)

Returns the value of attribute operations_status.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def operations_status
  @operations_status
end

#optionsObject (readonly)

Returns the value of attribute options.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def options
  @options
end

#ordersObject (readonly)

Returns the value of attribute orders.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def orders
  @orders
end

#rolesObject (readonly)

Returns the value of attribute roles.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def roles
  @roles
end

#sharesObject (readonly)

Returns the value of attribute shares.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def shares
  @shares
end

#storage_account_credentialsObject (readonly)

Returns the value of attribute storage_account_credentials.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def 
  
end

#triggersObject (readonly)

Returns the value of attribute triggers.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def triggers
  @triggers
end

#usersObject (readonly)

Returns the value of attribute users.



127
128
129
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 127

def users
  @users
end

Instance Method Details

#add_telemetry(client) ⇒ Object



163
164
165
166
# File 'lib/profiles/latest/modules/edgegateway_profile_module.rb', line 163

def add_telemetry(client)
  profile_information = 'Profiles/Latest/EdgeGateway/Mgmt'
  client.add_user_agent_information(profile_information)
end