Class: IntersightClient::CondHclStatusDetailAllOf

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

Overview

Definition of the list of properties defined in ‘cond.HclStatusDetail’, 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 = {}) ⇒ CondHclStatusDetailAllOf

Initializes the object

Parameters:

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

    Model attributes in the form of hash



159
160
161
162
163
164
165
166
167
168
169
170
171
172
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
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
252
253
254
255
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 159

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `IntersightClient::CondHclStatusDetailAllOf` 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 = 'cond.HclStatusDetail'
  end

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

  if attributes.key?(:'hardware_status')
    self.hardware_status = attributes[:'hardware_status']
  else
    self.hardware_status = 'Missing-Os-Driver-Info'
  end

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

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

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

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

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

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

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

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

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

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

  if attributes.key?(:'reason')
    self.reason = attributes[:'reason']
  else
    self.reason = 'Missing-Os-Driver-Info'
  end

  if attributes.key?(:'software_status')
    self.software_status = attributes[:'software_status']
  else
    self.software_status = 'Missing-Os-Driver-Info'
  end

  if attributes.key?(:'status')
    self.status = attributes[:'status']
  else
    self.status = 'Incomplete'
  end

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

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

Instance Attribute Details

#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/cond_hcl_status_detail_all_of.rb', line 20

def class_id
  @class_id
end

#componentObject

Returns the value of attribute component.



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

def component
  @component
end

#hardware_statusObject

The model is considered as part of the hardware profile for the component. This will provide the HCL validation status for the hardware profile. The reasons can be one of the following "Incompatible-Server-With-Component" - the server model and component combination is not listed in HCL "Incompatible-Firmware" - The server’s firmware is not listed for this component’s hardware profile "Incompatible-Component" - the component’s model is not listed in the HCL "Service-Unavailable" - HCL data service is unavailable at the moment (try again later). This could be due to HCL data updating "Not-Evaluated" - the hardware profile was not evaulated for the component because the server’s hw/sw status is not listed or server is exempted. "Compatible" - this component’s hardware profile is listed in the HCL. * Missing-Os-Driver-Info - The validation failed becaue the given server has no OS driver information available in the inventory. Either install ucstools vib or use power shell scripts to tag proper OS information. * Incompatible-Server-With-Component - The validation failed for this component because he server model and component model combination was not found in the HCL. * Incompatible-Processor - The validation failed because the given processor was not found for the given server PID. * Incompatible-Os-Info - The validation failed because the given OS vendor and version was not found in HCL for the server PID and processor combination. * Incompatible-Component-Model - The validation failed because the given Component model was not found in the HCL for the given server PID, processor, server Firmware and OS vendor and version. * Incompatible-Firmware - The validation failed because the given server firmware or adapter firmware was not found in the HCL for the given server PID, processor, OS vendor and version and component model. * Incompatible-Driver - The validation failed because the given driver version was not found in the HCL for the given Server PID, processor, OS vendor and version, server firmware and component firmware. * Incompatible-Firmware-Driver - The validation failed because the given component firmware and driver version was not found in the HCL for the given Server PID, processor, OS vendor and version and server firmware. * Service-Unavailable - The validation has failed because HCL data service is temporarily not available. The server will be re-evaluated once HCL data service is back online or finished importing new HCL data. * Service-Error - The validation has failed because the HCL data service has return a service error or unrecognized result. * Unrecognized-Protocol - The validation has failed for the HCL component because the HCL data service has return a validation reason that is unknown to this service. This reason is used as a default failure reason reason in case we cannot map the error reason received from the HCL data service unto one of the other enum values. * Not-Evaluated - The validation for the hardware or software HCL status was not yet evaluated because some previous validation had failed. For example if a server’s hardware profile fails to validate with HCL, then the server’s software status will not be evaluated. * Compatible - The validation has passed for this server PID, processor, OS vendor and version, component model, component firmware and driver version.



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

def hardware_status
  @hardware_status
end

#hcl_cimc_versionObject

The current CIMC version for the server normalized for querying HCL data.



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

def hcl_cimc_version
  @hcl_cimc_version
end

#hcl_driver_nameObject

The current driver name of the component we are validating normalized for querying HCL data.



32
33
34
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 32

def hcl_driver_name
  @hcl_driver_name
end

#hcl_driver_versionObject

The current driver version of the component we are validating normalized for querying HCL data.



35
36
37
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 35

def hcl_driver_version
  @hcl_driver_version
end

#hcl_firmware_versionObject

The current firmware version of the component model normalized for querying HCL data.



38
39
40
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 38

def hcl_firmware_version
  @hcl_firmware_version
end

#hcl_modelObject

The component model we are trying to validate normalized for querying HCL data.



41
42
43
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 41

def hcl_model
  @hcl_model
end

#hcl_statusObject

Returns the value of attribute hcl_status.



69
70
71
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 69

def hcl_status
  @hcl_status
end

#inv_cimc_versionObject

The current CIMC version for the server as received from inventory.



44
45
46
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 44

def inv_cimc_version
  @inv_cimc_version
end

#inv_driver_nameObject

The current driver name of the component we are validating as received from inventory.



47
48
49
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 47

def inv_driver_name
  @inv_driver_name
end

#inv_driver_versionObject

The current driver version of the component we are validating as received from inventory.



50
51
52
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 50

def inv_driver_version
  @inv_driver_version
end

#inv_firmware_versionObject

The current firmware version of the component model as received from inventory.



53
54
55
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 53

def inv_firmware_version
  @inv_firmware_version
end

#inv_modelObject

The component model we are trying to validate as received from inventory.



56
57
58
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 56

def inv_model
  @inv_model
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/cond_hcl_status_detail_all_of.rb', line 23

def object_type
  @object_type
end

#reasonObject

The reason for the status. The reason can be one of "Incompatible-Server-With-Component" - HCL validation has failed because the server model is not validated with this component "Incompatible-Processor" - HCL validation has failed because the processor is not validated with this server "Incompatible-Os-Info" - HCL validation has failed because the os vendor and version is not validated with this server "Incompatible-Component-Model" - HCL validation has failed because the component model is not validated "Incompatible-Firmware" - HCL validation has failed because the component or server firmware version is not validated "Incompatible-Driver" - HCL validation has failed because the driver version is not validated "Incompatible-Firmware-Driver" - HCL validation has failed because the firmware version and driver version is not validated "Missing-Os-Driver-Info" - HCL validation was not performed because we are missing os driver information form the inventory "Service-Unavailable" - HCL data service is unavailable at the moment (try again later). This could be due to HCL data updating "Service-Error" - HCL data service is available but an error occured when making the request or parsing the response "Unrecognized-Protocol" - This service does not recognize the reason code in the response from the HCL data service "Compatible" - this component’s inventory data has "Validated" status with the HCL. "Not-Evaluated" - The component is not evaluated against the HCL because the server is exempted. * Missing-Os-Driver-Info - The validation failed becaue the given server has no OS driver information available in the inventory. Either install ucstools vib or use power shell scripts to tag proper OS information. * Incompatible-Server-With-Component - The validation failed for this component because he server model and component model combination was not found in the HCL. * Incompatible-Processor - The validation failed because the given processor was not found for the given server PID. * Incompatible-Os-Info - The validation failed because the given OS vendor and version was not found in HCL for the server PID and processor combination. * Incompatible-Component-Model - The validation failed because the given Component model was not found in the HCL for the given server PID, processor, server Firmware and OS vendor and version. * Incompatible-Firmware - The validation failed because the given server firmware or adapter firmware was not found in the HCL for the given server PID, processor, OS vendor and version and component model. * Incompatible-Driver - The validation failed because the given driver version was not found in the HCL for the given Server PID, processor, OS vendor and version, server firmware and component firmware. * Incompatible-Firmware-Driver - The validation failed because the given component firmware and driver version was not found in the HCL for the given Server PID, processor, OS vendor and version and server firmware. * Service-Unavailable - The validation has failed because HCL data service is temporarily not available. The server will be re-evaluated once HCL data service is back online or finished importing new HCL data. * Service-Error - The validation has failed because the HCL data service has return a service error or unrecognized result. * Unrecognized-Protocol - The validation has failed for the HCL component because the HCL data service has return a validation reason that is unknown to this service. This reason is used as a default failure reason reason in case we cannot map the error reason received from the HCL data service unto one of the other enum values. * Not-Evaluated - The validation for the hardware or software HCL status was not yet evaluated because some previous validation had failed. For example if a server’s hardware profile fails to validate with HCL, then the server’s software status will not be evaluated. * Compatible - The validation has passed for this server PID, processor, OS vendor and version, component model, component firmware and driver version.



59
60
61
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 59

def reason
  @reason
end

#software_statusObject

The firmware, driver name and driver version are considered as part of the software profile for the component. This will provide the HCL validation status for the software profile. The reasons can be one of the following "Incompatible-Firmware" - the component’s firmware is not listed under the server’s hardware and software profile and the component’s hardware profile "Incompatible-Driver" - the component’s driver is not listed under the server’s hardware and software profile and the component’s hardware profile "Incompatible-Firmware-Driver" - the component’s firmware and driver are not listed under the server’s hardware and software profile and the component’s hardware profile "Service-Unavailable" - HCL data service is unavailable at the moment (try again later). This could be due to HCL data updating "Not-Evaluated" - the component’s hardware status was not evaluated because the server’s hardware or software profile is not listed or server is exempted. "Compatible" - this component’s hardware profile is listed in the HCL. * Missing-Os-Driver-Info - The validation failed becaue the given server has no OS driver information available in the inventory. Either install ucstools vib or use power shell scripts to tag proper OS information. * Incompatible-Server-With-Component - The validation failed for this component because he server model and component model combination was not found in the HCL. * Incompatible-Processor - The validation failed because the given processor was not found for the given server PID. * Incompatible-Os-Info - The validation failed because the given OS vendor and version was not found in HCL for the server PID and processor combination. * Incompatible-Component-Model - The validation failed because the given Component model was not found in the HCL for the given server PID, processor, server Firmware and OS vendor and version. * Incompatible-Firmware - The validation failed because the given server firmware or adapter firmware was not found in the HCL for the given server PID, processor, OS vendor and version and component model. * Incompatible-Driver - The validation failed because the given driver version was not found in the HCL for the given Server PID, processor, OS vendor and version, server firmware and component firmware. * Incompatible-Firmware-Driver - The validation failed because the given component firmware and driver version was not found in the HCL for the given Server PID, processor, OS vendor and version and server firmware. * Service-Unavailable - The validation has failed because HCL data service is temporarily not available. The server will be re-evaluated once HCL data service is back online or finished importing new HCL data. * Service-Error - The validation has failed because the HCL data service has return a service error or unrecognized result. * Unrecognized-Protocol - The validation has failed for the HCL component because the HCL data service has return a validation reason that is unknown to this service. This reason is used as a default failure reason reason in case we cannot map the error reason received from the HCL data service unto one of the other enum values. * Not-Evaluated - The validation for the hardware or software HCL status was not yet evaluated because some previous validation had failed. For example if a server’s hardware profile fails to validate with HCL, then the server’s software status will not be evaluated. * Compatible - The validation has passed for this server PID, processor, OS vendor and version, component model, component firmware and driver version.



62
63
64
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 62

def software_status
  @software_status
end

#statusObject

The status for the component model, firmware version, driver name, and driver version after validating against the HCL. The status can be one of the following "Unknown" - we do not have enough information to evaluate against the HCL data "Validated" - we have validated this component against the HCL and it has "Validated" status "Not-Validated" - we have validated this component against the HCL and it has "Not-Validated" status. "Not-Evaluated" - The component is not evaluated against the HCL because the server is exempted. * Incomplete - This means we do not have os information in Intersight for this server. Either install ucstools vib or use power shell scripts to tag proper OS information. * Not-Found - At HclStatus level, this means that one of the components has failed validation. At HclStatusDetail level, this means that his component’s hardware or software profile was not found in the HCL. * Not-Listed - At the HclStatus level, this means that some part of the HCL validation has failed. This could be that either the server’s hardware or software profile was not listed in the HCL or one of the components’ hardware or software profile was not found in the HCL. * Validated - At the HclStatus level, this means that all of the components have passed validation. At HclStatusDetail level, this means that the component’s hardware or software profile was found in the HCL. * Not-Evaluated - At the HclStatus level this means that this means that SW or Component status has not been evaluated as the previous evaluation step has not passed yet. At the HclStatusDetail level this means that either HW or SW status has not been evaluted because a previous evaluation step has not passed yet.



65
66
67
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 65

def status
  @status
end

Class Method Details

.acceptable_attribute_mapObject

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



123
124
125
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 123

def self.acceptable_attribute_map
  attribute_map
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



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

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

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



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

def self.attribute_map
  {
    :'class_id' => :'ClassId',
    :'object_type' => :'ObjectType',
    :'hardware_status' => :'HardwareStatus',
    :'hcl_cimc_version' => :'HclCimcVersion',
    :'hcl_driver_name' => :'HclDriverName',
    :'hcl_driver_version' => :'HclDriverVersion',
    :'hcl_firmware_version' => :'HclFirmwareVersion',
    :'hcl_model' => :'HclModel',
    :'inv_cimc_version' => :'InvCimcVersion',
    :'inv_driver_name' => :'InvDriverName',
    :'inv_driver_version' => :'InvDriverVersion',
    :'inv_firmware_version' => :'InvFirmwareVersion',
    :'inv_model' => :'InvModel',
    :'reason' => :'Reason',
    :'software_status' => :'SoftwareStatus',
    :'status' => :'Status',
    :'component' => :'Component',
    :'hcl_status' => :'HclStatus'
  }
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



392
393
394
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 392

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

.openapi_nullableObject

List of attributes with nullable: true



152
153
154
155
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 152

def self.openapi_nullable
  Set.new([
  ])
end

.openapi_typesObject

Attribute type mapping.



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 128

def self.openapi_types
  {
    :'class_id' => :'String',
    :'object_type' => :'String',
    :'hardware_status' => :'String',
    :'hcl_cimc_version' => :'String',
    :'hcl_driver_name' => :'String',
    :'hcl_driver_version' => :'String',
    :'hcl_firmware_version' => :'String',
    :'hcl_model' => :'String',
    :'inv_cimc_version' => :'String',
    :'inv_driver_name' => :'String',
    :'inv_driver_version' => :'String',
    :'inv_firmware_version' => :'String',
    :'inv_model' => :'String',
    :'reason' => :'String',
    :'software_status' => :'String',
    :'status' => :'String',
    :'component' => :'InventoryBaseRelationship',
    :'hcl_status' => :'CondHclStatusRelationship'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 354

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      class_id == o.class_id &&
      object_type == o.object_type &&
      hardware_status == o.hardware_status &&
      hcl_cimc_version == o.hcl_cimc_version &&
      hcl_driver_name == o.hcl_driver_name &&
      hcl_driver_version == o.hcl_driver_version &&
      hcl_firmware_version == o.hcl_firmware_version &&
      hcl_model == o.hcl_model &&
      inv_cimc_version == o.inv_cimc_version &&
      inv_driver_name == o.inv_driver_name &&
      inv_driver_version == o.inv_driver_version &&
      inv_firmware_version == o.inv_firmware_version &&
      inv_model == o.inv_model &&
      reason == o.reason &&
      software_status == o.software_status &&
      status == o.status &&
      component == o.component &&
      hcl_status == o.hcl_status
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



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
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 422

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



493
494
495
496
497
498
499
500
501
502
503
504
505
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 493

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



399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 399

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  CondHclStatusDetailAllOf.openapi_types.each_pair do |key, type|
    if attributes[CondHclStatusDetailAllOf.attribute_map[key]].nil? && CondHclStatusDetailAllOf.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[CondHclStatusDetailAllOf.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[CondHclStatusDetailAllOf.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[CondHclStatusDetailAllOf.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[CondHclStatusDetailAllOf.attribute_map[key]]))
    end
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


379
380
381
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 379

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



385
386
387
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 385

def hash
  [class_id, object_type, hardware_status, hcl_cimc_version, hcl_driver_name, hcl_driver_version, hcl_firmware_version, hcl_model, inv_cimc_version, inv_driver_name, inv_driver_version, inv_firmware_version, inv_model, reason, software_status, status, component, hcl_status].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



259
260
261
262
263
264
265
266
267
268
269
270
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 259

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



469
470
471
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 469

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



475
476
477
478
479
480
481
482
483
484
485
486
487
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 475

def to_hash
  hash = {}
  CondHclStatusDetailAllOf.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = CondHclStatusDetailAllOf.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



463
464
465
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 463

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



274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
# File 'lib/intersight_client/models/cond_hcl_status_detail_all_of.rb', line 274

def valid?
  return false if @class_id.nil?
  class_id_validator = EnumAttributeValidator.new('String', ["cond.HclStatusDetail"])
  return false unless class_id_validator.valid?(@class_id)
  return false if @object_type.nil?
  object_type_validator = EnumAttributeValidator.new('String', ["cond.HclStatusDetail"])
  return false unless object_type_validator.valid?(@object_type)
  hardware_status_validator = EnumAttributeValidator.new('String', ["Missing-Os-Driver-Info", "Incompatible-Server-With-Component", "Incompatible-Processor", "Incompatible-Os-Info", "Incompatible-Component-Model", "Incompatible-Firmware", "Incompatible-Driver", "Incompatible-Firmware-Driver", "Service-Unavailable", "Service-Error", "Unrecognized-Protocol", "Not-Evaluated", "Compatible"])
  return false unless hardware_status_validator.valid?(@hardware_status)
  reason_validator = EnumAttributeValidator.new('String', ["Missing-Os-Driver-Info", "Incompatible-Server-With-Component", "Incompatible-Processor", "Incompatible-Os-Info", "Incompatible-Component-Model", "Incompatible-Firmware", "Incompatible-Driver", "Incompatible-Firmware-Driver", "Service-Unavailable", "Service-Error", "Unrecognized-Protocol", "Not-Evaluated", "Compatible"])
  return false unless reason_validator.valid?(@reason)
  software_status_validator = EnumAttributeValidator.new('String', ["Missing-Os-Driver-Info", "Incompatible-Server-With-Component", "Incompatible-Processor", "Incompatible-Os-Info", "Incompatible-Component-Model", "Incompatible-Firmware", "Incompatible-Driver", "Incompatible-Firmware-Driver", "Service-Unavailable", "Service-Error", "Unrecognized-Protocol", "Not-Evaluated", "Compatible"])
  return false unless software_status_validator.valid?(@software_status)
  status_validator = EnumAttributeValidator.new('String', ["Incomplete", "Not-Found", "Not-Listed", "Validated", "Not-Evaluated"])
  return false unless status_validator.valid?(@status)
  true
end