Class: IntersightClient::NetworkElementSummaryAllOf

Inherits:
Object
  • Object
show all
Defined in:
lib/intersight_client/models/network_element_summary_all_of.rb

Overview

Definition of the list of properties defined in ‘network.ElementSummary’, excluding properties defined in parent classes.

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ NetworkElementSummaryAllOf

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
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
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 330

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `IntersightClient::NetworkElementSummaryAllOf` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.acceptable_attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `#{self.class.name}`. Please check the name to make sure it's valid. List of attributes: " + self.class.acceptable_attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'class_id')
    self.class_id = attributes[:'class_id']
  else
    self.class_id = 'network.ElementSummary'
  end

  if attributes.key?(:'object_type')
    self.object_type = attributes[:'object_type']
  else
    self.object_type = 'network.ElementSummary'
  end

  if attributes.key?(:'admin_evac_state')
    self.admin_evac_state = attributes[:'admin_evac_state']
  end

  if attributes.key?(:'admin_inband_interface_state')
    self.admin_inband_interface_state = attributes[:'admin_inband_interface_state']
  end

  if attributes.key?(:'alarm_summary')
    self.alarm_summary = attributes[:'alarm_summary']
  end

  if attributes.key?(:'available_memory')
    self.available_memory = attributes[:'available_memory']
  end

  if attributes.key?(:'device_mo_id')
    self.device_mo_id = attributes[:'device_mo_id']
  end

  if attributes.key?(:'dn')
    self.dn = attributes[:'dn']
  end

  if attributes.key?(:'ethernet_mode')
    self.ethernet_mode = attributes[:'ethernet_mode']
  end

  if attributes.key?(:'ethernet_switching_mode')
    self.ethernet_switching_mode = attributes[:'ethernet_switching_mode']
  else
    self.ethernet_switching_mode = 'end-host'
  end

  if attributes.key?(:'fault_summary')
    self.fault_summary = attributes[:'fault_summary']
  end

  if attributes.key?(:'fc_mode')
    self.fc_mode = attributes[:'fc_mode']
  end

  if attributes.key?(:'fc_switching_mode')
    self.fc_switching_mode = attributes[:'fc_switching_mode']
  else
    self.fc_switching_mode = 'end-host'
  end

  if attributes.key?(:'firmware')
    self.firmware = attributes[:'firmware']
  end

  if attributes.key?(:'inband_ip_address')
    self.inband_ip_address = attributes[:'inband_ip_address']
  end

  if attributes.key?(:'inband_ip_gateway')
    self.inband_ip_gateway = attributes[:'inband_ip_gateway']
  end

  if attributes.key?(:'inband_ip_mask')
    self.inband_ip_mask = attributes[:'inband_ip_mask']
  end

  if attributes.key?(:'inband_vlan')
    self.inband_vlan = attributes[:'inband_vlan']
  end

  if attributes.key?(:'ipv4_address')
    self.ipv4_address = attributes[:'ipv4_address']
  end

  if attributes.key?(:'management_mode')
    self.management_mode = attributes[:'management_mode']
  else
    self.management_mode = 'IntersightStandalone'
  end

  if attributes.key?(:'model')
    self.model = attributes[:'model']
  end

  if attributes.key?(:'name')
    self.name = attributes[:'name']
  end

  if attributes.key?(:'num_ether_ports')
    self.num_ether_ports = attributes[:'num_ether_ports']
  end

  if attributes.key?(:'num_ether_ports_configured')
    self.num_ether_ports_configured = attributes[:'num_ether_ports_configured']
  end

  if attributes.key?(:'num_ether_ports_link_up')
    self.num_ether_ports_link_up = attributes[:'num_ether_ports_link_up']
  end

  if attributes.key?(:'num_expansion_modules')
    self.num_expansion_modules = attributes[:'num_expansion_modules']
  end

  if attributes.key?(:'num_fc_ports')
    self.num_fc_ports = attributes[:'num_fc_ports']
  end

  if attributes.key?(:'num_fc_ports_configured')
    self.num_fc_ports_configured = attributes[:'num_fc_ports_configured']
  end

  if attributes.key?(:'num_fc_ports_link_up')
    self.num_fc_ports_link_up = attributes[:'num_fc_ports_link_up']
  end

  if attributes.key?(:'oper_evac_state')
    self.oper_evac_state = attributes[:'oper_evac_state']
  end

  if attributes.key?(:'operability')
    self.operability = attributes[:'operability']
  end

  if attributes.key?(:'out_of_band_ip_address')
    self.out_of_band_ip_address = attributes[:'out_of_band_ip_address']
  end

  if attributes.key?(:'out_of_band_ip_gateway')
    self.out_of_band_ip_gateway = attributes[:'out_of_band_ip_gateway']
  end

  if attributes.key?(:'out_of_band_ip_mask')
    self.out_of_band_ip_mask = attributes[:'out_of_band_ip_mask']
  end

  if attributes.key?(:'out_of_band_ipv4_address')
    self.out_of_band_ipv4_address = attributes[:'out_of_band_ipv4_address']
  end

  if attributes.key?(:'out_of_band_ipv4_gateway')
    self.out_of_band_ipv4_gateway = attributes[:'out_of_band_ipv4_gateway']
  end

  if attributes.key?(:'out_of_band_ipv4_mask')
    self.out_of_band_ipv4_mask = attributes[:'out_of_band_ipv4_mask']
  end

  if attributes.key?(:'out_of_band_ipv6_address')
    self.out_of_band_ipv6_address = attributes[:'out_of_band_ipv6_address']
  end

  if attributes.key?(:'out_of_band_ipv6_gateway')
    self.out_of_band_ipv6_gateway = attributes[:'out_of_band_ipv6_gateway']
  end

  if attributes.key?(:'out_of_band_ipv6_prefix')
    self.out_of_band_ipv6_prefix = attributes[:'out_of_band_ipv6_prefix']
  end

  if attributes.key?(:'out_of_band_mac')
    self.out_of_band_mac = attributes[:'out_of_band_mac']
  end

  if attributes.key?(:'presence')
    self.presence = attributes[:'presence']
  end

  if attributes.key?(:'revision')
    self.revision = attributes[:'revision']
  end

  if attributes.key?(:'rn')
    self.rn = attributes[:'rn']
  end

  if attributes.key?(:'serial')
    self.serial = attributes[:'serial']
  end

  if attributes.key?(:'source_object_type')
    self.source_object_type = attributes[:'source_object_type']
  end

  if attributes.key?(:'switch_id')
    self.switch_id = attributes[:'switch_id']
  end

  if attributes.key?(:'thermal')
    self.thermal = attributes[:'thermal']
  else
    self.thermal = 'unknown'
  end

  if attributes.key?(:'total_memory')
    self.total_memory = attributes[:'total_memory']
  end

  if attributes.key?(:'vendor')
    self.vendor = attributes[:'vendor']
  end

  if attributes.key?(:'version')
    self.version = attributes[:'version']
  end

  if attributes.key?(:'registered_device')
    self.registered_device = attributes[:'registered_device']
  end
end

Instance Attribute Details

#admin_evac_stateObject

Administratively configured state of Fabric Evacuation feature, for this switch.



26
27
28
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 26

def admin_evac_state
  @admin_evac_state
end

#admin_inband_interface_stateObject

The administrative state of the network Element inband management interface.



29
30
31
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 29

def admin_inband_interface_state
  @admin_inband_interface_state
end

#alarm_summaryObject

Returns the value of attribute alarm_summary.



31
32
33
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 31

def alarm_summary
  @alarm_summary
end

#available_memoryObject

Available memory (un-used) on this switch platform.



34
35
36
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 34

def available_memory
  @available_memory
end

#class_idObject

The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data.



20
21
22
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 20

def class_id
  @class_id
end

#device_mo_idObject

The database identifier of the registered device of an object.



37
38
39
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 37

def device_mo_id
  @device_mo_id
end

#dnObject

The Distinguished Name unambiguously identifies an object in the system.



40
41
42
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 40

def dn
  @dn
end

#ethernet_modeObject

The user configured Ethernet operational mode for this switch (End-Host or Switching).



43
44
45
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 43

def ethernet_mode
  @ethernet_mode
end

#ethernet_switching_modeObject

The user configured Ethernet operational mode for this switch (End-Host or Switching). * end-host - In end-host mode, the fabric interconnects appear to the upstream devices as end hosts with multiple links.In this mode, the switch does not run Spanning Tree Protocol and avoids loops by following a set of rules for traffic forwarding.In case of ethernet switching mode - Ethernet end-host mode is also known as Ethernet host virtualizer. * switch - In switch mode, the switch runs Spanning Tree Protocol to avoid loops, and broadcast and multicast packets are handled in the traditional way.This is the traditional switch mode.



46
47
48
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 46

def ethernet_switching_mode
  @ethernet_switching_mode
end

#fault_summaryObject

The fault summary of the network Element out-of-band management interface.



49
50
51
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 49

def fault_summary
  @fault_summary
end

#fc_modeObject

The user configured FC operational mode for this switch (End-Host or Switching).



52
53
54
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 52

def fc_mode
  @fc_mode
end

#fc_switching_modeObject

The user configured FC operational mode for this switch (End-Host or Switching). * end-host - In end-host mode, the fabric interconnects appear to the upstream devices as end hosts with multiple links.In this mode, the switch does not run Spanning Tree Protocol and avoids loops by following a set of rules for traffic forwarding.In case of ethernet switching mode - Ethernet end-host mode is also known as Ethernet host virtualizer. * switch - In switch mode, the switch runs Spanning Tree Protocol to avoid loops, and broadcast and multicast packets are handled in the traditional way.This is the traditional switch mode.



55
56
57
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 55

def fc_switching_mode
  @fc_switching_mode
end

#firmwareObject

Running firmware information.



58
59
60
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 58

def firmware
  @firmware
end

#inband_ip_addressObject

The IP address of the network Element inband management interface.



61
62
63
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 61

def inband_ip_address
  @inband_ip_address
end

#inband_ip_gatewayObject

The default gateway of the network Element inband management interface.



64
65
66
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 64

def inband_ip_gateway
  @inband_ip_gateway
end

#inband_ip_maskObject

The network mask of the network Element inband management interface.



67
68
69
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 67

def inband_ip_mask
  @inband_ip_mask
end

#inband_vlanObject

The VLAN ID of the network Element inband management interface.



70
71
72
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 70

def inband_vlan
  @inband_vlan
end

#ipv4_addressObject

IP version 4 address is saved in this property.



73
74
75
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 73

def ipv4_address
  @ipv4_address
end

#management_modeObject

The management mode of the fabric interconnect. * IntersightStandalone - Intersight Standalone mode of operation. * UCSM - Unified Computing System Manager mode of operation. * Intersight - Intersight managed mode of operation.



76
77
78
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 76

def management_mode
  @management_mode
end

#modelObject

This field identifies the model of the given component.



79
80
81
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 79

def model
  @model
end

#nameObject

Name of the ElementSummary object is saved in this property.



82
83
84
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 82

def name
  @name
end

#num_ether_portsObject

Total number of Ethernet ports.



85
86
87
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 85

def num_ether_ports
  @num_ether_ports
end

#num_ether_ports_configuredObject

Total number of configured Ethernet ports.



88
89
90
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 88

def num_ether_ports_configured
  @num_ether_ports_configured
end

Total number of Ethernet ports which are UP.



91
92
93
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 91

def num_ether_ports_link_up
  @num_ether_ports_link_up
end

#num_expansion_modulesObject

Total number of expansion modules.



94
95
96
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 94

def num_expansion_modules
  @num_expansion_modules
end

#num_fc_portsObject

Total number of FC ports.



97
98
99
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 97

def num_fc_ports
  @num_fc_ports
end

#num_fc_ports_configuredObject

Total number of configured FC ports.



100
101
102
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 100

def num_fc_ports_configured
  @num_fc_ports_configured
end

Total number of FC ports which are UP.



103
104
105
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 103

def num_fc_ports_link_up
  @num_fc_ports_link_up
end

#object_typeObject

The fully-qualified name of the instantiated, concrete type. The value should be the same as the ‘ClassId’ property.



23
24
25
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 23

def object_type
  @object_type
end

#oper_evac_stateObject

Operational state of the Fabric Evacuation feature, for this switch.



106
107
108
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 106

def oper_evac_state
  @oper_evac_state
end

#operabilityObject

The switch’s current overall operational/health state.



109
110
111
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 109

def operability
  @operability
end

#out_of_band_ip_addressObject

The IP address of the network Element out-of-band management interface.



112
113
114
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 112

def out_of_band_ip_address
  @out_of_band_ip_address
end

#out_of_band_ip_gatewayObject

The default gateway of the network Element out-of-band management interface.



115
116
117
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 115

def out_of_band_ip_gateway
  @out_of_band_ip_gateway
end

#out_of_band_ip_maskObject

The network mask of the network Element out-of-band management interface.



118
119
120
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 118

def out_of_band_ip_mask
  @out_of_band_ip_mask
end

#out_of_band_ipv4_addressObject

The IPv4 address of the network Element out-of-band management interface.



121
122
123
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 121

def out_of_band_ipv4_address
  @out_of_band_ipv4_address
end

#out_of_band_ipv4_gatewayObject

The default IPv4 gateway of the network Element out-of-band management interface.



124
125
126
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 124

def out_of_band_ipv4_gateway
  @out_of_band_ipv4_gateway
end

#out_of_band_ipv4_maskObject

The network mask of the network Element out-of-band management interface.



127
128
129
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 127

def out_of_band_ipv4_mask
  @out_of_band_ipv4_mask
end

#out_of_band_ipv6_addressObject

The IPv6 address of the network Element out-of-band management interface.



130
131
132
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 130

def out_of_band_ipv6_address
  @out_of_band_ipv6_address
end

#out_of_band_ipv6_gatewayObject

The default IPv6 gateway of the network Element out-of-band management interface.



133
134
135
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 133

def out_of_band_ipv6_gateway
  @out_of_band_ipv6_gateway
end

#out_of_band_ipv6_prefixObject

The network mask of the network Element out-of-band management interface.



136
137
138
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 136

def out_of_band_ipv6_prefix
  @out_of_band_ipv6_prefix
end

#out_of_band_macObject

The MAC address of the network Element out-of-band management interface.



139
140
141
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 139

def out_of_band_mac
  @out_of_band_mac
end

#presenceObject

This field identifies the presence (equipped) or absence of the given component.



142
143
144
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 142

def presence
  @presence
end

#registered_deviceObject

Returns the value of attribute registered_device.



171
172
173
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 171

def registered_device
  @registered_device
end

#revisionObject

This field identifies the revision of the given component.



145
146
147
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 145

def revision
  @revision
end

#rnObject

The Relative Name uniquely identifies an object within a given context.



148
149
150
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 148

def rn
  @rn
end

#serialObject

This field identifies the serial of the given component.



151
152
153
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 151

def serial
  @serial
end

#source_object_typeObject

The source object type of this view MO.



154
155
156
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 154

def source_object_type
  @source_object_type
end

#switch_idObject

The Switch Id of the network Element.



157
158
159
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 157

def switch_id
  @switch_id
end

#thermalObject

The Thermal status of the fabric interconnect. * unknown - The default state of the sensor (in case no data is received). * ok - State of the sensor indicating the sensor’s temperature range is okay. * upper-non-recoverable - State of the sensor indicating that the temperature is extremely high above normal range. * upper-critical - State of the sensor indicating that the temperature is above normal range. * upper-non-critical - State of the sensor indicating that the temperature is a little above the normal range. * lower-non-critical - State of the sensor indicating that the temperature is a little below the normal range. * lower-critical - State of the sensor indicating that the temperature is below normal range. * lower-non-recoverable - State of the sensor indicating that the temperature is extremely below normal range.



160
161
162
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 160

def thermal
  @thermal
end

#total_memoryObject

Total available memory on this switch platform.



163
164
165
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 163

def total_memory
  @total_memory
end

#vendorObject

This field identifies the vendor of the given component.



166
167
168
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 166

def vendor
  @vendor
end

#versionObject

Version holds the firmware version related information.



169
170
171
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 169

def version
  @version
end

Class Method Details

.acceptable_attribute_mapObject

Returns the key-value map of all the JSON attributes this model knows about



259
260
261
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 259

def self.acceptable_attribute_map
  attribute_map
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



254
255
256
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 254

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
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
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 196

def self.attribute_map
  {
    :'class_id' => :'ClassId',
    :'object_type' => :'ObjectType',
    :'admin_evac_state' => :'AdminEvacState',
    :'admin_inband_interface_state' => :'AdminInbandInterfaceState',
    :'alarm_summary' => :'AlarmSummary',
    :'available_memory' => :'AvailableMemory',
    :'device_mo_id' => :'DeviceMoId',
    :'dn' => :'Dn',
    :'ethernet_mode' => :'EthernetMode',
    :'ethernet_switching_mode' => :'EthernetSwitchingMode',
    :'fault_summary' => :'FaultSummary',
    :'fc_mode' => :'FcMode',
    :'fc_switching_mode' => :'FcSwitchingMode',
    :'firmware' => :'Firmware',
    :'inband_ip_address' => :'InbandIpAddress',
    :'inband_ip_gateway' => :'InbandIpGateway',
    :'inband_ip_mask' => :'InbandIpMask',
    :'inband_vlan' => :'InbandVlan',
    :'ipv4_address' => :'Ipv4Address',
    :'management_mode' => :'ManagementMode',
    :'model' => :'Model',
    :'name' => :'Name',
    :'num_ether_ports' => :'NumEtherPorts',
    :'num_ether_ports_configured' => :'NumEtherPortsConfigured',
    :'num_ether_ports_link_up' => :'NumEtherPortsLinkUp',
    :'num_expansion_modules' => :'NumExpansionModules',
    :'num_fc_ports' => :'NumFcPorts',
    :'num_fc_ports_configured' => :'NumFcPortsConfigured',
    :'num_fc_ports_link_up' => :'NumFcPortsLinkUp',
    :'oper_evac_state' => :'OperEvacState',
    :'operability' => :'Operability',
    :'out_of_band_ip_address' => :'OutOfBandIpAddress',
    :'out_of_band_ip_gateway' => :'OutOfBandIpGateway',
    :'out_of_band_ip_mask' => :'OutOfBandIpMask',
    :'out_of_band_ipv4_address' => :'OutOfBandIpv4Address',
    :'out_of_band_ipv4_gateway' => :'OutOfBandIpv4Gateway',
    :'out_of_band_ipv4_mask' => :'OutOfBandIpv4Mask',
    :'out_of_band_ipv6_address' => :'OutOfBandIpv6Address',
    :'out_of_band_ipv6_gateway' => :'OutOfBandIpv6Gateway',
    :'out_of_band_ipv6_prefix' => :'OutOfBandIpv6Prefix',
    :'out_of_band_mac' => :'OutOfBandMac',
    :'presence' => :'Presence',
    :'revision' => :'Revision',
    :'rn' => :'Rn',
    :'serial' => :'Serial',
    :'source_object_type' => :'SourceObjectType',
    :'switch_id' => :'SwitchId',
    :'thermal' => :'Thermal',
    :'total_memory' => :'TotalMemory',
    :'vendor' => :'Vendor',
    :'version' => :'Version',
    :'registered_device' => :'RegisteredDevice'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



733
734
735
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 733

def self.build_from_hash(attributes)
  new.build_from_hash(attributes)
end

.openapi_nullableObject

List of attributes with nullable: true



322
323
324
325
326
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 322

def self.openapi_nullable
  Set.new([
    :'alarm_summary',
  ])
end

.openapi_typesObject

Attribute type mapping.



264
265
266
267
268
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
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 264

def self.openapi_types
  {
    :'class_id' => :'String',
    :'object_type' => :'String',
    :'admin_evac_state' => :'String',
    :'admin_inband_interface_state' => :'String',
    :'alarm_summary' => :'ComputeAlarmSummary',
    :'available_memory' => :'String',
    :'device_mo_id' => :'String',
    :'dn' => :'String',
    :'ethernet_mode' => :'String',
    :'ethernet_switching_mode' => :'String',
    :'fault_summary' => :'Integer',
    :'fc_mode' => :'String',
    :'fc_switching_mode' => :'String',
    :'firmware' => :'String',
    :'inband_ip_address' => :'String',
    :'inband_ip_gateway' => :'String',
    :'inband_ip_mask' => :'String',
    :'inband_vlan' => :'Integer',
    :'ipv4_address' => :'String',
    :'management_mode' => :'String',
    :'model' => :'String',
    :'name' => :'String',
    :'num_ether_ports' => :'Integer',
    :'num_ether_ports_configured' => :'Integer',
    :'num_ether_ports_link_up' => :'Integer',
    :'num_expansion_modules' => :'Integer',
    :'num_fc_ports' => :'Integer',
    :'num_fc_ports_configured' => :'Integer',
    :'num_fc_ports_link_up' => :'Integer',
    :'oper_evac_state' => :'String',
    :'operability' => :'String',
    :'out_of_band_ip_address' => :'String',
    :'out_of_band_ip_gateway' => :'String',
    :'out_of_band_ip_mask' => :'String',
    :'out_of_band_ipv4_address' => :'String',
    :'out_of_band_ipv4_gateway' => :'String',
    :'out_of_band_ipv4_mask' => :'String',
    :'out_of_band_ipv6_address' => :'String',
    :'out_of_band_ipv6_gateway' => :'String',
    :'out_of_band_ipv6_prefix' => :'String',
    :'out_of_band_mac' => :'String',
    :'presence' => :'String',
    :'revision' => :'String',
    :'rn' => :'String',
    :'serial' => :'String',
    :'source_object_type' => :'String',
    :'switch_id' => :'String',
    :'thermal' => :'String',
    :'total_memory' => :'Integer',
    :'vendor' => :'String',
    :'version' => :'String',
    :'registered_device' => :'AssetDeviceRegistrationRelationship'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 661

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      class_id == o.class_id &&
      object_type == o.object_type &&
      admin_evac_state == o.admin_evac_state &&
      admin_inband_interface_state == o.admin_inband_interface_state &&
      alarm_summary == o.alarm_summary &&
      available_memory == o.available_memory &&
      device_mo_id == o.device_mo_id &&
      dn == o.dn &&
      ethernet_mode == o.ethernet_mode &&
      ethernet_switching_mode == o.ethernet_switching_mode &&
      fault_summary == o.fault_summary &&
      fc_mode == o.fc_mode &&
      fc_switching_mode == o.fc_switching_mode &&
      firmware == o.firmware &&
      inband_ip_address == o.inband_ip_address &&
      inband_ip_gateway == o.inband_ip_gateway &&
      inband_ip_mask == o.inband_ip_mask &&
      inband_vlan == o.inband_vlan &&
      ipv4_address == o.ipv4_address &&
      management_mode == o.management_mode &&
      model == o.model &&
      name == o.name &&
      num_ether_ports == o.num_ether_ports &&
      num_ether_ports_configured == o.num_ether_ports_configured &&
      num_ether_ports_link_up == o.num_ether_ports_link_up &&
      num_expansion_modules == o.num_expansion_modules &&
      num_fc_ports == o.num_fc_ports &&
      num_fc_ports_configured == o.num_fc_ports_configured &&
      num_fc_ports_link_up == o.num_fc_ports_link_up &&
      oper_evac_state == o.oper_evac_state &&
      operability == o.operability &&
      out_of_band_ip_address == o.out_of_band_ip_address &&
      out_of_band_ip_gateway == o.out_of_band_ip_gateway &&
      out_of_band_ip_mask == o.out_of_band_ip_mask &&
      out_of_band_ipv4_address == o.out_of_band_ipv4_address &&
      out_of_band_ipv4_gateway == o.out_of_band_ipv4_gateway &&
      out_of_band_ipv4_mask == o.out_of_band_ipv4_mask &&
      out_of_band_ipv6_address == o.out_of_band_ipv6_address &&
      out_of_band_ipv6_gateway == o.out_of_band_ipv6_gateway &&
      out_of_band_ipv6_prefix == o.out_of_band_ipv6_prefix &&
      out_of_band_mac == o.out_of_band_mac &&
      presence == o.presence &&
      revision == o.revision &&
      rn == o.rn &&
      serial == o.serial &&
      source_object_type == o.source_object_type &&
      switch_id == o.switch_id &&
      thermal == o.thermal &&
      total_memory == o.total_memory &&
      vendor == o.vendor &&
      version == o.version &&
      registered_device == o.registered_device
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 763

def _deserialize(type, value)
  case type.to_sym
  when :Time
    Time.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :Boolean
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    # models (e.g. Pet) or oneOf
    klass = IntersightClient.const_get(type)
    klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



834
835
836
837
838
839
840
841
842
843
844
845
846
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 834

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 740

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  NetworkElementSummaryAllOf.openapi_types.each_pair do |key, type|
    if attributes[NetworkElementSummaryAllOf.attribute_map[key]].nil? && NetworkElementSummaryAllOf.openapi_nullable.include?(key)
      self.send("#{key}=", nil)
    elsif type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[NetworkElementSummaryAllOf.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[NetworkElementSummaryAllOf.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[NetworkElementSummaryAllOf.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[NetworkElementSummaryAllOf.attribute_map[key]]))
    end
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


720
721
722
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 720

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



726
727
728
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 726

def hash
  [class_id, object_type, admin_evac_state, admin_inband_interface_state, alarm_summary, available_memory, device_mo_id, dn, ethernet_mode, ethernet_switching_mode, fault_summary, fc_mode, fc_switching_mode, firmware, inband_ip_address, inband_ip_gateway, inband_ip_mask, inband_vlan, ipv4_address, management_mode, model, name, num_ether_ports, num_ether_ports_configured, num_ether_ports_link_up, num_expansion_modules, num_fc_ports, num_fc_ports_configured, num_fc_ports_link_up, oper_evac_state, operability, out_of_band_ip_address, out_of_band_ip_gateway, out_of_band_ip_mask, out_of_band_ipv4_address, out_of_band_ipv4_gateway, out_of_band_ipv4_mask, out_of_band_ipv6_address, out_of_band_ipv6_gateway, out_of_band_ipv6_prefix, out_of_band_mac, presence, revision, rn, serial, source_object_type, switch_id, thermal, total_memory, vendor, version, registered_device].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



566
567
568
569
570
571
572
573
574
575
576
577
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 566

def list_invalid_properties
  invalid_properties = Array.new
  if @class_id.nil?
    invalid_properties.push('invalid value for "class_id", class_id cannot be nil.')
  end

  if @object_type.nil?
    invalid_properties.push('invalid value for "object_type", object_type cannot be nil.')
  end

  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



810
811
812
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 810

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



816
817
818
819
820
821
822
823
824
825
826
827
828
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 816

def to_hash
  hash = {}
  NetworkElementSummaryAllOf.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = NetworkElementSummaryAllOf.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



804
805
806
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 804

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
# File 'lib/intersight_client/models/network_element_summary_all_of.rb', line 581

def valid?
  return false if @class_id.nil?
  class_id_validator = EnumAttributeValidator.new('String', ["network.ElementSummary"])
  return false unless class_id_validator.valid?(@class_id)
  return false if @object_type.nil?
  object_type_validator = EnumAttributeValidator.new('String', ["network.ElementSummary"])
  return false unless object_type_validator.valid?(@object_type)
  ethernet_switching_mode_validator = EnumAttributeValidator.new('String', ["end-host", "switch"])
  return false unless ethernet_switching_mode_validator.valid?(@ethernet_switching_mode)
  fc_switching_mode_validator = EnumAttributeValidator.new('String', ["end-host", "switch"])
  return false unless fc_switching_mode_validator.valid?(@fc_switching_mode)
  management_mode_validator = EnumAttributeValidator.new('String', ["IntersightStandalone", "UCSM", "Intersight"])
  return false unless management_mode_validator.valid?(@management_mode)
  thermal_validator = EnumAttributeValidator.new('String', ["unknown", "ok", "upper-non-recoverable", "upper-critical", "upper-non-critical", "lower-non-critical", "lower-critical", "lower-non-recoverable"])
  return false unless thermal_validator.valid?(@thermal)
  true
end