Class: UntitledApi::ApiV1SitesStatsClientsResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/untitled_api/models/api_v1_sites_stats_clients_response.rb

Overview

Response data

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(mac = SKIP, site_id = SKIP, assoc_time = SKIP, family = SKIP, model = SKIP, os = SKIP, manufacture = SKIP, ap_mac = SKIP, ap_id = SKIP, last_seen = SKIP, uptime = SKIP, dual_band = SKIP, key_mgmt = SKIP, group = SKIP, band = SKIP, channel = SKIP, vlan_id = SKIP, proto = SKIP, rssi = SKIP, snr = SKIP, idle_time = SKIP, tx_rate = SKIP, rx_rate = SKIP, tx_pkts = SKIP, rx_pkts = SKIP, tx_bytes = SKIP, rx_bytes = SKIP, tx_retries = SKIP, rx_retries = SKIP, tx_bps = SKIP, rx_bps = SKIP, hostname = SKIP, ip = SKIP, ssid = SKIP, wlan_id = SKIP, is_guest = SKIP, psk_id = SKIP, ttl = SKIP, id = SKIP, annotation = SKIP) ⇒ ApiV1SitesStatsClientsResponse



269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 269

def initialize(mac = SKIP,
               site_id = SKIP,
               assoc_time = SKIP,
               family = SKIP,
               model = SKIP,
               os = SKIP,
               manufacture = SKIP,
               ap_mac = SKIP,
               ap_id = SKIP,
               last_seen = SKIP,
               uptime = SKIP,
               dual_band = SKIP,
               key_mgmt = SKIP,
               group = SKIP,
               band = SKIP,
               channel = SKIP,
               vlan_id = SKIP,
               proto = SKIP,
               rssi = SKIP,
               snr = SKIP,
               idle_time = SKIP,
               tx_rate = SKIP,
               rx_rate = SKIP,
               tx_pkts = SKIP,
               rx_pkts = SKIP,
               tx_bytes = SKIP,
               rx_bytes = SKIP,
               tx_retries = SKIP,
               rx_retries = SKIP,
               tx_bps = SKIP,
               rx_bps = SKIP,
               hostname = SKIP,
               ip = SKIP,
               ssid = SKIP,
               wlan_id = SKIP,
               is_guest = SKIP,
               psk_id = SKIP,
               ttl = SKIP,
               id = SKIP,
               annotation = SKIP)
  @mac = mac unless mac == SKIP
  @site_id = site_id unless site_id == SKIP
  @assoc_time = assoc_time unless assoc_time == SKIP
  @family = family unless family == SKIP
  @model = model unless model == SKIP
  @os = os unless os == SKIP
  @manufacture = manufacture unless manufacture == SKIP
  @ap_mac = ap_mac unless ap_mac == SKIP
  @ap_id = ap_id unless ap_id == SKIP
  @last_seen = last_seen unless last_seen == SKIP
  @uptime = uptime unless uptime == SKIP
  @dual_band = dual_band unless dual_band == SKIP
  @key_mgmt = key_mgmt unless key_mgmt == SKIP
  @group = group unless group == SKIP
  @band = band unless band == SKIP
  @channel = channel unless channel == SKIP
  @vlan_id = vlan_id unless vlan_id == SKIP
  @proto = proto unless proto == SKIP
  @rssi = rssi unless rssi == SKIP
  @snr = snr unless snr == SKIP
  @idle_time = idle_time unless idle_time == SKIP
  @tx_rate = tx_rate unless tx_rate == SKIP
  @rx_rate = rx_rate unless rx_rate == SKIP
  @tx_pkts = tx_pkts unless tx_pkts == SKIP
  @rx_pkts = rx_pkts unless rx_pkts == SKIP
  @tx_bytes = tx_bytes unless tx_bytes == SKIP
  @rx_bytes = rx_bytes unless rx_bytes == SKIP
  @tx_retries = tx_retries unless tx_retries == SKIP
  @rx_retries = rx_retries unless rx_retries == SKIP
  @tx_bps = tx_bps unless tx_bps == SKIP
  @rx_bps = rx_bps unless rx_bps == SKIP
  @hostname = hostname unless hostname == SKIP
  @ip = ip unless ip == SKIP
  @ssid = ssid unless ssid == SKIP
  @wlan_id = wlan_id unless wlan_id == SKIP
  @is_guest = is_guest unless is_guest == SKIP
  @psk_id = psk_id unless psk_id == SKIP
  @ttl = ttl unless ttl == SKIP
  @id = id unless id == SKIP
  @annotation = annotation unless annotation == SKIP
end

Instance Attribute Details

#annotationString

TODO: Write general description for this method



170
171
172
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 170

def annotation
  @annotation
end

#ap_idString

TODO: Write general description for this method



46
47
48
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 46

def ap_id
  @ap_id
end

#ap_macString

TODO: Write general description for this method



42
43
44
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 42

def ap_mac
  @ap_mac
end

#assoc_timeFloat

TODO: Write general description for this method



22
23
24
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 22

def assoc_time
  @assoc_time
end

#bandString

TODO: Write general description for this method



70
71
72
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 70

def band
  @band
end

#channelFloat

TODO: Write general description for this method



74
75
76
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 74

def channel
  @channel
end

#dual_bandObject

TODO: Write general description for this method



58
59
60
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 58

def dual_band
  @dual_band
end

#familyString

TODO: Write general description for this method



26
27
28
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 26

def family
  @family
end

#groupString

TODO: Write general description for this method



66
67
68
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 66

def group
  @group
end

#hostnameString

TODO: Write general description for this method



138
139
140
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 138

def hostname
  @hostname
end

#idString

TODO: Write general description for this method



166
167
168
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 166

def id
  @id
end

#idle_timeFloat

TODO: Write general description for this method



94
95
96
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 94

def idle_time
  @idle_time
end

#ipString

TODO: Write general description for this method



142
143
144
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 142

def ip
  @ip
end

#is_guestObject

TODO: Write general description for this method



154
155
156
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 154

def is_guest
  @is_guest
end

#key_mgmtString

TODO: Write general description for this method



62
63
64
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 62

def key_mgmt
  @key_mgmt
end

#last_seenFloat

TODO: Write general description for this method



50
51
52
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 50

def last_seen
  @last_seen
end

#macString

TODO: Write general description for this method



14
15
16
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 14

def mac
  @mac
end

#manufactureString

TODO: Write general description for this method



38
39
40
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 38

def manufacture
  @manufacture
end

#modelString

TODO: Write general description for this method



30
31
32
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 30

def model
  @model
end

#osString

TODO: Write general description for this method



34
35
36
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 34

def os
  @os
end

#protoString

TODO: Write general description for this method



82
83
84
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 82

def proto
  @proto
end

#psk_idString

TODO: Write general description for this method



158
159
160
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 158

def psk_id
  @psk_id
end

#rssiFloat

TODO: Write general description for this method



86
87
88
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 86

def rssi
  @rssi
end

#rx_bpsFloat

TODO: Write general description for this method



134
135
136
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 134

def rx_bps
  @rx_bps
end

#rx_bytesFloat

TODO: Write general description for this method



118
119
120
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 118

def rx_bytes
  @rx_bytes
end

#rx_pktsFloat

TODO: Write general description for this method



110
111
112
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 110

def rx_pkts
  @rx_pkts
end

#rx_rateFloat

TODO: Write general description for this method



102
103
104
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 102

def rx_rate
  @rx_rate
end

#rx_retriesFloat

TODO: Write general description for this method



126
127
128
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 126

def rx_retries
  @rx_retries
end

#site_idString

TODO: Write general description for this method



18
19
20
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 18

def site_id
  @site_id
end

#snrFloat

TODO: Write general description for this method



90
91
92
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 90

def snr
  @snr
end

#ssidString

TODO: Write general description for this method



146
147
148
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 146

def ssid
  @ssid
end

#ttlFloat

TODO: Write general description for this method



162
163
164
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 162

def ttl
  @ttl
end

#tx_bpsFloat

TODO: Write general description for this method



130
131
132
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 130

def tx_bps
  @tx_bps
end

#tx_bytesFloat

TODO: Write general description for this method



114
115
116
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 114

def tx_bytes
  @tx_bytes
end

#tx_pktsFloat

TODO: Write general description for this method



106
107
108
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 106

def tx_pkts
  @tx_pkts
end

#tx_rateFloat

TODO: Write general description for this method



98
99
100
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 98

def tx_rate
  @tx_rate
end

#tx_retriesFloat

TODO: Write general description for this method



122
123
124
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 122

def tx_retries
  @tx_retries
end

#uptimeFloat

TODO: Write general description for this method



54
55
56
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 54

def uptime
  @uptime
end

#vlan_idString

TODO: Write general description for this method



78
79
80
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 78

def vlan_id
  @vlan_id
end

#wlan_idString

TODO: Write general description for this method



150
151
152
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 150

def wlan_id
  @wlan_id
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 352

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.

  mac = hash.key?('mac') ? hash['mac'] : SKIP
  site_id = hash.key?('site_id') ? hash['site_id'] : SKIP
  assoc_time = hash.key?('assoc_time') ? hash['assoc_time'] : SKIP
  family = hash.key?('family') ? hash['family'] : SKIP
  model = hash.key?('model') ? hash['model'] : SKIP
  os = hash.key?('os') ? hash['os'] : SKIP
  manufacture = hash.key?('manufacture') ? hash['manufacture'] : SKIP
  ap_mac = hash.key?('ap_mac') ? hash['ap_mac'] : SKIP
  ap_id = hash.key?('ap_id') ? hash['ap_id'] : SKIP
  last_seen = hash.key?('last_seen') ? hash['last_seen'] : SKIP
  uptime = hash.key?('uptime') ? hash['uptime'] : SKIP
  dual_band = hash.key?('dual_band') ? hash['dual_band'] : SKIP
  key_mgmt = hash.key?('key_mgmt') ? hash['key_mgmt'] : SKIP
  group = hash.key?('group') ? hash['group'] : SKIP
  band = hash.key?('band') ? hash['band'] : SKIP
  channel = hash.key?('channel') ? hash['channel'] : SKIP
  vlan_id = hash.key?('vlan_id') ? hash['vlan_id'] : SKIP
  proto = hash.key?('proto') ? hash['proto'] : SKIP
  rssi = hash.key?('rssi') ? hash['rssi'] : SKIP
  snr = hash.key?('snr') ? hash['snr'] : SKIP
  idle_time = hash.key?('idle_time') ? hash['idle_time'] : SKIP
  tx_rate = hash.key?('tx_rate') ? hash['tx_rate'] : SKIP
  rx_rate = hash.key?('rx_rate') ? hash['rx_rate'] : SKIP
  tx_pkts = hash.key?('tx_pkts') ? hash['tx_pkts'] : SKIP
  rx_pkts = hash.key?('rx_pkts') ? hash['rx_pkts'] : SKIP
  tx_bytes = hash.key?('tx_bytes') ? hash['tx_bytes'] : SKIP
  rx_bytes = hash.key?('rx_bytes') ? hash['rx_bytes'] : SKIP
  tx_retries = hash.key?('tx_retries') ? hash['tx_retries'] : SKIP
  rx_retries = hash.key?('rx_retries') ? hash['rx_retries'] : SKIP
  tx_bps = hash.key?('tx_bps') ? hash['tx_bps'] : SKIP
  rx_bps = hash.key?('rx_bps') ? hash['rx_bps'] : SKIP
  hostname = hash.key?('hostname') ? hash['hostname'] : SKIP
  ip = hash.key?('ip') ? hash['ip'] : SKIP
  ssid = hash.key?('ssid') ? hash['ssid'] : SKIP
  wlan_id = hash.key?('wlan_id') ? hash['wlan_id'] : SKIP
  is_guest = hash.key?('is_guest') ? hash['is_guest'] : SKIP
  psk_id = hash.key?('psk_id') ? hash['psk_id'] : SKIP
  ttl = hash.key?('_ttl') ? hash['_ttl'] : SKIP
  id = hash.key?('_id') ? hash['_id'] : SKIP
  annotation = hash.key?('annotation') ? hash['annotation'] : SKIP

  # Create object from extracted values.

  ApiV1SitesStatsClientsResponse.new(mac,
                                     site_id,
                                     assoc_time,
                                     family,
                                     model,
                                     os,
                                     manufacture,
                                     ap_mac,
                                     ap_id,
                                     last_seen,
                                     uptime,
                                     dual_band,
                                     key_mgmt,
                                     group,
                                     band,
                                     channel,
                                     vlan_id,
                                     proto,
                                     rssi,
                                     snr,
                                     idle_time,
                                     tx_rate,
                                     rx_rate,
                                     tx_pkts,
                                     rx_pkts,
                                     tx_bytes,
                                     rx_bytes,
                                     tx_retries,
                                     rx_retries,
                                     tx_bps,
                                     rx_bps,
                                     hostname,
                                     ip,
                                     ssid,
                                     wlan_id,
                                     is_guest,
                                     psk_id,
                                     ttl,
                                     id,
                                     annotation)
end

.namesObject

A mapping from model property names to API property names.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 173

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['mac'] = 'mac'
  @_hash['site_id'] = 'site_id'
  @_hash['assoc_time'] = 'assoc_time'
  @_hash['family'] = 'family'
  @_hash['model'] = 'model'
  @_hash['os'] = 'os'
  @_hash['manufacture'] = 'manufacture'
  @_hash['ap_mac'] = 'ap_mac'
  @_hash['ap_id'] = 'ap_id'
  @_hash['last_seen'] = 'last_seen'
  @_hash['uptime'] = 'uptime'
  @_hash['dual_band'] = 'dual_band'
  @_hash['key_mgmt'] = 'key_mgmt'
  @_hash['group'] = 'group'
  @_hash['band'] = 'band'
  @_hash['channel'] = 'channel'
  @_hash['vlan_id'] = 'vlan_id'
  @_hash['proto'] = 'proto'
  @_hash['rssi'] = 'rssi'
  @_hash['snr'] = 'snr'
  @_hash['idle_time'] = 'idle_time'
  @_hash['tx_rate'] = 'tx_rate'
  @_hash['rx_rate'] = 'rx_rate'
  @_hash['tx_pkts'] = 'tx_pkts'
  @_hash['rx_pkts'] = 'rx_pkts'
  @_hash['tx_bytes'] = 'tx_bytes'
  @_hash['rx_bytes'] = 'rx_bytes'
  @_hash['tx_retries'] = 'tx_retries'
  @_hash['rx_retries'] = 'rx_retries'
  @_hash['tx_bps'] = 'tx_bps'
  @_hash['rx_bps'] = 'rx_bps'
  @_hash['hostname'] = 'hostname'
  @_hash['ip'] = 'ip'
  @_hash['ssid'] = 'ssid'
  @_hash['wlan_id'] = 'wlan_id'
  @_hash['is_guest'] = 'is_guest'
  @_hash['psk_id'] = 'psk_id'
  @_hash['ttl'] = '_ttl'
  @_hash['id'] = '_id'
  @_hash['annotation'] = 'annotation'
  @_hash
end

.nullablesObject

An array for nullable fields



265
266
267
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 265

def self.nullables
  []
end

.optionalsObject

An array for optional fields



219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# File 'lib/untitled_api/models/api_v1_sites_stats_clients_response.rb', line 219

def self.optionals
  %w[
    mac
    site_id
    assoc_time
    family
    model
    os
    manufacture
    ap_mac
    ap_id
    last_seen
    uptime
    dual_band
    key_mgmt
    group
    band
    channel
    vlan_id
    proto
    rssi
    snr
    idle_time
    tx_rate
    rx_rate
    tx_pkts
    rx_pkts
    tx_bytes
    rx_bytes
    tx_retries
    rx_retries
    tx_bps
    rx_bps
    hostname
    ip
    ssid
    wlan_id
    is_guest
    psk_id
    ttl
    id
    annotation
  ]
end