Class: EmassClient::ControlsGet

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

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ControlsGet

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
400
401
402
403
404
405
406
407
408
409
410
411
# File 'lib/emass_client/models/controls_get.rb', line 263

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Instance Attribute Details

#acronymObject

Required

Acronym of the system record.



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

def acronym
  @acronym
end

#application_layerObject

Optional

If the Financial Management (Navy) overlay is applied to the system, this field appears and can be populated. Character Limit = 2,000. Navy only.



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

def application_layer
  @application_layer
end

#ccisObject

Read-only

Comma separated list of CCIs associated with the control.



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

def ccis
  @ccis
end

#common_control_providerObject

Conditional

Indicate the type of Common Control Provider for an “Inherited” Security Control.



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

def common_control_provider
  @common_control_provider
end

#compliance_statusObject

Read-only

Compliance of the control.



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

def compliance_status
  @compliance_status
end

#control_designationObject

Required

Control designations



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

def control_designation
  @control_designation
end

#database_layerObject

Read-Only

Identify the primary computing environment for where the information system is deployed. Navy only.



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

def database_layer
  @database_layer
end

#estimated_completion_dateObject

Required

Field is required for Implementation Plan.



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

def estimated_completion_date
  @estimated_completion_date
end

#impactObject

Optional

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



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

def impact
  @impact
end

#impact_descriptionObject

Optional

Include description of Security Control’s impact.



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

def impact_description
  @impact_description
end

#implementation_narrativeObject

Required

Includes security control comments. Character Limit = 2,000.



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

def implementation_narrative
  @implementation_narrative
end

#implementation_statusObject

Optional

Implementation Status of the Security Control for the information system.



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

def implementation_status
  @implementation_status
end

#included_statusObject

Read-only

Indicates the manner by which a control was included in the system’s categorization.



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

def included_status
  @included_status
end

#is_inheritedObject

Read-only

Indicates whether a control is inherited.



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

def is_inherited
  @is_inherited
end

#likelihoodObject

Optional

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



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

def likelihood
  @likelihood
end

#mitigationsObject

Optional

Identify any mitigations in place for the Non-Compliant Security Control’s vulnerabilities. Character Limit = 2,000.



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

def mitigations
  @mitigations
end

#modified_by_overlaysObject

Read-only

List of overlays that affect the control.



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

def modified_by_overlays
  @modified_by_overlays
end

#na_justificationObject

Conditional

Provide justification for Security Controls deemed Not Applicable to the system.



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

def na_justification
  @na_justification
end

#nameObject

Read-only

Name of the system record.



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

def name
  @name
end

#operating_system_layerObject

Read-Only

Identify the primary computing environment for where the information system is deployed. Navy only.



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

def operating_system_layer
  @operating_system_layer
end

#recommendationsObject

Optional

Include recommendations. Character Limit = 2,000.



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

def recommendations
  @recommendations
end

#relevance_of_threatObject

Optional

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



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

def relevance_of_threat
  @relevance_of_threat
end

#residual_risk_levelObject

Optional

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



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

def residual_risk_level
  @residual_risk_level
end

#responsible_entitiesObject

Required

Include written description of Responsible Entities that are responsible for the Security Control. Character Limit = 2,000.



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

def responsible_entities
  @responsible_entities
end

#severityObject

Optional

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



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

def severity
  @severity
end

#slcm_commentsObject

Conditional

Additional comments for Security Control regarding SLCM. Character Limit = 4,000.



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

def slcm_comments
  @slcm_comments
end

#slcm_criticalityObject

Conditional

Criticality of Security Control regarding SLCM. Character Limit = 2,000.



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

def slcm_criticality
  @slcm_criticality
end

#slcm_frequencyObject

Conditional

SLCM frequency



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

def slcm_frequency
  @slcm_frequency
end

#slcm_methodObject

Conditional

SLCM method utilized



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

def slcm_method
  @slcm_method
end

#slcm_reportingObject

Conditional

Method for reporting Security Control for SLCM. Character Limit = 2,000.



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

def slcm_reporting
  @slcm_reporting
end

#slcm_trackingObject

Conditional

How Non-Compliant Security Controls will be tracked for SLCM. Character Limit = 2,000.



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

def slcm_tracking
  @slcm_tracking
end

#system_idObject

Required

Unique system record identifier.



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

def system_id
  @system_id
end

#test_methodObject

Optional

Identifies the assessment method / combination that will determine if the security requirements are implemented correctly.



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

def test_method
  @test_method
end

#vulnerabilty_summaryObject

Optional

Include vulnerability summary. Character Limit = 2,000.



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

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



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

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



183
184
185
# File 'lib/emass_client/models/controls_get.rb', line 183

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

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



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
176
177
178
179
180
# File 'lib/emass_client/models/controls_get.rb', line 143

def self.attribute_map
  {
    :'system_id' => :'systemId',
    :'name' => :'name',
    :'acronym' => :'acronym',
    :'ccis' => :'ccis',
    :'is_inherited' => :'isInherited',
    :'modified_by_overlays' => :'modifiedByOverlays',
    :'included_status' => :'includedStatus',
    :'compliance_status' => :'complianceStatus',
    :'responsible_entities' => :'responsibleEntities',
    :'implementation_status' => :'implementationStatus',
    :'common_control_provider' => :'commonControlProvider',
    :'na_justification' => :'naJustification',
    :'control_designation' => :'controlDesignation',
    :'estimated_completion_date' => :'estimatedCompletionDate',
    :'implementation_narrative' => :'implementationNarrative',
    :'slcm_criticality' => :'slcmCriticality',
    :'slcm_frequency' => :'slcmFrequency',
    :'slcm_method' => :'slcmMethod',
    :'slcm_reporting' => :'slcmReporting',
    :'slcm_tracking' => :'slcmTracking',
    :'slcm_comments' => :'slcmComments',
    :'severity' => :'severity',
    :'vulnerabilty_summary' => :'vulnerabiltySummary',
    :'recommendations' => :'recommendations',
    :'relevance_of_threat' => :'relevanceOfThreat',
    :'likelihood' => :'likelihood',
    :'impact' => :'impact',
    :'impact_description' => :'impactDescription',
    :'residual_risk_level' => :'residualRiskLevel',
    :'test_method' => :'testMethod',
    :'mitigations' => :'mitigations',
    :'application_layer' => :'applicationLayer',
    :'database_layer' => :'databaseLayer',
    :'operating_system_layer' => :'operatingSystemLayer'
  }
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



616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
# File 'lib/emass_client/models/controls_get.rb', line 616

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



228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
# File 'lib/emass_client/models/controls_get.rb', line 228

def self.openapi_nullable
  Set.new([
    :'name',
    :'ccis',
    :'is_inherited',
    :'modified_by_overlays',
    :'included_status',
    :'compliance_status',
    :'implementation_status',
    :'common_control_provider',
    :'na_justification',
    :'slcm_criticality',
    :'slcm_frequency',
    :'slcm_method',
    :'slcm_reporting',
    :'slcm_tracking',
    :'slcm_comments',
    :'severity',
    :'vulnerabilty_summary',
    :'recommendations',
    :'relevance_of_threat',
    :'likelihood',
    :'impact',
    :'impact_description',
    :'residual_risk_level',
    :'test_method',
    :'mitigations',
    :'application_layer',
    :'database_layer',
    :'operating_system_layer'
  ])
end

.openapi_typesObject

Attribute type mapping.



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

def self.openapi_types
  {
    :'system_id' => :'Integer',
    :'name' => :'String',
    :'acronym' => :'String',
    :'ccis' => :'String',
    :'is_inherited' => :'Boolean',
    :'modified_by_overlays' => :'String',
    :'included_status' => :'String',
    :'compliance_status' => :'String',
    :'responsible_entities' => :'String',
    :'implementation_status' => :'String',
    :'common_control_provider' => :'String',
    :'na_justification' => :'String',
    :'control_designation' => :'String',
    :'estimated_completion_date' => :'Integer',
    :'implementation_narrative' => :'String',
    :'slcm_criticality' => :'String',
    :'slcm_frequency' => :'String',
    :'slcm_method' => :'String',
    :'slcm_reporting' => :'String',
    :'slcm_tracking' => :'String',
    :'slcm_comments' => :'String',
    :'severity' => :'String',
    :'vulnerabilty_summary' => :'String',
    :'recommendations' => :'String',
    :'relevance_of_threat' => :'String',
    :'likelihood' => :'String',
    :'impact' => :'String',
    :'impact_description' => :'String',
    :'residual_risk_level' => :'String',
    :'test_method' => :'String',
    :'mitigations' => :'String',
    :'application_layer' => :'String',
    :'database_layer' => :'String',
    :'operating_system_layer' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



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
587
588
589
590
591
592
593
594
595
596
597
598
599
# File 'lib/emass_client/models/controls_get.rb', line 562

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      system_id == o.system_id &&
      name == o.name &&
      acronym == o.acronym &&
      ccis == o.ccis &&
      is_inherited == o.is_inherited &&
      modified_by_overlays == o.modified_by_overlays &&
      included_status == o.included_status &&
      compliance_status == o.compliance_status &&
      responsible_entities == o.responsible_entities &&
      implementation_status == o.implementation_status &&
      common_control_provider == o.common_control_provider &&
      na_justification == o.na_justification &&
      control_designation == o.control_designation &&
      estimated_completion_date == o.estimated_completion_date &&
      implementation_narrative == o.implementation_narrative &&
      slcm_criticality == o.slcm_criticality &&
      slcm_frequency == o.slcm_frequency &&
      slcm_method == o.slcm_method &&
      slcm_reporting == o.slcm_reporting &&
      slcm_tracking == o.slcm_tracking &&
      slcm_comments == o.slcm_comments &&
      severity == o.severity &&
      vulnerabilty_summary == o.vulnerabilty_summary &&
      recommendations == o.recommendations &&
      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 &&
      test_method == o.test_method &&
      mitigations == o.mitigations &&
      application_layer == o.application_layer &&
      database_layer == o.database_layer &&
      operating_system_layer == o.operating_system_layer
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



711
712
713
714
715
716
717
718
719
720
721
722
723
# File 'lib/emass_client/models/controls_get.rb', line 711

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


603
604
605
# File 'lib/emass_client/models/controls_get.rb', line 603

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



609
610
611
# File 'lib/emass_client/models/controls_get.rb', line 609

def hash
  [system_id, name, acronym, ccis, is_inherited, modified_by_overlays, included_status, compliance_status, responsible_entities, implementation_status, common_control_provider, na_justification, control_designation, estimated_completion_date, implementation_narrative, slcm_criticality, slcm_frequency, slcm_method, slcm_reporting, slcm_tracking, slcm_comments, severity, vulnerabilty_summary, recommendations, relevance_of_threat, likelihood, impact, impact_description, residual_risk_level, test_method, mitigations, application_layer, database_layer, operating_system_layer].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



415
416
417
418
419
# File 'lib/emass_client/models/controls_get.rb', line 415

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



687
688
689
# File 'lib/emass_client/models/controls_get.rb', line 687

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



693
694
695
696
697
698
699
700
701
702
703
704
705
# File 'lib/emass_client/models/controls_get.rb', line 693

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



681
682
683
# File 'lib/emass_client/models/controls_get.rb', line 681

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



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

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  implementation_status_validator = EnumAttributeValidator.new('String', ["Planned", "Implemented", "Inherited", "Not Applicable", "Manually Inherited", "unknown_default_open_api"])
  return false unless implementation_status_validator.valid?(@implementation_status)
  common_control_provider_validator = EnumAttributeValidator.new('String', ["DoD", "Component", "Enclave", "unknown_default_open_api"])
  return false unless common_control_provider_validator.valid?(@common_control_provider)
  control_designation_validator = EnumAttributeValidator.new('String', ["Common", "System-Specific", "Hybrid", "unknown_default_open_api"])
  return false unless control_designation_validator.valid?(@control_designation)
  slcm_frequency_validator = EnumAttributeValidator.new('String', ["Constantly", "Daily", "Weekly", "Monthly", "Quarterly", "Semi-Annually", "Annually", "Every Two Years", "Every Three Years", "Undetermined", "unknown_default_open_api"])
  return false unless slcm_frequency_validator.valid?(@slcm_frequency)
  slcm_method_validator = EnumAttributeValidator.new('String', ["Automated", "Semi-Automated", "Manual", "Undetermined", "unknown_default_open_api"])
  return false unless slcm_method_validator.valid?(@slcm_method)
  severity_validator = EnumAttributeValidator.new('String', ["Very Low", "Low", "Moderate", "High", "Very High", "unknown_default_open_api"])
  return false unless severity_validator.valid?(@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)
  test_method_validator = EnumAttributeValidator.new('String', ["Test", "Interview", "Examine", "Test, Interview", "Test, Examine", "Interview, Examine", "Test, Interview, Examine", "unknown_default_open_api"])
  return false unless test_method_validator.valid?(@test_method)
  true
end