Method: OCI::DatabaseTools::Models::DatabaseToolsKeyStorePasswordSecretIdSummary#initialize

Defined in:
lib/oci/database_tools/models/database_tools_key_store_password_secret_id_summary.rb

#initialize(attributes = {}) ⇒ DatabaseToolsKeyStorePasswordSecretIdSummary

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :secret_id (String)

    The value to assign to the #secret_id property



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/oci/database_tools/models/database_tools_key_store_password_secret_id_summary.rb', line 42

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

  attributes['valueType'] = 'SECRETID'

  super(attributes)

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

  self.secret_id = attributes[:'secretId'] if attributes[:'secretId']

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

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