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

Parameters:

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

    Model attributes in the form of hash



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

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

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

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

Instance Attribute Details

#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



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

def comments
  @comments
end

#completion_dateObject

Conditional

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



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

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

#display_poam_idObject

Required

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



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

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.



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

def extension_date
  @extension_date
end

#external_uidObject

Optional

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



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

def external_uid
  @external_uid
end

#impactObject

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 impact
  @impact
end

#impact_descriptionObject

Optional

Include description of Security Control’s impact.



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

def impact_description
  @impact_description
end

#is_activeObject

Conditional

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



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

def is_active
  @is_active
end

#is_inheritedObject

Read-only

Indicates whether a test result is inherited.



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

def is_inherited
  @is_inherited
end

#likelihoodObject

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 likelihood
  @likelihood
end

#milestonesObject

Returns the value of attribute milestones.



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

def milestones
  @milestones
end

#mitigationObject

Optional

Include mitigation explanation. 2000 Characters.



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

def mitigation
  @mitigation
end

#poam_idObject

Required

Unique item identifier



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

def poam_id
  @poam_id
end

#poc_emailObject

Conditional

Email address of POC. 100 Characters.



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

def poc_email
  @poc_email
end

#poc_first_nameObject

Conditional

First name of POC. 100 Characters.



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

def poc_first_name
  @poc_first_name
end

#poc_last_nameObject

Conditional

Last name of POC. 100 Characters.



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

def poc_last_name
  @poc_last_name
end

#poc_organizationObject

Required

Organization/Office represented. 100 Characters.



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

def poc_organization
  @poc_organization
end

#poc_phone_numberObject

Conditional

Phone number of POC. 100 Characters.



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

def poc_phone_number
  @poc_phone_number
end

#raw_severityObject

Optional

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



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

def raw_severity
  @raw_severity
end

#recommendationsObject

Optional

Include recommendations. Character Limit = 2,000.



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

def recommendations
  @recommendations
end

#relevance_of_threatObject

Optional

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



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

def relevance_of_threat
  @relevance_of_threat
end

#residual_risk_levelObject

Optional

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



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

def residual_risk_level
  @residual_risk_level
end

#resourcesObject

Required

List of resources used. 250 Characters.



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

def resources
  @resources
end

#review_statusObject

Read-Only

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



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

def review_status
  @review_status
end

#scheduled_completion_dateObject

Conditional

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



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

def scheduled_completion_date
  @scheduled_completion_date
end

#security_checksObject

Optional

Security Checks that are associated with the POA&M.



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

def security_checks
  @security_checks
end

#severityObject

Conditional

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



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

def severity
  @severity
end

#source_ident_vulnObject

Required

Include Source Identifying Vulnerability text. 2000 Characters.



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

def source_ident_vuln
  @source_ident_vuln
end

#statusObject

Required

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



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

def status
  @status
end

#system_idObject

Required

Unique eMASS system identifier.



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

def system_id
  @system_id
end

#vulnerability_descriptionObject

Required

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



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

def vulnerability_description
  @vulnerability_description
end

Class Method Details

.acceptable_attributesObject

Returns all the JSON keys this model knows about



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

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

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



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
171
172
173
174
175
# File 'lib/emass_client/models/poam_get.rb', line 139

def self.attribute_map
  {
    :'external_uid' => :'externalUid',
    :'system_id' => :'systemId',
    :'poam_id' => :'poamId',
    :'display_poam_id' => :'displayPoamId',
    :'is_inherited' => :'isInherited',
    :'control_acronym' => :'controlAcronym',
    :'cci' => :'cci',
    :'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'
  }
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



565
566
567
# File 'lib/emass_client/models/poam_get.rb', line 565

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

.openapi_nullableObject

List of attributes with nullable: true



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

def self.openapi_nullable
  Set.new([
    :'external_uid',
    :'is_inherited',
    :'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'
  ])
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
# File 'lib/emass_client/models/poam_get.rb', line 183

def self.openapi_types
  {
    :'external_uid' => :'String',
    :'system_id' => :'Integer',
    :'poam_id' => :'Integer',
    :'display_poam_id' => :'Integer',
    :'is_inherited' => :'Boolean',
    :'control_acronym' => :'String',
    :'cci' => :'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'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



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

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      external_uid == o.external_uid &&
      system_id == o.system_id &&
      poam_id == o.poam_id &&
      display_poam_id == o.display_poam_id &&
      is_inherited == o.is_inherited &&
      control_acronym == o.control_acronym &&
      cci == o.cci &&
      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
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
# File 'lib/emass_client/models/poam_get.rb', line 596

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

#_to_hash(value) ⇒ Hash

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

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



667
668
669
670
671
672
673
674
675
676
677
678
679
# File 'lib/emass_client/models/poam_get.rb', line 667

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

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



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 572

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

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


552
553
554
# File 'lib/emass_client/models/poam_get.rb', line 552

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



558
559
560
# File 'lib/emass_client/models/poam_get.rb', line 558

def hash
  [external_uid, system_id, poam_id, display_poam_id, is_inherited, control_acronym, cci, 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].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



403
404
405
406
# File 'lib/emass_client/models/poam_get.rb', line 403

def list_invalid_properties
  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



643
644
645
# File 'lib/emass_client/models/poam_get.rb', line 643

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



649
650
651
652
653
654
655
656
657
658
659
660
661
# File 'lib/emass_client/models/poam_get.rb', line 649

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



637
638
639
# File 'lib/emass_client/models/poam_get.rb', line 637

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



410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
# File 'lib/emass_client/models/poam_get.rb', line 410

def valid?
  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)
  true
end