Class: OCI::DataSafe::Models::SecurityFeatureSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/data_safe/models/security_feature_summary.rb

Overview

The details of database security feature usage available on a given compartment.

Constant Summary collapse

UNIFIED_AUDIT_ENUM =
[
  UNIFIED_AUDIT_ENABLED = 'ENABLED'.freeze,
  UNIFIED_AUDIT_DISABLED = 'DISABLED'.freeze,
  UNIFIED_AUDIT_NONE = 'NONE'.freeze,
  UNIFIED_AUDIT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
FINE_GRAINED_AUDIT_ENUM =
[
  FINE_GRAINED_AUDIT_ENABLED = 'ENABLED'.freeze,
  FINE_GRAINED_AUDIT_DISABLED = 'DISABLED'.freeze,
  FINE_GRAINED_AUDIT_NONE = 'NONE'.freeze,
  FINE_GRAINED_AUDIT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
TRADITIONAL_AUDIT_ENUM =
[
  TRADITIONAL_AUDIT_ENABLED = 'ENABLED'.freeze,
  TRADITIONAL_AUDIT_DISABLED = 'DISABLED'.freeze,
  TRADITIONAL_AUDIT_NONE = 'NONE'.freeze,
  TRADITIONAL_AUDIT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
DATABASE_VAULT_ENUM =
[
  DATABASE_VAULT_ENABLED = 'ENABLED'.freeze,
  DATABASE_VAULT_DISABLED = 'DISABLED'.freeze,
  DATABASE_VAULT_NONE = 'NONE'.freeze,
  DATABASE_VAULT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
PRIVILEGE_ANALYSIS_ENUM =
[
  PRIVILEGE_ANALYSIS_ENABLED = 'ENABLED'.freeze,
  PRIVILEGE_ANALYSIS_DISABLED = 'DISABLED'.freeze,
  PRIVILEGE_ANALYSIS_NONE = 'NONE'.freeze,
  PRIVILEGE_ANALYSIS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
TABLESPACE_ENCRYPTION_ENUM =
[
  TABLESPACE_ENCRYPTION_ENABLED = 'ENABLED'.freeze,
  TABLESPACE_ENCRYPTION_DISABLED = 'DISABLED'.freeze,
  TABLESPACE_ENCRYPTION_NONE = 'NONE'.freeze,
  TABLESPACE_ENCRYPTION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
COLUMN_ENCRYPTION_ENUM =
[
  COLUMN_ENCRYPTION_ENABLED = 'ENABLED'.freeze,
  COLUMN_ENCRYPTION_DISABLED = 'DISABLED'.freeze,
  COLUMN_ENCRYPTION_NONE = 'NONE'.freeze,
  COLUMN_ENCRYPTION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
NETWORK_ENCRYPTION_ENUM =
[
  NETWORK_ENCRYPTION_ENABLED = 'ENABLED'.freeze,
  NETWORK_ENCRYPTION_DISABLED = 'DISABLED'.freeze,
  NETWORK_ENCRYPTION_NONE = 'NONE'.freeze,
  NETWORK_ENCRYPTION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
PASSWORD_AUTHENTICATION_ENUM =
[
  PASSWORD_AUTHENTICATION_ENABLED = 'ENABLED'.freeze,
  PASSWORD_AUTHENTICATION_DISABLED = 'DISABLED'.freeze,
  PASSWORD_AUTHENTICATION_NONE = 'NONE'.freeze,
  PASSWORD_AUTHENTICATION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
GLOBAL_AUTHENTICATION_ENUM =
[
  GLOBAL_AUTHENTICATION_ENABLED = 'ENABLED'.freeze,
  GLOBAL_AUTHENTICATION_DISABLED = 'DISABLED'.freeze,
  GLOBAL_AUTHENTICATION_NONE = 'NONE'.freeze,
  GLOBAL_AUTHENTICATION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
EXTERNAL_AUTHENTICATION_ENUM =
[
  EXTERNAL_AUTHENTICATION_ENABLED = 'ENABLED'.freeze,
  EXTERNAL_AUTHENTICATION_DISABLED = 'DISABLED'.freeze,
  EXTERNAL_AUTHENTICATION_NONE = 'NONE'.freeze,
  EXTERNAL_AUTHENTICATION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ SecurityFeatureSummary

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :compartment_id (String)

    The value to assign to the #compartment_id property

  • :target_id (String)

    The value to assign to the #target_id property

  • :assessment_id (String)

    The value to assign to the #assessment_id property

  • :unified_audit (String)

    The value to assign to the #unified_audit property

  • :fine_grained_audit (String)

    The value to assign to the #fine_grained_audit property

  • :traditional_audit (String)

    The value to assign to the #traditional_audit property

  • :database_vault (String)

    The value to assign to the #database_vault property

  • :privilege_analysis (String)

    The value to assign to the #privilege_analysis property

  • :tablespace_encryption (String)

    The value to assign to the #tablespace_encryption property

  • :column_encryption (String)

    The value to assign to the #column_encryption property

  • :network_encryption (String)

    The value to assign to the #network_encryption property

  • :password_authentication (String)

    The value to assign to the #password_authentication property

  • :global_authentication (String)

    The value to assign to the #global_authentication property

  • :external_authentication (String)

    The value to assign to the #external_authentication property

  • :freeform_tags (Hash<String, String>)

    The value to assign to the #freeform_tags property

  • :defined_tags (Hash<String, Hash<String, Object>>)

    The value to assign to the #defined_tags property



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
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
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 229

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']

  raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')

  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']

  self.target_id = attributes[:'targetId'] if attributes[:'targetId']

  raise 'You cannot provide both :targetId and :target_id' if attributes.key?(:'targetId') && attributes.key?(:'target_id')

  self.target_id = attributes[:'target_id'] if attributes[:'target_id']

  self.assessment_id = attributes[:'assessmentId'] if attributes[:'assessmentId']

  raise 'You cannot provide both :assessmentId and :assessment_id' if attributes.key?(:'assessmentId') && attributes.key?(:'assessment_id')

  self.assessment_id = attributes[:'assessment_id'] if attributes[:'assessment_id']

  self.unified_audit = attributes[:'unifiedAudit'] if attributes[:'unifiedAudit']

  raise 'You cannot provide both :unifiedAudit and :unified_audit' if attributes.key?(:'unifiedAudit') && attributes.key?(:'unified_audit')

  self.unified_audit = attributes[:'unified_audit'] if attributes[:'unified_audit']

  self.fine_grained_audit = attributes[:'fineGrainedAudit'] if attributes[:'fineGrainedAudit']

  raise 'You cannot provide both :fineGrainedAudit and :fine_grained_audit' if attributes.key?(:'fineGrainedAudit') && attributes.key?(:'fine_grained_audit')

  self.fine_grained_audit = attributes[:'fine_grained_audit'] if attributes[:'fine_grained_audit']

  self.traditional_audit = attributes[:'traditionalAudit'] if attributes[:'traditionalAudit']

  raise 'You cannot provide both :traditionalAudit and :traditional_audit' if attributes.key?(:'traditionalAudit') && attributes.key?(:'traditional_audit')

  self.traditional_audit = attributes[:'traditional_audit'] if attributes[:'traditional_audit']

  self.database_vault = attributes[:'databaseVault'] if attributes[:'databaseVault']

  raise 'You cannot provide both :databaseVault and :database_vault' if attributes.key?(:'databaseVault') && attributes.key?(:'database_vault')

  self.database_vault = attributes[:'database_vault'] if attributes[:'database_vault']

  self.privilege_analysis = attributes[:'privilegeAnalysis'] if attributes[:'privilegeAnalysis']

  raise 'You cannot provide both :privilegeAnalysis and :privilege_analysis' if attributes.key?(:'privilegeAnalysis') && attributes.key?(:'privilege_analysis')

  self.privilege_analysis = attributes[:'privilege_analysis'] if attributes[:'privilege_analysis']

  self.tablespace_encryption = attributes[:'tablespaceEncryption'] if attributes[:'tablespaceEncryption']

  raise 'You cannot provide both :tablespaceEncryption and :tablespace_encryption' if attributes.key?(:'tablespaceEncryption') && attributes.key?(:'tablespace_encryption')

  self.tablespace_encryption = attributes[:'tablespace_encryption'] if attributes[:'tablespace_encryption']

  self.column_encryption = attributes[:'columnEncryption'] if attributes[:'columnEncryption']

  raise 'You cannot provide both :columnEncryption and :column_encryption' if attributes.key?(:'columnEncryption') && attributes.key?(:'column_encryption')

  self.column_encryption = attributes[:'column_encryption'] if attributes[:'column_encryption']

  self.network_encryption = attributes[:'networkEncryption'] if attributes[:'networkEncryption']

  raise 'You cannot provide both :networkEncryption and :network_encryption' if attributes.key?(:'networkEncryption') && attributes.key?(:'network_encryption')

  self.network_encryption = attributes[:'network_encryption'] if attributes[:'network_encryption']

  self.password_authentication = attributes[:'passwordAuthentication'] if attributes[:'passwordAuthentication']

  raise 'You cannot provide both :passwordAuthentication and :password_authentication' if attributes.key?(:'passwordAuthentication') && attributes.key?(:'password_authentication')

  self.password_authentication = attributes[:'password_authentication'] if attributes[:'password_authentication']

  self.global_authentication = attributes[:'globalAuthentication'] if attributes[:'globalAuthentication']

  raise 'You cannot provide both :globalAuthentication and :global_authentication' if attributes.key?(:'globalAuthentication') && attributes.key?(:'global_authentication')

  self.global_authentication = attributes[:'global_authentication'] if attributes[:'global_authentication']

  self.external_authentication = attributes[:'externalAuthentication'] if attributes[:'externalAuthentication']

  raise 'You cannot provide both :externalAuthentication and :external_authentication' if attributes.key?(:'externalAuthentication') && attributes.key?(:'external_authentication')

  self.external_authentication = attributes[:'external_authentication'] if attributes[:'external_authentication']

  self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']

  raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')

  self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']

  self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']

  raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')

  self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
end

Instance Attribute Details

#assessment_idString

[Required] The OCID of the assessment that generates this security feature usage result.

Returns:

  • (String)


99
100
101
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 99

def assessment_id
  @assessment_id
end

#column_encryptionString

[Required] The usage of security feature - Column Encryption.

Returns:

  • (String)


127
128
129
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 127

def column_encryption
  @column_encryption
end

#compartment_idString

[Required] The OCID of the compartment.

Returns:

  • (String)


91
92
93
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 91

def compartment_id
  @compartment_id
end

#database_vaultString

[Required] The usage of security feature - Database Vault.

Returns:

  • (String)


115
116
117
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 115

def database_vault
  @database_vault
end

#defined_tagsHash<String, Hash<String, Object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags

Example: {\"Operations\": {\"CostCenter\": \"42\"}}

Returns:

  • (Hash<String, Hash<String, Object>>)


157
158
159
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 157

def defined_tags
  @defined_tags
end

#external_authenticationString

[Required] The usage of security feature - External Authentication.

Returns:

  • (String)


143
144
145
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 143

def external_authentication
  @external_authentication
end

#fine_grained_auditString

[Required] The usage of security feature - Fine Grained Audit.

Returns:

  • (String)


107
108
109
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 107

def fine_grained_audit
  @fine_grained_audit
end

#freeform_tagsHash<String, String>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags

Example: {\"Department\": \"Finance\"}

Returns:

  • (Hash<String, String>)


150
151
152
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 150

def freeform_tags
  @freeform_tags
end

#global_authenticationString

[Required] The usage of security feature - Global Authentication.

Returns:

  • (String)


139
140
141
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 139

def global_authentication
  @global_authentication
end

#network_encryptionString

[Required] The usage of security feature - Network Encryption.

Returns:

  • (String)


131
132
133
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 131

def network_encryption
  @network_encryption
end

#password_authenticationString

[Required] The usage of security feature - Password Authentication.

Returns:

  • (String)


135
136
137
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 135

def password_authentication
  @password_authentication
end

#privilege_analysisString

[Required] The usage of security feature - Privilege Analysis.

Returns:

  • (String)


119
120
121
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 119

def privilege_analysis
  @privilege_analysis
end

#tablespace_encryptionString

[Required] The usage of security feature - Tablespace Encryption.

Returns:

  • (String)


123
124
125
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 123

def tablespace_encryption
  @tablespace_encryption
end

#target_idString

[Required] The OCID of the target database.

Returns:

  • (String)


95
96
97
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 95

def target_id
  @target_id
end

#traditional_auditString

[Required] The usage of security feature - Traditional Audit.

Returns:

  • (String)


111
112
113
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 111

def traditional_audit
  @traditional_audit
end

#unified_auditString

[Required] The usage of security feature - Unified Audit.

Returns:

  • (String)


103
104
105
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 103

def unified_audit
  @unified_audit
end

Class Method Details

.attribute_mapObject

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



160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 160

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'compartment_id': :'compartmentId',
    'target_id': :'targetId',
    'assessment_id': :'assessmentId',
    'unified_audit': :'unifiedAudit',
    'fine_grained_audit': :'fineGrainedAudit',
    'traditional_audit': :'traditionalAudit',
    'database_vault': :'databaseVault',
    'privilege_analysis': :'privilegeAnalysis',
    'tablespace_encryption': :'tablespaceEncryption',
    'column_encryption': :'columnEncryption',
    'network_encryption': :'networkEncryption',
    'password_authentication': :'passwordAuthentication',
    'global_authentication': :'globalAuthentication',
    'external_authentication': :'externalAuthentication',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 184

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'compartment_id': :'String',
    'target_id': :'String',
    'assessment_id': :'String',
    'unified_audit': :'String',
    'fine_grained_audit': :'String',
    'traditional_audit': :'String',
    'database_vault': :'String',
    'privilege_analysis': :'String',
    'tablespace_encryption': :'String',
    'column_encryption': :'String',
    'network_encryption': :'String',
    'password_authentication': :'String',
    'global_authentication': :'String',
    'external_authentication': :'String',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 482

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    compartment_id == other.compartment_id &&
    target_id == other.target_id &&
    assessment_id == other.assessment_id &&
    unified_audit == other.unified_audit &&
    fine_grained_audit == other.fine_grained_audit &&
    traditional_audit == other.traditional_audit &&
    database_vault == other.database_vault &&
    privilege_analysis == other.privilege_analysis &&
    tablespace_encryption == other.tablespace_encryption &&
    column_encryption == other.column_encryption &&
    network_encryption == other.network_encryption &&
    password_authentication == other.password_authentication &&
    global_authentication == other.global_authentication &&
    external_authentication == other.external_authentication &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags
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



527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 527

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        public_method("#{key}=").call(
          attributes[self.class.attribute_map[key]]
            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
        )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      public_method("#{key}=").call(
        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
      )
    end
    # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


507
508
509
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 507

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



516
517
518
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 516

def hash
  [compartment_id, target_id, assessment_id, unified_audit, fine_grained_audit, traditional_audit, database_vault, privilege_analysis, tablespace_encryption, column_encryption, network_encryption, password_authentication, global_authentication, external_authentication, freeform_tags, defined_tags].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



560
561
562
563
564
565
566
567
568
569
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 560

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = public_method(attr).call
    next if value.nil? && !instance_variable_defined?("@#{attr}")

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



554
555
556
# File 'lib/oci/data_safe/models/security_feature_summary.rb', line 554

def to_s
  to_hash.to_s
end