Class: EmassClient::ControlsResponseGetDataInner

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

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ControlsResponseGetDataInner

Initializes the object

Parameters:

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

    Model attributes in the form of hash



279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 279

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

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

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

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

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

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

Instance Attribute Details

#acronymObject

Required

Acronym of the system record.



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

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.



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

def application_layer
  @application_layer
end

#ccisObject

Read-only

Comma separated list of CCIs associated with the control.



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

def ccis
  @ccis
end

#common_control_providerObject

Conditional

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



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

def common_control_provider
  @common_control_provider
end

#compliance_statusObject

Read-only

Compliance of the control.



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

def compliance_status
  @compliance_status
end

#control_designationObject

Required

Control designations



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

def control_designation
  @control_designation
end

#database_layerObject

Optional

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



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

def database_layer
  @database_layer
end

#estimated_completion_dateObject

Required

Field is required for Implementation Plan. Unix time format.



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

def estimated_completion_date
  @estimated_completion_date
end

#impactObject

Optional

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



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

def impact
  @impact
end

#impact_descriptionObject

Optional

Include description of Security Control’s impact.



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

def impact_description
  @impact_description
end

#implementation_narrativeObject

Required

Includes security control comments. Character Limit 2,000.



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

def implementation_narrative
  @implementation_narrative
end

#implementation_statusObject

Optional

Implementation Status of the Security Control for the information system.



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

def implementation_status
  @implementation_status
end

#included_statusObject

Read-only

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



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

def included_status
  @included_status
end

#is_inheritedObject

Read-only

Indicates whether a control is inherited.



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

def is_inherited
  @is_inherited
end

#likelihoodObject

Optional

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



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

def likelihood
  @likelihood
end

#mitigationsObject

Optional

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



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

def mitigations
  @mitigations
end

#modified_by_overlaysObject

Read-only

List of overlays that affect the control.



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

def modified_by_overlays
  @modified_by_overlays
end

#na_justificationObject

Conditional

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



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

def na_justification
  @na_justification
end

#nameObject

Read-only

Name of the system record.



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

def name
  @name
end

#operating_system_layerObject

Optional

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



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

def operating_system_layer
  @operating_system_layer
end

#recommendationsObject

Optional

Include recommendations. Character Limit = 2,000.



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

def recommendations
  @recommendations
end

#relevance_of_threatObject

Optional

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



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

def relevance_of_threat
  @relevance_of_threat
end

#residual_risk_levelObject

Optional

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



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

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.



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

def responsible_entities
  @responsible_entities
end

#severityObject

Optional

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



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

def severity
  @severity
end

#slcm_commentsObject

Conditional

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



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

def slcm_comments
  @slcm_comments
end

#slcm_criticalityObject

Conditional

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



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

def slcm_criticality
  @slcm_criticality
end

#slcm_frequencyObject

Conditional

SLCM frequency



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

def slcm_frequency
  @slcm_frequency
end

#slcm_methodObject

Conditional

SLCM method utilized



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

def slcm_method
  @slcm_method
end

#slcm_reportingObject

Conditional

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



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

def slcm_reporting
  @slcm_reporting
end

#slcm_trackingObject

Conditional

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



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

def slcm_tracking
  @slcm_tracking
end

#system_idObject

Required

Unique eMASS system identifier.



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



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

def test_method
  @test_method
end

#vulnerabilty_summaryObject

Optional

Include vulnerability summary. Character Limit = 2,000.



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

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



657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 657

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

.acceptable_attribute_mapObject

Returns attribute mapping this model knows about



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

def self.acceptable_attribute_map
  attribute_map
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



188
189
190
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 188

def self.acceptable_attributes
  acceptable_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_response_get_data_inner.rb', line 143

def self.attribute_map
  {
    :'system_id' => :'systemId',
    :'acronym' => :'acronym',
    :'responsible_entities' => :'responsibleEntities',
    :'control_designation' => :'controlDesignation',
    :'estimated_completion_date' => :'estimatedCompletionDate',
    :'implementation_narrative' => :'implementationNarrative',
    :'common_control_provider' => :'commonControlProvider',
    :'na_justification' => :'naJustification',
    :'slcm_criticality' => :'slcmCriticality',
    :'slcm_frequency' => :'slcmFrequency',
    :'slcm_method' => :'slcmMethod',
    :'slcm_reporting' => :'slcmReporting',
    :'slcm_tracking' => :'slcmTracking',
    :'slcm_comments' => :'slcmComments',
    :'implementation_status' => :'implementationStatus',
    :'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',
    :'name' => :'name',
    :'ccis' => :'ccis',
    :'is_inherited' => :'isInherited',
    :'modified_by_overlays' => :'modifiedByOverlays',
    :'included_status' => :'includedStatus',
    :'compliance_status' => :'complianceStatus'
  }
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



633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 633

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

.openapi_all_ofObject

List of class defined in allOf (OpenAPI v3)



267
268
269
270
271
272
273
274
275
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 267

def self.openapi_all_of
  [
  :'ControlsConditionalFields',
  :'ControlsIds',
  :'ControlsOptionalFields',
  :'ControlsReadOnlyFields',
  :'ControlsRequiredFields'
  ]
end

.openapi_nullableObject

List of attributes with nullable: true



233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 233

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

.openapi_typesObject

Attribute type mapping.



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

def self.openapi_types
  {
    :'system_id' => :'Integer',
    :'acronym' => :'String',
    :'responsible_entities' => :'String',
    :'control_designation' => :'String',
    :'estimated_completion_date' => :'Integer',
    :'implementation_narrative' => :'String',
    :'common_control_provider' => :'String',
    :'na_justification' => :'String',
    :'slcm_criticality' => :'String',
    :'slcm_frequency' => :'String',
    :'slcm_method' => :'String',
    :'slcm_reporting' => :'String',
    :'slcm_tracking' => :'String',
    :'slcm_comments' => :'String',
    :'implementation_status' => :'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',
    :'name' => :'String',
    :'ccis' => :'String',
    :'is_inherited' => :'Boolean',
    :'modified_by_overlays' => :'String',
    :'included_status' => :'String',
    :'compliance_status' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 579

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      system_id == o.system_id &&
      acronym == o.acronym &&
      responsible_entities == o.responsible_entities &&
      control_designation == o.control_designation &&
      estimated_completion_date == o.estimated_completion_date &&
      implementation_narrative == o.implementation_narrative &&
      common_control_provider == o.common_control_provider &&
      na_justification == o.na_justification &&
      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 &&
      implementation_status == o.implementation_status &&
      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 &&
      name == o.name &&
      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
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



728
729
730
731
732
733
734
735
736
737
738
739
740
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 728

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


620
621
622
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 620

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



626
627
628
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 626

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

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



432
433
434
435
436
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 432

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



704
705
706
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 704

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



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

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



698
699
700
# File 'lib/emass_client/models/controls_response_get_data_inner.rb', line 698

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



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

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  control_designation_validator = EnumAttributeValidator.new('String', ["Common", "System-Specific", "Hybrid", "unknown_default_open_api"])
  return false unless control_designation_validator.valid?(@control_designation)
  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)
  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)
  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)
  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