Class: EmassClient::PoamResponseGetSystemsDataInner

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

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ PoamResponseGetSystemsDataInner

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 363

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::PoamResponseGetSystemsDataInner` 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::PoamResponseGetSystemsDataInner`. 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?(:'poam_id')
    self.poam_id = attributes[:'poam_id']
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  if attributes.key?(:'milestones')
    if (value = attributes[:'milestones']).is_a?(Array)
      self.milestones = value
    end
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Instance Attribute Details

#artifactsObject

Read-Only

Lists the filenames of any artifact files attached to the POA&M Item. Multiple values are separated by “; ”.



171
172
173
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 171

def artifacts
  @artifacts
end

#assessment_procedureObject

Optional

The Security Control Assessment Procedure being associated with the POA&M Item.



108
109
110
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 108

def assessment_procedure
  @assessment_procedure
end

#cciObject

Read-Only

CCI associated with POA&M Item.



156
157
158
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 156

def cci
  @cci
end

#commentsObject

Conditional

Field is required for completed and risk accepted POA&M items. 2000 Characters



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

def comments
  @comments
end

#completion_dateObject

Conditional

Field is required for completed POA&M items. Unix time format.



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

def completion_date
  @completion_date
end

#condition_idObject

Read-Only

Unique identifier of the authorization term/condition linked to the POA&M Item.



150
151
152
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 150

def condition_id
  @condition_id
end

#control_acronymObject

Optional

Control acronym associated with the POA&M Item. NIST SP 800-53 Revision 4 defined.



105
106
107
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 105

def control_acronym
  @control_acronym
end

#created_dateObject

Read-Only

Timestamp representing when the POA&M Item was entered into the database.



162
163
164
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 162

def created_date
  @created_date
end

#devices_affectedObject

Optional

List any affected devices by hostname. If all devices in the information system are affected, state ‘system’ or ‘all’. Navy only



147
148
149
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 147

def devices_affected
  @devices_affected
end

#display_poam_idObject

Required

Globally unique identifier for individual POA&M Items, seen on the front-end as ID.



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

def display_poam_id
  @display_poam_id
end

#extension_dateObject

Read-Only

Value returned for a POA&M Item with review status "Approved" and has a milestone with a scheduled completion date that extends beyond the POA&M Item’s scheduled completion date.



165
166
167
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 165

def extension_date
  @extension_date
end

#external_uidObject

Optional

Unique identifier external to the eMASS application for use with associating POA&Ms. 100 Characters.



102
103
104
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 102

def external_uid
  @external_uid
end

#identified_in_cfo_audit_or_other_reviewObject

Required

If not specified, this field will be set to false because it does not accept a null value. VA only



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

def identified_in_cfo_audit_or_other_review
  @identified_in_cfo_audit_or_other_review
end

#impactObject

Optional

Values include the following options (Very Low, Low, Moderate,High,Very High)



123
124
125
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 123

def impact
  @impact
end

#impact_descriptionObject

Optional

Include description of Security Control’s impact.



126
127
128
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 126

def impact_description
  @impact_description
end

#is_inheritedObject

Read-only

Indicates whether a test result is inherited.



153
154
155
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 153

def is_inherited
  @is_inherited
end

#likelihoodObject

Optional

Values include the following options (Very Low, Low, Moderate,High,Very High)



120
121
122
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 120

def likelihood
  @likelihood
end

#milestonesObject

Returns the value of attribute milestones.



99
100
101
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 99

def milestones
  @milestones
end

#mitigationsObject

Optional

Include mitigation explanation. 2000 Characters.



135
136
137
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 135

def mitigations
  @mitigations
end

#non_personnel_resources_cost_codeObject

Conditional

Required if Non-Personnel Resources: Funded Amount is populated. Only accepts values present in the field’s lookup table (modifiable by eMASS System Admins). VA only.



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

def non_personnel_resources_cost_code
  @non_personnel_resources_cost_code
end

#non_personnel_resources_funded_amountObject

Conditional

At least one of the following is required and must be completed for each POA&M Item: Personnel Resources-> Funded Base Hours Personnel Resources-> Unfunded Base Hours Non-Personnel Resources-> Funded Amount Non-Personnel Resources-> Unfunded Amount Displays numbers to the second decimal point (e.g., 100.00). VA only.



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

def non_personnel_resources_funded_amount
  @non_personnel_resources_funded_amount
end

#non_personnel_resources_nonfunding_obstacleObject

Conditional

Required if Non-Personnel Resources: Unfunded Amount is populated. Only accepts values present in the field’s lookup table (modifiable by eMASS System Admins). VA only.



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

def non_personnel_resources_nonfunding_obstacle
  @non_personnel_resources_nonfunding_obstacle
end

#non_personnel_resources_nonfunding_obstacle_other_reasonObject

Conditional

Required if the value "Other" is populated for the field Non-Personnel Resources: Non-Funding Obstacle. VA only.



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

def non_personnel_resources_nonfunding_obstacle_other_reason
  @non_personnel_resources_nonfunding_obstacle_other_reason
end

#non_personnel_resources_unfunded_amountObject

Conditional

At least one of the following is required and must be completed for each POA&M Item: Personnel Resources-> Funded Base Hours Personnel Resources-> Unfunded Base Hours Non-Personnel Resources-> Funded Amount Non-Personnel Resources-> Unfunded Amount Displays numbers to the second decimal point (e.g., 100.00). VA only.



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

def non_personnel_resources_unfunded_amount
  @non_personnel_resources_unfunded_amount
end

#pending_extension_dateObject

Read-Only

Value returned for a POA&M Item with a review status of "Approved" and an unapproved milestone with a scheduled completion date that extends beyond the POA&M Item’s scheduled completion date.



168
169
170
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 168

def pending_extension_date
  @pending_extension_date
end

#personnel_resources_cost_codeObject

Conditional

Required if Personnel Resources: Funded Base Hours is populated. Only accepts values present in the field’s lookup table (modifiable by eMASS System Admins). VA only.



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

def personnel_resources_cost_code
  @personnel_resources_cost_code
end

#personnel_resources_funded_base_hoursObject

Conditional

At least one of the following is required and must be completed for each POA&M Item: Personnel Resources-> Funded Base Hours Personnel Resources-> Unfunded Base Hours Non-Personnel Resources-> Funded Amount Non-Personnel Resources-> Unfunded Amount Displays numbers to the second decimal point (e.g., 100.00). VA only.



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

def personnel_resources_funded_base_hours
  @personnel_resources_funded_base_hours
end

#personnel_resources_nonfunding_obstacleObject

Conditional

Required if Personnel Resources: Unfunded Base Hours is populated. Only accepts values present in the field’s lookup table (modifiable by eMASS System Admins). VA only.



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

def personnel_resources_nonfunding_obstacle
  @personnel_resources_nonfunding_obstacle
end

#personnel_resources_nonfunding_obstacle_other_reasonObject

Conditional

Required if the value "Other" is populated for the field Personnel Resources: Non-Funding Obstacle. VA only.



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

def personnel_resources_nonfunding_obstacle_other_reason
  @personnel_resources_nonfunding_obstacle_other_reason
end

#personnel_resources_unfunded_base_hoursObject

Conditional

At least one of the following is required and must be completed for each POA&M Item: Personnel Resources-> Funded Base Hours Personnel Resources-> Unfunded Base Hours Non-Personnel Resources-> Funded Amount Non-Personnel Resources-> Unfunded Amount Displays numbers to the second decimal point (e.g., 100.00). VA only.



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

def personnel_resources_unfunded_base_hours
  @personnel_resources_unfunded_base_hours
end

#poam_idObject

Required

Unique item identifier



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

def poam_id
  @poam_id
end

#poc_emailObject

Conditional

Email address of POC. 100 Characters.



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

def poc_email
  @poc_email
end

#poc_first_nameObject

Conditional

First name of POC. 100 Characters.



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

def poc_first_name
  @poc_first_name
end

#poc_last_nameObject

Conditional

Last name of POC. 100 Characters.



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

def poc_last_name
  @poc_last_name
end

#poc_organizationObject

Required

Organization/Office represented. 100 Characters.



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

def poc_organization
  @poc_organization
end

#poc_phone_numberObject

Conditional

Phone number of POC (area code) ***-**** format. 100 Characters.



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

def poc_phone_number
  @poc_phone_number
end

#predisposing_conditionsObject

Optional

A predisposing condition is a condition existing within an organization, a mission or business process, enterprise architecture, information system/PIT, or environment of operation, which affects (i.e., increases or decreases) the likelihood that threat events, once initiated, result in adverse impacts. Navy only.



141
142
143
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 141

def predisposing_conditions
  @predisposing_conditions
end

#raw_severityObject

Optional

Scan vulnerability ratting Values include the following options: (Very Low, Low, Moderate,High,Very High)



114
115
116
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 114

def raw_severity
  @raw_severity
end

#recommendationsObject

Optional

Include recommendations. Character Limit = 2,000.



132
133
134
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 132

def recommendations
  @recommendations
end

#relevance_of_threatObject

Optional

Values include the following options (Very Low, Low, Moderate,High,Very High)



117
118
119
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 117

def relevance_of_threat
  @relevance_of_threat
end

#residual_risk_levelObject

Optional

Values include the following options (Very Low, Low, Moderate,High,Very High)



129
130
131
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 129

def residual_risk_level
  @residual_risk_level
end

#resourcesObject

Required

List of resources used. 250 Characters.



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

def resources
  @resources
end

#resulting_residual_risk_level_after_proposed_mitigationsObject

Optional

Indicate the risk level expected after any proposed mitigations are implemented. Proposed mitigations should be appropriately documented as POA&M milestones. Navy only.



138
139
140
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 138

def resulting_residual_risk_level_after_proposed_mitigations
  @resulting_residual_risk_level_after_proposed_mitigations
end

#review_statusObject

Read-Only

Values include the following options: (Not Approved,Under Review,Approved)



159
160
161
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 159

def review_status
  @review_status
end

#scheduled_completion_dateObject

Conditional

Required for ongoing and completed POA&M items. Unix time format.



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

def scheduled_completion_date
  @scheduled_completion_date
end

#security_checksObject

Optional

Security Checks that are associated with the POA&M.



111
112
113
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 111

def security_checks
  @security_checks
end

#severityObject

Conditional

Required for approved items. Values include the following options: (Very Low, Low, Moderate,High,Very High)



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

def severity
  @severity
end

#source_identifying_vulnerabilityObject

Required

Include Source Identifying Vulnerability text. 2000 Characters.



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

def source_identifying_vulnerability
  @source_identifying_vulnerability
end

#statusObject

Required

The POA&M status



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

def status
  @status
end

#system_idObject

Required

Unique eMASS system identifier.



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

def system_id
  @system_id
end

#threat_descriptionObject

Optional

Describe the identified threat(s) and relevance to the information system. Navy only.



144
145
146
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 144

def threat_description
  @threat_description
end

#vulnerability_descriptionObject

Required

Provide a description of the POA&M Item. 2000 Characters.



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

def vulnerability_description
  @vulnerability_description
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



737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 737

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



254
255
256
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 254

def self.acceptable_attribute_map
  attribute_map
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



259
260
261
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 259

def self.acceptable_attributes
  acceptable_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/emass_client/models/poam_response_get_systems_data_inner.rb', line 196

def self.attribute_map
  {
    :'system_id' => :'systemId',
    :'poam_id' => :'poamId',
    :'display_poam_id' => :'displayPoamId',
    :'status' => :'status',
    :'vulnerability_description' => :'vulnerabilityDescription',
    :'source_identifying_vulnerability' => :'sourceIdentifyingVulnerability',
    :'poc_organization' => :'pocOrganization',
    :'resources' => :'resources',
    :'identified_in_cfo_audit_or_other_review' => :'identifiedInCFOAuditOrOtherReview',
    :'poc_first_name' => :'pocFirstName',
    :'poc_last_name' => :'pocLastName',
    :'poc_email' => :'pocEmail',
    :'poc_phone_number' => :'pocPhoneNumber',
    :'severity' => :'severity',
    :'scheduled_completion_date' => :'scheduledCompletionDate',
    :'completion_date' => :'completionDate',
    :'comments' => :'comments',
    :'personnel_resources_funded_base_hours' => :'personnelResourcesFundedBaseHours',
    :'personnel_resources_cost_code' => :'personnelResourcesCostCode',
    :'personnel_resources_unfunded_base_hours' => :'personnelResourcesUnfundedBaseHours',
    :'personnel_resources_nonfunding_obstacle' => :'personnelResourcesNonfundingObstacle',
    :'personnel_resources_nonfunding_obstacle_other_reason' => :'personnelResourcesNonfundingObstacleOtherReason',
    :'non_personnel_resources_funded_amount' => :'nonPersonnelResourcesFundedAmount',
    :'non_personnel_resources_cost_code' => :'nonPersonnelResourcesCostCode',
    :'non_personnel_resources_unfunded_amount' => :'nonPersonnelResourcesUnfundedAmount',
    :'non_personnel_resources_nonfunding_obstacle' => :'nonPersonnelResourcesNonfundingObstacle',
    :'non_personnel_resources_nonfunding_obstacle_other_reason' => :'nonPersonnelResourcesNonfundingObstacleOtherReason',
    :'milestones' => :'milestones',
    :'external_uid' => :'externalUid',
    :'control_acronym' => :'controlAcronym',
    :'assessment_procedure' => :'assessmentProcedure',
    :'security_checks' => :'securityChecks',
    :'raw_severity' => :'rawSeverity',
    :'relevance_of_threat' => :'relevanceOfThreat',
    :'likelihood' => :'likelihood',
    :'impact' => :'impact',
    :'impact_description' => :'impactDescription',
    :'residual_risk_level' => :'residualRiskLevel',
    :'recommendations' => :'recommendations',
    :'mitigations' => :'mitigations',
    :'resulting_residual_risk_level_after_proposed_mitigations' => :'resultingResidualRiskLevelAfterProposedMitigations',
    :'predisposing_conditions' => :'predisposingConditions',
    :'threat_description' => :'threatDescription',
    :'devices_affected' => :'devicesAffected',
    :'condition_id' => :'conditionId',
    :'is_inherited' => :'isInherited',
    :'cci' => :'cci',
    :'review_status' => :'reviewStatus',
    :'created_date' => :'createdDate',
    :'extension_date' => :'extensionDate',
    :'pending_extension_date' => :'pendingExtensionDate',
    :'artifacts' => :'artifacts'
  }
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



713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 713

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)



350
351
352
353
354
355
356
357
358
359
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 350

def self.openapi_all_of
  [
  :'MilestonesFields',
  :'PoamConditionalFields',
  :'PoamIds',
  :'PoamOptionalFields',
  :'PoamReadOnlyFields',
  :'PoamRequiredFields'
  ]
end

.openapi_nullableObject

List of attributes with nullable: true



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

def self.openapi_nullable
  Set.new([
    :'scheduled_completion_date',
    :'personnel_resources_funded_base_hours',
    :'personnel_resources_cost_code',
    :'personnel_resources_unfunded_base_hours',
    :'personnel_resources_nonfunding_obstacle',
    :'personnel_resources_nonfunding_obstacle_other_reason',
    :'non_personnel_resources_funded_amount',
    :'non_personnel_resources_cost_code',
    :'non_personnel_resources_unfunded_amount',
    :'non_personnel_resources_nonfunding_obstacle',
    :'non_personnel_resources_nonfunding_obstacle_other_reason',
    :'resulting_residual_risk_level_after_proposed_mitigations',
    :'predisposing_conditions',
    :'threat_description',
    :'devices_affected',
    :'condition_id',
    :'is_inherited',
    :'cci',
    :'review_status',
    :'extension_date',
    :'pending_extension_date',
    :'artifacts'
  ])
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/emass_client/models/poam_response_get_systems_data_inner.rb', line 264

def self.openapi_types
  {
    :'system_id' => :'Integer',
    :'poam_id' => :'Integer',
    :'display_poam_id' => :'Integer',
    :'status' => :'String',
    :'vulnerability_description' => :'String',
    :'source_identifying_vulnerability' => :'String',
    :'poc_organization' => :'String',
    :'resources' => :'String',
    :'identified_in_cfo_audit_or_other_review' => :'Boolean',
    :'poc_first_name' => :'String',
    :'poc_last_name' => :'String',
    :'poc_email' => :'String',
    :'poc_phone_number' => :'String',
    :'severity' => :'String',
    :'scheduled_completion_date' => :'Integer',
    :'completion_date' => :'Integer',
    :'comments' => :'String',
    :'personnel_resources_funded_base_hours' => :'Float',
    :'personnel_resources_cost_code' => :'String',
    :'personnel_resources_unfunded_base_hours' => :'Float',
    :'personnel_resources_nonfunding_obstacle' => :'String',
    :'personnel_resources_nonfunding_obstacle_other_reason' => :'String',
    :'non_personnel_resources_funded_amount' => :'Float',
    :'non_personnel_resources_cost_code' => :'String',
    :'non_personnel_resources_unfunded_amount' => :'Float',
    :'non_personnel_resources_nonfunding_obstacle' => :'String',
    :'non_personnel_resources_nonfunding_obstacle_other_reason' => :'String',
    :'milestones' => :'Array<MilestonesGet>',
    :'external_uid' => :'String',
    :'control_acronym' => :'String',
    :'assessment_procedure' => :'String',
    :'security_checks' => :'String',
    :'raw_severity' => :'String',
    :'relevance_of_threat' => :'String',
    :'likelihood' => :'String',
    :'impact' => :'String',
    :'impact_description' => :'String',
    :'residual_risk_level' => :'String',
    :'recommendations' => :'String',
    :'mitigations' => :'String',
    :'resulting_residual_risk_level_after_proposed_mitigations' => :'String',
    :'predisposing_conditions' => :'String',
    :'threat_description' => :'String',
    :'devices_affected' => :'String',
    :'condition_id' => :'String',
    :'is_inherited' => :'Boolean',
    :'cci' => :'String',
    :'review_status' => :'String',
    :'created_date' => :'Integer',
    :'extension_date' => :'Integer',
    :'pending_extension_date' => :'Integer',
    :'artifacts' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
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
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 641

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      system_id == o.system_id &&
      poam_id == o.poam_id &&
      display_poam_id == o.display_poam_id &&
      status == o.status &&
      vulnerability_description == o.vulnerability_description &&
      source_identifying_vulnerability == o.source_identifying_vulnerability &&
      poc_organization == o.poc_organization &&
      resources == o.resources &&
      identified_in_cfo_audit_or_other_review == o.identified_in_cfo_audit_or_other_review &&
      poc_first_name == o.poc_first_name &&
      poc_last_name == o.poc_last_name &&
      poc_email == o.poc_email &&
      poc_phone_number == o.poc_phone_number &&
      severity == o.severity &&
      scheduled_completion_date == o.scheduled_completion_date &&
      completion_date == o.completion_date &&
      comments == o.comments &&
      personnel_resources_funded_base_hours == o.personnel_resources_funded_base_hours &&
      personnel_resources_cost_code == o.personnel_resources_cost_code &&
      personnel_resources_unfunded_base_hours == o.personnel_resources_unfunded_base_hours &&
      personnel_resources_nonfunding_obstacle == o.personnel_resources_nonfunding_obstacle &&
      personnel_resources_nonfunding_obstacle_other_reason == o.personnel_resources_nonfunding_obstacle_other_reason &&
      non_personnel_resources_funded_amount == o.non_personnel_resources_funded_amount &&
      non_personnel_resources_cost_code == o.non_personnel_resources_cost_code &&
      non_personnel_resources_unfunded_amount == o.non_personnel_resources_unfunded_amount &&
      non_personnel_resources_nonfunding_obstacle == o.non_personnel_resources_nonfunding_obstacle &&
      non_personnel_resources_nonfunding_obstacle_other_reason == o.non_personnel_resources_nonfunding_obstacle_other_reason &&
      milestones == o.milestones &&
      external_uid == o.external_uid &&
      control_acronym == o.control_acronym &&
      assessment_procedure == o.assessment_procedure &&
      security_checks == o.security_checks &&
      raw_severity == o.raw_severity &&
      relevance_of_threat == o.relevance_of_threat &&
      likelihood == o.likelihood &&
      impact == o.impact &&
      impact_description == o.impact_description &&
      residual_risk_level == o.residual_risk_level &&
      recommendations == o.recommendations &&
      mitigations == o.mitigations &&
      resulting_residual_risk_level_after_proposed_mitigations == o.resulting_residual_risk_level_after_proposed_mitigations &&
      predisposing_conditions == o.predisposing_conditions &&
      threat_description == o.threat_description &&
      devices_affected == o.devices_affected &&
      condition_id == o.condition_id &&
      is_inherited == o.is_inherited &&
      cci == o.cci &&
      review_status == o.review_status &&
      created_date == o.created_date &&
      extension_date == o.extension_date &&
      pending_extension_date == o.pending_extension_date &&
      artifacts == o.artifacts
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



808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 808

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


700
701
702
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 700

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



706
707
708
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 706

def hash
  [system_id, poam_id, display_poam_id, status, vulnerability_description, source_identifying_vulnerability, poc_organization, resources, identified_in_cfo_audit_or_other_review, poc_first_name, poc_last_name, poc_email, poc_phone_number, severity, scheduled_completion_date, completion_date, comments, personnel_resources_funded_base_hours, personnel_resources_cost_code, personnel_resources_unfunded_base_hours, personnel_resources_nonfunding_obstacle, personnel_resources_nonfunding_obstacle_other_reason, non_personnel_resources_funded_amount, non_personnel_resources_cost_code, non_personnel_resources_unfunded_amount, non_personnel_resources_nonfunding_obstacle, non_personnel_resources_nonfunding_obstacle_other_reason, milestones, external_uid, control_acronym, assessment_procedure, security_checks, raw_severity, relevance_of_threat, likelihood, impact, impact_description, residual_risk_level, recommendations, mitigations, resulting_residual_risk_level_after_proposed_mitigations, predisposing_conditions, threat_description, devices_affected, condition_id, is_inherited, cci, review_status, created_date, extension_date, pending_extension_date, artifacts].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



590
591
592
593
594
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 590

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



784
785
786
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 784

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



790
791
792
793
794
795
796
797
798
799
800
801
802
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 790

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



778
779
780
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 778

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



598
599
600
601
602
603
604
605
606
607
# File 'lib/emass_client/models/poam_response_get_systems_data_inner.rb', line 598

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  status_validator = EnumAttributeValidator.new('String', ["Ongoing", "Risk Accepted", "Completed", "Not Applicable", "Archived", "unknown_default_open_api"])
  return false unless status_validator.valid?(@status)
  resulting_residual_risk_level_after_proposed_mitigations_validator = EnumAttributeValidator.new('String', ["Very Low", "Low", "Moderate", "High", "Very High", "unknown_default_open_api"])
  return false unless resulting_residual_risk_level_after_proposed_mitigations_validator.valid?(@resulting_residual_risk_level_after_proposed_mitigations)
  review_status_validator = EnumAttributeValidator.new('String', ["Not Approved", "Under Review", "Approved", "unknown_default_open_api"])
  return false unless review_status_validator.valid?(@review_status)
  true
end