Class: EmassClient::SwBaselineResponseGetDataInner

Inherits:
Object
  • Object
show all
Defined in:
lib/emass_client/models/sw_baseline_response_get_data_inner.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ SwBaselineResponseGetDataInner

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
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
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 276

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Instance Attribute Details

#approval_statusObject

Optional

Approval status of the software asset.



94
95
96
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 94

def approval_status
  @approval_status
end

#approved_waiverObject

Optional

Approved waiver. VA only



127
128
129
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 127

def approved_waiver
  @approved_waiver
end

#cost_per_licenseObject

Optional

Cost per license of the software asset. Number will be converted to display 2 decimal points.



73
74
75
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 73

def cost_per_license
  @cost_per_license
end

#critical_assetObject

Optional

Indicates whether the asset is a critical information system asset.



112
113
114
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 112

def critical_asset
  @critical_asset
end

#cryptographic_hashObject

Optional

Cryptographic hash of the software asset.



52
53
54
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 52

def cryptographic_hash
  @cryptographic_hash
end

#end_of_life_support_dateObject

Optional

End of life support date of the software asset.



106
107
108
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 106

def end_of_life_support_date
  @end_of_life_support_date
end

#extended_end_of_life_support_dateObject

Optional

If set, the Extended End of Life/Support Date cannot occur prior to the End of Life/Support Date.



109
110
111
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 109

def extended_end_of_life_support_date
  @extended_end_of_life_support_date
end

#fiscal_yearObject

Optional

Fiscal year (FY) of the software asset.



61
62
63
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 61

def fiscal_year
  @fiscal_year
end

#hosting_environmentObject

Optional

Hosting environment of the software asset.



46
47
48
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 46

def hosting_environment
  @hosting_environment
end

#in_service_dataObject

Optional

In-service data of the software asset.



55
56
57
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 55

def in_service_data
  @in_service_data
end

#it_budget_uiiObject

Optional

IT budget UII of the software asset.



58
59
60
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 58

def it_budget_uii
  @it_budget_uii
end

#license_expiration_dateObject

Optional

License expiration date for the software asset.



91
92
93
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 91

def license_expiration_date
  @license_expiration_date
end

#license_or_contractObject

Optional

License or contract number of the software asset.



67
68
69
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 67

def license_or_contract
  @license_or_contract
end

#license_pocObject

Optional

Point of contact (POC) for the software asset.



85
86
87
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 85

def license_poc
  @license_poc
end

#license_renewal_dateObject

Optional

License renewal date for the software asset.



88
89
90
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 88

def license_renewal_date
  @license_renewal_date
end

#license_termObject

Optional

License term of the software asset.



70
71
72
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 70

def license_term
  @license_term
end

#licenses_usedObject

Optional

Number of licenses used for the software asset.



82
83
84
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 82

def licenses_used
  @licenses_used
end

#locationObject

Optional

Location of the software asset.



115
116
117
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 115

def location
  @location
end

#maintenance_dateObject

Optional

Maintenance date of the software asset.



100
101
102
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 100

def maintenance_date
  @maintenance_date
end

#networkObject

Optional

Network of the software asset.



43
44
45
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 43

def network
  @network
end

#parent_systemObject

Optional

Parent system of the software asset.



37
38
39
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 37

def parent_system
  @parent_system
end

#pop_end_dateObject

Optional

Period of performance (POP) end date of the software asset.



64
65
66
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 64

def pop_end_date
  @pop_end_date
end

#purposeObject

Optional

Purpose of the software asset.



118
119
120
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 118

def purpose
  @purpose
end

#release_dateObject

Optional

Release date of the software asset.



97
98
99
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 97

def release_date
  @release_date
end

#retirement_dateObject

Optional

Retirement date of the software asset.



103
104
105
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 103

def retirement_date
  @retirement_date
end

#software_dependenciesObject

Optional

Dependencies of the software asset.



49
50
51
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 49

def software_dependencies
  @software_dependencies
end

#software_idObject

Read-Only

GUID identifying the specific software asset.



22
23
24
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 22

def software_id
  @software_id
end

#software_nameObject

Required

Name of the software asset.



28
29
30
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 28

def software_name
  @software_name
end

#software_typeObject

Optional

Type of the software asset.



34
35
36
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 34

def software_type
  @software_type
end

#software_vendorObject

Required

Vendor of the software asset.



25
26
27
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 25

def software_vendor
  @software_vendor
end

#subsystemObject

Optional

Subsystem of the software asset.



40
41
42
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 40

def subsystem
  @subsystem
end

#system_idObject

Required

Unique eMASS system identifier.



19
20
21
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 19

def system_id
  @system_id
end

#total_license_costObject

Optional

Total license cost of the software asset. Number will be converted to display 2 decimal points.



79
80
81
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 79

def total_license_cost
  @total_license_cost
end

#total_licensesObject

Optional

Total licenses of the software asset.



76
77
78
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 76

def total_licenses
  @total_licenses
end

#unapproved_software_from_trmObject

Optional

Unapproved software from TRM. VA only



124
125
126
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 124

def unapproved_software_from_trm
  @unapproved_software_from_trm
end

#unsupported_operating_systemObject

Optional

Unsupported operating system. VA only.



121
122
123
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 121

def unsupported_operating_system
  @unsupported_operating_system
end

#versionObject

Required

Version of the software asset.



31
32
33
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 31

def version
  @version
end

Class Method Details

._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



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
563
564
565
566
567
568
569
570
571
572
573
574
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 537

def self._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 = EmassClient.const_get(type)
    klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
  end
end

.acceptable_attribute_mapObject

Returns attribute mapping this model knows about



173
174
175
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 173

def self.acceptable_attribute_map
  attribute_map
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



178
179
180
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 178

def self.acceptable_attributes
  acceptable_attribute_map.values
end

.attribute_mapObject

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



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
162
163
164
165
166
167
168
169
170
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 130

def self.attribute_map
  {
    :'system_id' => :'systemId',
    :'software_id' => :'softwareId',
    :'software_vendor' => :'softwareVendor',
    :'software_name' => :'softwareName',
    :'version' => :'version',
    :'software_type' => :'softwareType',
    :'parent_system' => :'parentSystem',
    :'subsystem' => :'subsystem',
    :'network' => :'network',
    :'hosting_environment' => :'hostingEnvironment',
    :'software_dependencies' => :'softwareDependencies',
    :'cryptographic_hash' => :'cryptographicHash',
    :'in_service_data' => :'inServiceData',
    :'it_budget_uii' => :'itBudgetUii',
    :'fiscal_year' => :'fiscalYear',
    :'pop_end_date' => :'popEndDate',
    :'license_or_contract' => :'licenseOrContract',
    :'license_term' => :'licenseTerm',
    :'cost_per_license' => :'costPerLicense',
    :'total_licenses' => :'totalLicenses',
    :'total_license_cost' => :'totalLicenseCost',
    :'licenses_used' => :'licensesUsed',
    :'license_poc' => :'licensePoc',
    :'license_renewal_date' => :'licenseRenewalDate',
    :'license_expiration_date' => :'licenseExpirationDate',
    :'approval_status' => :'approvalStatus',
    :'release_date' => :'releaseDate',
    :'maintenance_date' => :'maintenanceDate',
    :'retirement_date' => :'retirementDate',
    :'end_of_life_support_date' => :'endOfLifeSupportDate',
    :'extended_end_of_life_support_date' => :'extendedEndOfLifeSupportDate',
    :'critical_asset' => :'criticalAsset',
    :'location' => :'location',
    :'purpose' => :'purpose',
    :'unsupported_operating_system' => :'unsupportedOperatingSystem',
    :'unapproved_software_from_trm' => :'unapprovedSoftwareFromTrm',
    :'approved_waiver' => :'approvedWaiver'
  }
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



513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 513

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

.openapi_all_ofObject

List of class defined in allOf (OpenAPI v3)



265
266
267
268
269
270
271
272
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 265

def self.openapi_all_of
  [
  :'SwBaselineIds',
  :'SwBaselineOptionalFields',
  :'SwBaselineReadOnlyFields',
  :'SwBaselineRequiredFields'
  ]
end

.openapi_nullableObject

List of attributes with nullable: true



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/emass_client/models/sw_baseline_response_get_data_inner.rb', line 226

def self.openapi_nullable
  Set.new([
    :'software_id',
    :'software_type',
    :'parent_system',
    :'subsystem',
    :'network',
    :'hosting_environment',
    :'software_dependencies',
    :'cryptographic_hash',
    :'in_service_data',
    :'it_budget_uii',
    :'fiscal_year',
    :'pop_end_date',
    :'license_or_contract',
    :'license_term',
    :'cost_per_license',
    :'total_licenses',
    :'total_license_cost',
    :'licenses_used',
    :'license_poc',
    :'license_renewal_date',
    :'license_expiration_date',
    :'approval_status',
    :'release_date',
    :'maintenance_date',
    :'retirement_date',
    :'end_of_life_support_date',
    :'extended_end_of_life_support_date',
    :'critical_asset',
    :'location',
    :'purpose',
    :'unsupported_operating_system',
    :'unapproved_software_from_trm',
    :'approved_waiver'
  ])
end

.openapi_typesObject

Attribute type mapping.



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
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 183

def self.openapi_types
  {
    :'system_id' => :'Integer',
    :'software_id' => :'String',
    :'software_vendor' => :'String',
    :'software_name' => :'String',
    :'version' => :'String',
    :'software_type' => :'String',
    :'parent_system' => :'String',
    :'subsystem' => :'String',
    :'network' => :'String',
    :'hosting_environment' => :'String',
    :'software_dependencies' => :'String',
    :'cryptographic_hash' => :'String',
    :'in_service_data' => :'String',
    :'it_budget_uii' => :'String',
    :'fiscal_year' => :'String',
    :'pop_end_date' => :'Integer',
    :'license_or_contract' => :'String',
    :'license_term' => :'String',
    :'cost_per_license' => :'Float',
    :'total_licenses' => :'Integer',
    :'total_license_cost' => :'Float',
    :'licenses_used' => :'Integer',
    :'license_poc' => :'String',
    :'license_renewal_date' => :'Integer',
    :'license_expiration_date' => :'Integer',
    :'approval_status' => :'String',
    :'release_date' => :'Integer',
    :'maintenance_date' => :'Integer',
    :'retirement_date' => :'Integer',
    :'end_of_life_support_date' => :'Integer',
    :'extended_end_of_life_support_date' => :'Integer',
    :'critical_asset' => :'Boolean',
    :'location' => :'String',
    :'purpose' => :'String',
    :'unsupported_operating_system' => :'Boolean',
    :'unapproved_software_from_trm' => :'Boolean',
    :'approved_waiver' => :'Boolean'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



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
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 456

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      system_id == o.system_id &&
      software_id == o.software_id &&
      software_vendor == o.software_vendor &&
      software_name == o.software_name &&
      version == o.version &&
      software_type == o.software_type &&
      parent_system == o.parent_system &&
      subsystem == o.subsystem &&
      network == o.network &&
      hosting_environment == o.hosting_environment &&
      software_dependencies == o.software_dependencies &&
      cryptographic_hash == o.cryptographic_hash &&
      in_service_data == o.in_service_data &&
      it_budget_uii == o.it_budget_uii &&
      fiscal_year == o.fiscal_year &&
      pop_end_date == o.pop_end_date &&
      license_or_contract == o.license_or_contract &&
      license_term == o.license_term &&
      cost_per_license == o.cost_per_license &&
      total_licenses == o.total_licenses &&
      total_license_cost == o.total_license_cost &&
      licenses_used == o.licenses_used &&
      license_poc == o.license_poc &&
      license_renewal_date == o.license_renewal_date &&
      license_expiration_date == o.license_expiration_date &&
      approval_status == o.approval_status &&
      release_date == o.release_date &&
      maintenance_date == o.maintenance_date &&
      retirement_date == o.retirement_date &&
      end_of_life_support_date == o.end_of_life_support_date &&
      extended_end_of_life_support_date == o.extended_end_of_life_support_date &&
      critical_asset == o.critical_asset &&
      location == o.location &&
      purpose == o.purpose &&
      unsupported_operating_system == o.unsupported_operating_system &&
      unapproved_software_from_trm == o.unapproved_software_from_trm &&
      approved_waiver == o.approved_waiver
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



608
609
610
611
612
613
614
615
616
617
618
619
620
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 608

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

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


500
501
502
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 500

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



506
507
508
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 506

def hash
  [system_id, software_id, software_vendor, software_name, version, software_type, parent_system, subsystem, network, hosting_environment, software_dependencies, cryptographic_hash, in_service_data, it_budget_uii, fiscal_year, pop_end_date, license_or_contract, license_term, cost_per_license, total_licenses, total_license_cost, licenses_used, license_poc, license_renewal_date, license_expiration_date, approval_status, release_date, maintenance_date, retirement_date, end_of_life_support_date, extended_end_of_life_support_date, critical_asset, location, purpose, unsupported_operating_system, unapproved_software_from_trm, approved_waiver].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



441
442
443
444
445
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 441

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  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



584
585
586
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 584

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



590
591
592
593
594
595
596
597
598
599
600
601
602
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 590

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



578
579
580
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 578

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



449
450
451
452
# File 'lib/emass_client/models/sw_baseline_response_get_data_inner.rb', line 449

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  true
end