Class: OCI::DatabaseManagement::Models::User

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/database_management/models/user.rb

Overview

The summary of a specific user resource.

Constant Summary collapse

STATUS_ENUM =
[
  STATUS_OPEN = 'OPEN'.freeze,
  STATUS_EXPIRED = 'EXPIRED'.freeze,
  STATUS_EXPIRED_GRACE = 'EXPIRED_GRACE'.freeze,
  STATUS_LOCKED = 'LOCKED'.freeze,
  STATUS_LOCKED_TIMED = 'LOCKED_TIMED'.freeze,
  STATUS_EXPIRED_AND_LOCKED = 'EXPIRED_AND_LOCKED'.freeze,
  STATUS_EXPIRED_GRACE_AND_LOCKED = 'EXPIRED_GRACE_AND_LOCKED'.freeze,
  STATUS_EXPIRED_AND_LOCKED_TIMED = 'EXPIRED_AND_LOCKED_TIMED'.freeze,
  STATUS_EXPIRED_GRACE_AND_LOCKED_TIMED = 'EXPIRED_GRACE_AND_LOCKED_TIMED'.freeze,
  STATUS_OPEN_AND_IN_ROLLOVER = 'OPEN_AND_IN_ROLLOVER'.freeze,
  STATUS_EXPIRED_AND_IN_ROLLOVER = 'EXPIRED_AND_IN_ROLLOVER'.freeze,
  STATUS_LOCKED_AND_IN_ROLLOVER = 'LOCKED_AND_IN_ROLLOVER'.freeze,
  STATUS_EXPIRED_AND_LOCKED_AND_IN_ROLLOVER = 'EXPIRED_AND_LOCKED_AND_IN_ROLLOVER'.freeze,
  STATUS_LOCKED_TIMED_AND_IN_ROLLOVER = 'LOCKED_TIMED_AND_IN_ROLLOVER'.freeze,
  STATUS_EXPIRED_AND_LOCKED_TIMED_AND_IN_ROL = 'EXPIRED_AND_LOCKED_TIMED_AND_IN_ROL'.freeze,
  STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
EDITIONS_ENABLED_ENUM =
[
  EDITIONS_ENABLED_YES = 'YES'.freeze,
  EDITIONS_ENABLED_NO = 'NO'.freeze,
  EDITIONS_ENABLED_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
AUTHENTICATION_ENUM =
[
  AUTHENTICATION_NONE = 'NONE'.freeze,
  AUTHENTICATION_EXTERNAL = 'EXTERNAL'.freeze,
  AUTHENTICATION_GLOBAL = 'GLOBAL'.freeze,
  AUTHENTICATION_PASSWORD = 'PASSWORD'.freeze,
  AUTHENTICATION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
PROXY_CONNECT_ENUM =
[
  PROXY_CONNECT_YES = 'YES'.freeze,
  PROXY_CONNECT_NO = 'NO'.freeze,
  PROXY_CONNECT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
COMMON_ENUM =
[
  COMMON_YES = 'YES'.freeze,
  COMMON_NO = 'NO'.freeze,
  COMMON_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
ORACLE_MAINTAINED_ENUM =
[
  ORACLE_MAINTAINED_YES = 'YES'.freeze,
  ORACLE_MAINTAINED_NO = 'NO'.freeze,
  ORACLE_MAINTAINED_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
INHERITED_ENUM =
[
  INHERITED_YES = 'YES'.freeze,
  INHERITED_NO = 'NO'.freeze,
  INHERITED_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
IMPLICIT_ENUM =
[
  IMPLICIT_YES = 'YES'.freeze,
  IMPLICIT_NO = 'NO'.freeze,
  IMPLICIT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
ALL_SHARED_ENUM =
[
  ALL_SHARED_YES = 'YES'.freeze,
  ALL_SHARED_NO = 'NO'.freeze,
  ALL_SHARED_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
EXTERNAL_SHARED_ENUM =
[
  EXTERNAL_SHARED_YES = 'YES'.freeze,
  EXTERNAL_SHARED_NO = 'NO'.freeze,
  EXTERNAL_SHARED_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ User

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :name (String)

    The value to assign to the #name property

  • :status (String)

    The value to assign to the #status property

  • :time_locked (DateTime)

    The value to assign to the #time_locked property

  • :time_expiring (DateTime)

    The value to assign to the #time_expiring property

  • :default_tablespace (String)

    The value to assign to the #default_tablespace property

  • :temp_tablespace (String)

    The value to assign to the #temp_tablespace property

  • :local_temp_tablespace (String)

    The value to assign to the #local_temp_tablespace property

  • :time_created (DateTime)

    The value to assign to the #time_created property

  • :profile (String)

    The value to assign to the #profile property

  • :consumer_group (String)

    The value to assign to the #consumer_group property

  • :external_name (String)

    The value to assign to the #external_name property

  • :password_versions (String)

    The value to assign to the #password_versions property

  • :editions_enabled (String)

    The value to assign to the #editions_enabled property

  • :authentication (String)

    The value to assign to the #authentication property

  • :proxy_connect (String)

    The value to assign to the #proxy_connect property

  • :common (String)

    The value to assign to the #common property

  • :time_last_login (DateTime)

    The value to assign to the #time_last_login property

  • :oracle_maintained (String)

    The value to assign to the #oracle_maintained property

  • :inherited (String)

    The value to assign to the #inherited property

  • :default_collation (String)

    The value to assign to the #default_collation property

  • :implicit (String)

    The value to assign to the #implicit property

  • :all_shared (String)

    The value to assign to the #all_shared property

  • :external_shared (String)

    The value to assign to the #external_shared property

  • :time_password_changed (DateTime)

    The value to assign to the #time_password_changed property



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
# File 'lib/oci/database_management/models/user.rb', line 283

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.name = attributes[:'name'] if attributes[:'name']

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

  self.time_locked = attributes[:'timeLocked'] if attributes[:'timeLocked']

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

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

  self.time_expiring = attributes[:'timeExpiring'] if attributes[:'timeExpiring']

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

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

  self.default_tablespace = attributes[:'defaultTablespace'] if attributes[:'defaultTablespace']

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

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

  self.temp_tablespace = attributes[:'tempTablespace'] if attributes[:'tempTablespace']

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

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

  self.local_temp_tablespace = attributes[:'localTempTablespace'] if attributes[:'localTempTablespace']

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

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

  self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']

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

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

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

  self.consumer_group = attributes[:'consumerGroup'] if attributes[:'consumerGroup']

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

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

  self.external_name = attributes[:'externalName'] if attributes[:'externalName']

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

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

  self.password_versions = attributes[:'passwordVersions'] if attributes[:'passwordVersions']

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

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

  self.editions_enabled = attributes[:'editionsEnabled'] if attributes[:'editionsEnabled']

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

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

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

  self.proxy_connect = attributes[:'proxyConnect'] if attributes[:'proxyConnect']

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

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

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

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

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

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

  self.oracle_maintained = attributes[:'oracleMaintained'] if attributes[:'oracleMaintained']

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

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

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

  self.default_collation = attributes[:'defaultCollation'] if attributes[:'defaultCollation']

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

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

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

  self.all_shared = attributes[:'allShared'] if attributes[:'allShared']

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

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

  self.external_shared = attributes[:'externalShared'] if attributes[:'externalShared']

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

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

  self.time_password_changed = attributes[:'timePasswordChanged'] if attributes[:'timePasswordChanged']

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

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

Instance Attribute Details

#all_sharedString

In a sharded database, indicates whether the user is created with shard DDL enabled (YES) or not (NO).

Returns:

  • (String)


177
178
179
# File 'lib/oci/database_management/models/user.rb', line 177

def all_shared
  @all_shared
end

#authenticationString

The authentication mechanism for the user.

Returns:

  • (String)


141
142
143
# File 'lib/oci/database_management/models/user.rb', line 141

def authentication
  @authentication
end

#commonString

Indicates whether a given user is common(Y) or local(N).

Returns:

  • (String)


151
152
153
# File 'lib/oci/database_management/models/user.rb', line 151

def common
  @common
end

#consumer_groupString

The initial resource consumer group for the User.

Returns:

  • (String)


125
126
127
# File 'lib/oci/database_management/models/user.rb', line 125

def consumer_group
  @consumer_group
end

#default_collationString

The default collation for the user schema.

Returns:

  • (String)


169
170
171
# File 'lib/oci/database_management/models/user.rb', line 169

def default_collation
  @default_collation
end

#default_tablespaceString

[Required] The default tablespace for data.

Returns:

  • (String)


105
106
107
# File 'lib/oci/database_management/models/user.rb', line 105

def default_tablespace
  @default_tablespace
end

#editions_enabledString

Indicates whether editions have been enabled for the corresponding user (Y) or not (N).

Returns:

  • (String)


137
138
139
# File 'lib/oci/database_management/models/user.rb', line 137

def editions_enabled
  @editions_enabled
end

#external_nameString

The external name of the user.

Returns:

  • (String)


129
130
131
# File 'lib/oci/database_management/models/user.rb', line 129

def external_name
  @external_name
end

#external_sharedString

In a federated sharded database, indicates whether the user is an external shard user (YES) or not (NO).

Returns:

  • (String)


181
182
183
# File 'lib/oci/database_management/models/user.rb', line 181

def external_shared
  @external_shared
end

#implicitString

Indicates whether the user is a common user created by an implicit application (YES) or not (NO).

Returns:

  • (String)


173
174
175
# File 'lib/oci/database_management/models/user.rb', line 173

def implicit
  @implicit
end

#inheritedString

Indicates whether the user definition is inherited from another container (YES) or not (NO).

Returns:

  • (String)


165
166
167
# File 'lib/oci/database_management/models/user.rb', line 165

def inherited
  @inherited
end

#local_temp_tablespaceString

The default local temporary tablespace for the user.

Returns:

  • (String)


113
114
115
# File 'lib/oci/database_management/models/user.rb', line 113

def local_temp_tablespace
  @local_temp_tablespace
end

#nameString

[Required] The name of the User.

Returns:

  • (String)


89
90
91
# File 'lib/oci/database_management/models/user.rb', line 89

def name
  @name
end

#oracle_maintainedString

Indicates whether the user was created and is maintained by Oracle-supplied scripts (such as catalog.sql or catproc.sql).

Returns:

  • (String)


161
162
163
# File 'lib/oci/database_management/models/user.rb', line 161

def oracle_maintained
  @oracle_maintained
end

#password_versionsString

The list of existing versions of the password hashes (also known as "verifiers") for the account.

Returns:

  • (String)


133
134
135
# File 'lib/oci/database_management/models/user.rb', line 133

def password_versions
  @password_versions
end

#profileString

[Required] The profile name of the user.

Returns:

  • (String)


121
122
123
# File 'lib/oci/database_management/models/user.rb', line 121

def profile
  @profile
end

#proxy_connectString

Indicates whether a user can connect directly (N) or whether the account can only be proxied (Y) by users who have proxy privileges for this account (that is, by users who have been granted the "connect through" privilege for this account).

Returns:

  • (String)


147
148
149
# File 'lib/oci/database_management/models/user.rb', line 147

def proxy_connect
  @proxy_connect
end

#statusString

[Required] The status of the user account.

Returns:

  • (String)


93
94
95
# File 'lib/oci/database_management/models/user.rb', line 93

def status
  @status
end

#temp_tablespaceString

[Required] The name of the default tablespace for temporary tables or the name of a tablespace group.

Returns:

  • (String)


109
110
111
# File 'lib/oci/database_management/models/user.rb', line 109

def temp_tablespace
  @temp_tablespace
end

#time_createdDateTime

[Required] The date and time the user was created.

Returns:

  • (DateTime)


117
118
119
# File 'lib/oci/database_management/models/user.rb', line 117

def time_created
  @time_created
end

#time_expiringDateTime

The date and time of the expiration of the user account.

Returns:

  • (DateTime)


101
102
103
# File 'lib/oci/database_management/models/user.rb', line 101

def time_expiring
  @time_expiring
end

#time_last_loginDateTime

The date and time of the last user login. This column is not populated when a user connects to the database with administrative privileges, that is, AS { SYSASM | SYSBACKUP | SYSDBA | SYSDG | SYSOPER | SYSRAC | SYSKM }.

Returns:

  • (DateTime)


157
158
159
# File 'lib/oci/database_management/models/user.rb', line 157

def 
  @time_last_login
end

#time_lockedDateTime

The date the account was locked, if the status of the account is LOCKED.

Returns:

  • (DateTime)


97
98
99
# File 'lib/oci/database_management/models/user.rb', line 97

def time_locked
  @time_locked
end

#time_password_changedDateTime

The date and time when the user password was last set. This column is populated only when the value of the AUTHENTICATION_TYPE column is PASSWORD. Otherwise, this column is null.

Returns:

  • (DateTime)


187
188
189
# File 'lib/oci/database_management/models/user.rb', line 187

def time_password_changed
  @time_password_changed
end

Class Method Details

.attribute_mapObject

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



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/oci/database_management/models/user.rb', line 190

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'name': :'name',
    'status': :'status',
    'time_locked': :'timeLocked',
    'time_expiring': :'timeExpiring',
    'default_tablespace': :'defaultTablespace',
    'temp_tablespace': :'tempTablespace',
    'local_temp_tablespace': :'localTempTablespace',
    'time_created': :'timeCreated',
    'profile': :'profile',
    'consumer_group': :'consumerGroup',
    'external_name': :'externalName',
    'password_versions': :'passwordVersions',
    'editions_enabled': :'editionsEnabled',
    'authentication': :'authentication',
    'proxy_connect': :'proxyConnect',
    'common': :'common',
    'time_last_login': :'timeLastLogin',
    'oracle_maintained': :'oracleMaintained',
    'inherited': :'inherited',
    'default_collation': :'defaultCollation',
    'implicit': :'implicit',
    'all_shared': :'allShared',
    'external_shared': :'externalShared',
    'time_password_changed': :'timePasswordChanged'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



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
250
251
# File 'lib/oci/database_management/models/user.rb', line 222

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'name': :'String',
    'status': :'String',
    'time_locked': :'DateTime',
    'time_expiring': :'DateTime',
    'default_tablespace': :'String',
    'temp_tablespace': :'String',
    'local_temp_tablespace': :'String',
    'time_created': :'DateTime',
    'profile': :'String',
    'consumer_group': :'String',
    'external_name': :'String',
    'password_versions': :'String',
    'editions_enabled': :'String',
    'authentication': :'String',
    'proxy_connect': :'String',
    'common': :'String',
    'time_last_login': :'DateTime',
    'oracle_maintained': :'String',
    'inherited': :'String',
    'default_collation': :'String',
    'implicit': :'String',
    'all_shared': :'String',
    'external_shared': :'String',
    'time_password_changed': :'DateTime'
    # 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



543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
# File 'lib/oci/database_management/models/user.rb', line 543

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

  self.class == other.class &&
    name == other.name &&
    status == other.status &&
    time_locked == other.time_locked &&
    time_expiring == other.time_expiring &&
    default_tablespace == other.default_tablespace &&
    temp_tablespace == other.temp_tablespace &&
    local_temp_tablespace == other.local_temp_tablespace &&
    time_created == other.time_created &&
    profile == other.profile &&
    consumer_group == other.consumer_group &&
    external_name == other.external_name &&
    password_versions == other.password_versions &&
    editions_enabled == other.editions_enabled &&
    authentication == other.authentication &&
    proxy_connect == other.proxy_connect &&
    common == other.common &&
     == other. &&
    oracle_maintained == other.oracle_maintained &&
    inherited == other.inherited &&
    default_collation == other.default_collation &&
    implicit == other.implicit &&
    all_shared == other.all_shared &&
    external_shared == other.external_shared &&
    time_password_changed == other.time_password_changed
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



596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
# File 'lib/oci/database_management/models/user.rb', line 596

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


576
577
578
# File 'lib/oci/database_management/models/user.rb', line 576

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



585
586
587
# File 'lib/oci/database_management/models/user.rb', line 585

def hash
  [name, status, time_locked, time_expiring, default_tablespace, temp_tablespace, local_temp_tablespace, time_created, profile, consumer_group, external_name, password_versions, editions_enabled, authentication, proxy_connect, common, , oracle_maintained, inherited, default_collation, implicit, all_shared, external_shared, time_password_changed].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



629
630
631
632
633
634
635
636
637
638
# File 'lib/oci/database_management/models/user.rb', line 629

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



623
624
625
# File 'lib/oci/database_management/models/user.rb', line 623

def to_s
  to_hash.to_s
end