Class: EmassClient::PoamGet

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

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ PoamGet

Initializes the object



347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
# File 'lib/emass_client/models/poam_get.rb', line 347

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::PoamGet` 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.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::PoamGet`. Please check the name to make sure it's valid. List of attributes: " + self.class.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?(:'is_inherited')
    self.is_inherited = attributes[:'is_inherited']
  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?(:'cci')
    self.cci = attributes[:'cci']
  end

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

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

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

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

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

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

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

  if attributes.key?(:'poc_organization')
    self.poc_organization = attributes[:'poc_organization']
  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?(:'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?(:'resources')
    self.resources = attributes[:'resources']
  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?(:'extension_date')
    self.extension_date = attributes[:'extension_date']
  end

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

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

  if attributes.key?(:'is_active')
    self.is_active = attributes[:'is_active']
  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?(:'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?(:'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
end

Instance Attribute Details

#assessment_procedureObject

Optional

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



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

def assessment_procedure
  @assessment_procedure
end

#cciObject

Optional

CCI associated with POA&M Item..



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

def cci
  @cci
end

#commentsObject

Conditional

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



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

def comments
  @comments
end

#completion_dateObject

Conditional

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



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

def completion_date
  @completion_date
end

#control_acronymObject

Optional

System acronym name.



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

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



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

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



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

def extension_date
  @extension_date
end

#external_uidObject

Optional

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



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

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



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

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)



87
88
89
# File 'lib/emass_client/models/poam_get.rb', line 87

def impact
  @impact
end

#impact_descriptionObject

Optional

Include description of Security Control’s impact.



90
91
92
# File 'lib/emass_client/models/poam_get.rb', line 90

def impact_description
  @impact_description
end

#is_activeObject

Conditional

Optionally used in PUT to delete milestones when updating a POA&M.



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

def is_active
  @is_active
end

#is_inheritedObject

Read-only

Indicates whether a test result is inherited.



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

def is_inherited
  @is_inherited
end

#likelihoodObject

Optional

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



84
85
86
# File 'lib/emass_client/models/poam_get.rb', line 84

def likelihood
  @likelihood
end

#milestonesObject

Returns the value of attribute milestones.



57
58
59
# File 'lib/emass_client/models/poam_get.rb', line 57

def milestones
  @milestones
end

#mitigationObject

Optional

Include mitigation explanation. 2000 Characters.



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

def mitigation
  @mitigation
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.



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

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.



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

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.



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

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.



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

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.



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

def non_personnel_resources_unfunded_amount
  @non_personnel_resources_unfunded_amount
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.



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

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.



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

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.



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

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.



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

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.



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

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_get.rb', line 22

def poam_id
  @poam_id
end

#poc_emailObject

Conditional

Email address of POC. 100 Characters.



69
70
71
# File 'lib/emass_client/models/poam_get.rb', line 69

def poc_email
  @poc_email
end

#poc_first_nameObject

Conditional

First name of POC. 100 Characters.



63
64
65
# File 'lib/emass_client/models/poam_get.rb', line 63

def poc_first_name
  @poc_first_name
end

#poc_last_nameObject

Conditional

Last name of POC. 100 Characters.



66
67
68
# File 'lib/emass_client/models/poam_get.rb', line 66

def poc_last_name
  @poc_last_name
end

#poc_organizationObject

Required

Organization/Office represented. 100 Characters.



60
61
62
# File 'lib/emass_client/models/poam_get.rb', line 60

def poc_organization
  @poc_organization
end

#poc_phone_numberObject

Conditional

Phone number of POC. 100 Characters.



72
73
74
# File 'lib/emass_client/models/poam_get.rb', line 72

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.



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

def predisposing_conditions
  @predisposing_conditions
end

#raw_severityObject

Optional

Values include the following options (I,II,III)



78
79
80
# File 'lib/emass_client/models/poam_get.rb', line 78

def raw_severity
  @raw_severity
end

#recommendationsObject

Optional

Include recommendations. Character Limit = 2,000.



96
97
98
# File 'lib/emass_client/models/poam_get.rb', line 96

def recommendations
  @recommendations
end

#relevance_of_threatObject

Optional

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



81
82
83
# File 'lib/emass_client/models/poam_get.rb', line 81

def relevance_of_threat
  @relevance_of_threat
end

#residual_risk_levelObject

Optional

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



93
94
95
# File 'lib/emass_client/models/poam_get.rb', line 93

def residual_risk_level
  @residual_risk_level
end

#resourcesObject

Required

List of resources used. 250 Characters.



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

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.



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

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)



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

def review_status
  @review_status
end

#scheduled_completion_dateObject

Conditional

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



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

def scheduled_completion_date
  @scheduled_completion_date
end

#security_checksObject

Optional

Security Checks that are associated with the POA&M.



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

def security_checks
  @security_checks
end

#severityObject

Conditional

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



75
76
77
# File 'lib/emass_client/models/poam_get.rb', line 75

def severity
  @severity
end

#source_ident_vulnObject

Required

Include Source Identifying Vulnerability text. 2000 Characters.



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

def source_ident_vuln
  @source_ident_vuln
end

#statusObject

Required

Values include the following: (Ongoing,Risk Accepted,Completed,Not Applicable



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

def status
  @status
end

#system_idObject

Required

Unique eMASS system identifier.



19
20
21
# File 'lib/emass_client/models/poam_get.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.



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

def threat_description
  @threat_description
end

#vulnerability_descriptionObject

Required

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



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

def vulnerability_description
  @vulnerability_description
end

Class Method Details

._deserialize(type, value) ⇒ Object

Deserializes the data based on type



777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
# File 'lib/emass_client/models/poam_get.rb', line 777

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_one_of) ? klass.build(value) : klass.build_from_hash(value)
  end
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



242
243
244
# File 'lib/emass_client/models/poam_get.rb', line 242

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

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



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

def self.attribute_map
  {
    :'system_id' => :'systemId',
    :'poam_id' => :'poamId',
    :'display_poam_id' => :'displayPoamId',
    :'is_inherited' => :'isInherited',
    :'external_uid' => :'externalUid',
    :'control_acronym' => :'controlAcronym',
    :'cci' => :'cci',
    :'assessment_procedure' => :'assessmentProcedure',
    :'status' => :'status',
    :'review_status' => :'reviewStatus',
    :'vulnerability_description' => :'vulnerabilityDescription',
    :'source_ident_vuln' => :'sourceIdentVuln',
    :'security_checks' => :'securityChecks',
    :'milestones' => :'milestones',
    :'poc_organization' => :'pocOrganization',
    :'poc_first_name' => :'pocFirstName',
    :'poc_last_name' => :'pocLastName',
    :'poc_email' => :'pocEmail',
    :'poc_phone_number' => :'pocPhoneNumber',
    :'severity' => :'severity',
    :'raw_severity' => :'rawSeverity',
    :'relevance_of_threat' => :'relevanceOfThreat',
    :'likelihood' => :'likelihood',
    :'impact' => :'impact',
    :'impact_description' => :'impactDescription',
    :'residual_risk_level' => :'residualRiskLevel',
    :'recommendations' => :'recommendations',
    :'resources' => :'resources',
    :'scheduled_completion_date' => :'scheduledCompletionDate',
    :'completion_date' => :'completionDate',
    :'extension_date' => :'extensionDate',
    :'comments' => :'comments',
    :'mitigation' => :'mitigation',
    :'is_active' => :'isActive',
    :'resulting_residual_risk_level_after_proposed_mitigations' => :'resultingResidualRiskLevelAfterProposedMitigations',
    :'predisposing_conditions' => :'predisposingConditions',
    :'threat_description' => :'threatDescription',
    :'devices_affected' => :'devicesAffected',
    :'identified_in_cfo_audit_or_other_review' => :'identifiedInCFOAuditOrOtherReview',
    :'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'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash



753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
# File 'lib/emass_client/models/poam_get.rb', line 753

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_nullableObject

List of attributes with nullable: true



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

def self.openapi_nullable
  Set.new([
    :'is_inherited',
    :'external_uid',
    :'control_acronym',
    :'cci',
    :'review_status',
    :'security_checks',
    :'poc_first_name',
    :'poc_last_name',
    :'poc_email',
    :'poc_phone_number',
    :'severity',
    :'raw_severity',
    :'relevance_of_threat',
    :'likelihood',
    :'impact',
    :'impact_description',
    :'residual_risk_level',
    :'recommendations',
    :'scheduled_completion_date',
    :'completion_date',
    :'extension_date',
    :'comments',
    :'mitigation',
    :'is_active',
    :'resulting_residual_risk_level_after_proposed_mitigations',
    :'predisposing_conditions',
    :'threat_description',
    :'devices_affected',
    :'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'
  ])
end

.openapi_typesObject

Attribute type mapping.



247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
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
# File 'lib/emass_client/models/poam_get.rb', line 247

def self.openapi_types
  {
    :'system_id' => :'Integer',
    :'poam_id' => :'Integer',
    :'display_poam_id' => :'Integer',
    :'is_inherited' => :'Boolean',
    :'external_uid' => :'String',
    :'control_acronym' => :'String',
    :'cci' => :'String',
    :'assessment_procedure' => :'String',
    :'status' => :'String',
    :'review_status' => :'String',
    :'vulnerability_description' => :'String',
    :'source_ident_vuln' => :'String',
    :'security_checks' => :'String',
    :'milestones' => :'Array<MilestonesGet>',
    :'poc_organization' => :'String',
    :'poc_first_name' => :'String',
    :'poc_last_name' => :'String',
    :'poc_email' => :'String',
    :'poc_phone_number' => :'String',
    :'severity' => :'String',
    :'raw_severity' => :'String',
    :'relevance_of_threat' => :'String',
    :'likelihood' => :'String',
    :'impact' => :'String',
    :'impact_description' => :'String',
    :'residual_risk_level' => :'String',
    :'recommendations' => :'String',
    :'resources' => :'String',
    :'scheduled_completion_date' => :'Integer',
    :'completion_date' => :'Integer',
    :'extension_date' => :'Integer',
    :'comments' => :'String',
    :'mitigation' => :'String',
    :'is_active' => :'Boolean',
    :'resulting_residual_risk_level_after_proposed_mitigations' => :'String',
    :'predisposing_conditions' => :'String',
    :'threat_description' => :'String',
    :'devices_affected' => :'String',
    :'identified_in_cfo_audit_or_other_review' => :'Boolean',
    :'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'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.



684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
# File 'lib/emass_client/models/poam_get.rb', line 684

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 &&
      is_inherited == o.is_inherited &&
      external_uid == o.external_uid &&
      control_acronym == o.control_acronym &&
      cci == o.cci &&
      assessment_procedure == o.assessment_procedure &&
      status == o.status &&
      review_status == o.review_status &&
      vulnerability_description == o.vulnerability_description &&
      source_ident_vuln == o.source_ident_vuln &&
      security_checks == o.security_checks &&
      milestones == o.milestones &&
      poc_organization == o.poc_organization &&
      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 &&
      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 &&
      resources == o.resources &&
      scheduled_completion_date == o.scheduled_completion_date &&
      completion_date == o.completion_date &&
      extension_date == o.extension_date &&
      comments == o.comments &&
      mitigation == o.mitigation &&
      is_active == o.is_active &&
      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 &&
      identified_in_cfo_audit_or_other_review == o.identified_in_cfo_audit_or_other_review &&
      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
end

#_to_hash(value) ⇒ Hash

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



848
849
850
851
852
853
854
855
856
857
858
859
860
# File 'lib/emass_client/models/poam_get.rb', line 848

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

See Also:

  • `==` method


740
741
742
# File 'lib/emass_client/models/poam_get.rb', line 740

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.



746
747
748
# File 'lib/emass_client/models/poam_get.rb', line 746

def hash
  [system_id, poam_id, display_poam_id, is_inherited, external_uid, control_acronym, cci, assessment_procedure, status, review_status, vulnerability_description, source_ident_vuln, security_checks, milestones, poc_organization, poc_first_name, poc_last_name, poc_email, poc_phone_number, severity, raw_severity, relevance_of_threat, likelihood, impact, impact_description, residual_risk_level, recommendations, resources, scheduled_completion_date, completion_date, extension_date, comments, mitigation, is_active, resulting_residual_risk_level_after_proposed_mitigations, predisposing_conditions, threat_description, devices_affected, identified_in_cfo_audit_or_other_review, 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].hash
end

#list_invalid_propertiesObject

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



561
562
563
564
565
# File 'lib/emass_client/models/poam_get.rb', line 561

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)



824
825
826
# File 'lib/emass_client/models/poam_get.rb', line 824

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash



830
831
832
833
834
835
836
837
838
839
840
841
842
# File 'lib/emass_client/models/poam_get.rb', line 830

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



818
819
820
# File 'lib/emass_client/models/poam_get.rb', line 818

def to_s
  to_hash.to_s
end

#valid?Boolean

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



569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
# File 'lib/emass_client/models/poam_get.rb', line 569

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)
  review_status_validator = EnumAttributeValidator.new('String', ["Not Approved", "Under Review", "Approved", "unknown_default_open_api"])
  return false unless review_status_validator.valid?(@review_status)
  severity_validator = EnumAttributeValidator.new('String', ["Very Low", "Low", "Moderate", "High", "Very High", "unknown_default_open_api"])
  return false unless severity_validator.valid?(@severity)
  raw_severity_validator = EnumAttributeValidator.new('String', ["I", "II", "III", "unknown_default_open_api"])
  return false unless raw_severity_validator.valid?(@raw_severity)
  relevance_of_threat_validator = EnumAttributeValidator.new('String', ["Very Low", "Low", "Moderate", "High", "Very High", "unknown_default_open_api"])
  return false unless relevance_of_threat_validator.valid?(@relevance_of_threat)
  likelihood_validator = EnumAttributeValidator.new('String', ["Very Low", "Low", "Moderate", "High", "Very High", "unknown_default_open_api"])
  return false unless likelihood_validator.valid?(@likelihood)
  impact_validator = EnumAttributeValidator.new('String', ["Very Low", "Low", "Moderate", "High", "Very High", "unknown_default_open_api"])
  return false unless impact_validator.valid?(@impact)
  residual_risk_level_validator = EnumAttributeValidator.new('String', ["Very Low", "Low", "Moderate", "High", "Very High", "unknown_default_open_api"])
  return false unless residual_risk_level_validator.valid?(@residual_risk_level)
  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)
  true
end