Class: OCI::DataSafe::Models::Profile

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

Overview

The comprehensive information about the user profiles available on a given target. It includes details such as profile name, failed login attempts, password reuse time, password verification function, password verification function implementation code snippet, sessions per user, connect time inactive account time, password lock time, cpu usage per session, target id, and compartment id.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Profile

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



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

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

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

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

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

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

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

  self.user_count = attributes[:'userCount'] if attributes[:'userCount']

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

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

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

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

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

  self.password_verification_function = attributes[:'passwordVerificationFunction'] if attributes[:'passwordVerificationFunction']

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

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

  self.password_verification_function_details = attributes[:'passwordVerificationFunctionDetails'] if attributes[:'passwordVerificationFunctionDetails']

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

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

  self.password_lock_time = attributes[:'passwordLockTime'] if attributes[:'passwordLockTime']

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

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

  self.password_life_time = attributes[:'passwordLifeTime'] if attributes[:'passwordLifeTime']

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

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

  self.password_reuse_max = attributes[:'passwordReuseMax'] if attributes[:'passwordReuseMax']

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

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

  self.password_reuse_time = attributes[:'passwordReuseTime'] if attributes[:'passwordReuseTime']

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

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

  self.password_rollover_time = attributes[:'passwordRolloverTime'] if attributes[:'passwordRolloverTime']

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

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

  self.password_grace_time = attributes[:'passwordGraceTime'] if attributes[:'passwordGraceTime']

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

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

  self.is_user_created = attributes[:'isUserCreated'] unless attributes[:'isUserCreated'].nil?

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

  self.is_user_created = attributes[:'is_user_created'] unless attributes[:'is_user_created'].nil?

  self.sessions_per_user = attributes[:'sessionsPerUser'] if attributes[:'sessionsPerUser']

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

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

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

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

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

  self.connect_time = attributes[:'connectTime'] if attributes[:'connectTime']

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

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

  self.idle_time = attributes[:'idleTime'] if attributes[:'idleTime']

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

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

  self.composite_limit = attributes[:'compositeLimit'] if attributes[:'compositeLimit']

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

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

  self.cpu_per_call = attributes[:'cpuPerCall'] if attributes[:'cpuPerCall']

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

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

  self.cpu_per_session = attributes[:'cpuPerSession'] if attributes[:'cpuPerSession']

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

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

  self.logical_reads_per_call = attributes[:'logicalReadsPerCall'] if attributes[:'logicalReadsPerCall']

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

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

  self.logical_reads_per_session = attributes[:'logicalReadsPerSession'] if attributes[:'logicalReadsPerSession']

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

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

  self.private_sga = attributes[:'privateSga'] if attributes[:'privateSga']

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

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

  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

#compartment_idString

The OCID of the compartment that contains the user assessment.

Returns:

  • (String)


21
22
23
# File 'lib/oci/data_safe/models/profile.rb', line 21

def compartment_id
  @compartment_id
end

#composite_limitString

Specify the total resource cost for a session, expressed in service units. Oracle Database calculates the total service units as a weighted sum of CPU_PER_SESSION, CONNECT_TIME, LOGICAL_READS_PER_SESSION, and PRIVATE_SGA.

Returns:

  • (String)


97
98
99
# File 'lib/oci/data_safe/models/profile.rb', line 97

def composite_limit
  @composite_limit
end

#connect_timeString

Specify the total elapsed time limit for a session, expressed in minutes.

Returns:

  • (String)


87
88
89
# File 'lib/oci/data_safe/models/profile.rb', line 87

def connect_time
  @connect_time
end

#cpu_per_callString

Specify the CPU time limit for a call (a parse, execute, or fetch), expressed in hundredths of seconds.

Returns:

  • (String)


101
102
103
# File 'lib/oci/data_safe/models/profile.rb', line 101

def cpu_per_call
  @cpu_per_call
end

#cpu_per_sessionString

Specify the CPU time limit for a session, expressed in hundredth of seconds.

Returns:

  • (String)


105
106
107
# File 'lib/oci/data_safe/models/profile.rb', line 105

def cpu_per_session
  @cpu_per_session
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>>)


133
134
135
# File 'lib/oci/data_safe/models/profile.rb', line 133

def defined_tags
  @defined_tags
end

#failed_login_attemptsString

Maximum times the user is allowed in fail login before the user account is locked.

Returns:

  • (String)


37
38
39
# File 'lib/oci/data_safe/models/profile.rb', line 37

def 
  @failed_login_attempts
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>)


126
127
128
# File 'lib/oci/data_safe/models/profile.rb', line 126

def freeform_tags
  @freeform_tags
end

#idle_timeString

Specify the permitted periods of continuous inactive time during a session, expressed in minutes.

Returns:

  • (String)


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

def idle_time
  @idle_time
end

#inactive_account_timeString

The permitted periods of continuous inactive time during a session, expressed in minutes. Long-running queries and other operations are not subject to this limit.

Returns:

  • (String)


83
84
85
# File 'lib/oci/data_safe/models/profile.rb', line 83

def 
  @inactive_account_time
end

#is_user_createdBOOLEAN

Represents if the profile is created by user.

Returns:

  • (BOOLEAN)


73
74
75
# File 'lib/oci/data_safe/models/profile.rb', line 73

def is_user_created
  @is_user_created
end

#logical_reads_per_callString

Specify the permitted the number of data blocks read for a call to process a SQL statement (a parse, execute, or fetch).

Returns:

  • (String)


109
110
111
# File 'lib/oci/data_safe/models/profile.rb', line 109

def logical_reads_per_call
  @logical_reads_per_call
end

#logical_reads_per_sessionString

Specify the permitted number of data blocks read in a session, including blocks read from memory and disk.

Returns:

  • (String)


113
114
115
# File 'lib/oci/data_safe/models/profile.rb', line 113

def logical_reads_per_session
  @logical_reads_per_session
end

#password_grace_timeString

Number of grace days for user to change password.

Returns:

  • (String)


69
70
71
# File 'lib/oci/data_safe/models/profile.rb', line 69

def password_grace_time
  @password_grace_time
end

#password_life_timeString

Number of days the password is valid before expiry.

Returns:

  • (String)


53
54
55
# File 'lib/oci/data_safe/models/profile.rb', line 53

def password_life_time
  @password_life_time
end

#password_lock_timeString

Number of days the user account remains locked after failed login.

Returns:

  • (String)


49
50
51
# File 'lib/oci/data_safe/models/profile.rb', line 49

def password_lock_time
  @password_lock_time
end

#password_reuse_maxString

Number of day after the user can use the already used password.

Returns:

  • (String)


57
58
59
# File 'lib/oci/data_safe/models/profile.rb', line 57

def password_reuse_max
  @password_reuse_max
end

#password_reuse_timeString

Number of days before which a password cannot be reused.

Returns:

  • (String)


61
62
63
# File 'lib/oci/data_safe/models/profile.rb', line 61

def password_reuse_time
  @password_reuse_time
end

#password_rollover_timeString

Number of days the password rollover is allowed. Minimum value can be 1/24 day (1 hour) to 60 days.

Returns:

  • (String)


65
66
67
# File 'lib/oci/data_safe/models/profile.rb', line 65

def password_rollover_time
  @password_rollover_time
end

#password_verification_functionString

Name of the PL/SQL that can be used for password verification.

Returns:

  • (String)


41
42
43
# File 'lib/oci/data_safe/models/profile.rb', line 41

def password_verification_function
  @password_verification_function
end

#password_verification_function_detailsString

Details about the PL/SQL that can be used for password verification.

Returns:

  • (String)


45
46
47
# File 'lib/oci/data_safe/models/profile.rb', line 45

def password_verification_function_details
  @password_verification_function_details
end

#private_sgaString

Specify the amount of private space a session can allocate in the shared pool of the system global area (SGA), expressed in bytes.

Returns:

  • (String)


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

def private_sga
  @private_sga
end

#profile_nameString

[Required] The name of the profile.

Returns:

  • (String)


29
30
31
# File 'lib/oci/data_safe/models/profile.rb', line 29

def profile_name
  @profile_name
end

#sessions_per_userString

Specify the number of concurrent sessions to which you want to limit the user.

Returns:

  • (String)


77
78
79
# File 'lib/oci/data_safe/models/profile.rb', line 77

def sessions_per_user
  @sessions_per_user
end

#target_idString

The OCID of the target database.

Returns:

  • (String)


25
26
27
# File 'lib/oci/data_safe/models/profile.rb', line 25

def target_id
  @target_id
end

#user_assessment_idString

[Required] The OCID of the user assessment corresponding to the target under consideration.

Returns:

  • (String)


17
18
19
# File 'lib/oci/data_safe/models/profile.rb', line 17

def user_assessment_id
  @user_assessment_id
end

#user_countInteger

The number of users that have a given profile.

Returns:

  • (Integer)


33
34
35
# File 'lib/oci/data_safe/models/profile.rb', line 33

def user_count
  @user_count
end

Class Method Details

.attribute_mapObject

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



136
137
138
139
140
141
142
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
# File 'lib/oci/data_safe/models/profile.rb', line 136

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'user_assessment_id': :'userAssessmentId',
    'compartment_id': :'compartmentId',
    'target_id': :'targetId',
    'profile_name': :'profileName',
    'user_count': :'userCount',
    'failed_login_attempts': :'failedLoginAttempts',
    'password_verification_function': :'passwordVerificationFunction',
    'password_verification_function_details': :'passwordVerificationFunctionDetails',
    'password_lock_time': :'passwordLockTime',
    'password_life_time': :'passwordLifeTime',
    'password_reuse_max': :'passwordReuseMax',
    'password_reuse_time': :'passwordReuseTime',
    'password_rollover_time': :'passwordRolloverTime',
    'password_grace_time': :'passwordGraceTime',
    'is_user_created': :'isUserCreated',
    'sessions_per_user': :'sessionsPerUser',
    'inactive_account_time': :'inactiveAccountTime',
    'connect_time': :'connectTime',
    'idle_time': :'idleTime',
    'composite_limit': :'compositeLimit',
    'cpu_per_call': :'cpuPerCall',
    'cpu_per_session': :'cpuPerSession',
    'logical_reads_per_call': :'logicalReadsPerCall',
    'logical_reads_per_session': :'logicalReadsPerSession',
    'private_sga': :'privateSga',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/oci/data_safe/models/profile.rb', line 171

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'user_assessment_id': :'String',
    'compartment_id': :'String',
    'target_id': :'String',
    'profile_name': :'String',
    'user_count': :'Integer',
    'failed_login_attempts': :'String',
    'password_verification_function': :'String',
    'password_verification_function_details': :'String',
    'password_lock_time': :'String',
    'password_life_time': :'String',
    'password_reuse_max': :'String',
    'password_reuse_time': :'String',
    'password_rollover_time': :'String',
    'password_grace_time': :'String',
    'is_user_created': :'BOOLEAN',
    'sessions_per_user': :'String',
    'inactive_account_time': :'String',
    'connect_time': :'String',
    'idle_time': :'String',
    'composite_limit': :'String',
    'cpu_per_call': :'String',
    'cpu_per_session': :'String',
    'logical_reads_per_call': :'String',
    'logical_reads_per_session': :'String',
    'private_sga': :'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



414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
# File 'lib/oci/data_safe/models/profile.rb', line 414

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

  self.class == other.class &&
    user_assessment_id == other.user_assessment_id &&
    compartment_id == other.compartment_id &&
    target_id == other.target_id &&
    profile_name == other.profile_name &&
    user_count == other.user_count &&
     == other. &&
    password_verification_function == other.password_verification_function &&
    password_verification_function_details == other.password_verification_function_details &&
    password_lock_time == other.password_lock_time &&
    password_life_time == other.password_life_time &&
    password_reuse_max == other.password_reuse_max &&
    password_reuse_time == other.password_reuse_time &&
    password_rollover_time == other.password_rollover_time &&
    password_grace_time == other.password_grace_time &&
    is_user_created == other.is_user_created &&
    sessions_per_user == other.sessions_per_user &&
     == other. &&
    connect_time == other.connect_time &&
    idle_time == other.idle_time &&
    composite_limit == other.composite_limit &&
    cpu_per_call == other.cpu_per_call &&
    cpu_per_session == other.cpu_per_session &&
    logical_reads_per_call == other.logical_reads_per_call &&
    logical_reads_per_session == other.logical_reads_per_session &&
    private_sga == other.private_sga &&
    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



470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
# File 'lib/oci/data_safe/models/profile.rb', line 470

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


450
451
452
# File 'lib/oci/data_safe/models/profile.rb', line 450

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



459
460
461
# File 'lib/oci/data_safe/models/profile.rb', line 459

def hash
  [user_assessment_id, compartment_id, target_id, profile_name, user_count, , password_verification_function, password_verification_function_details, password_lock_time, password_life_time, password_reuse_max, password_reuse_time, password_rollover_time, password_grace_time, is_user_created, sessions_per_user, , connect_time, idle_time, composite_limit, cpu_per_call, cpu_per_session, logical_reads_per_call, logical_reads_per_session, private_sga, 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



503
504
505
506
507
508
509
510
511
512
# File 'lib/oci/data_safe/models/profile.rb', line 503

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



497
498
499
# File 'lib/oci/data_safe/models/profile.rb', line 497

def to_s
  to_hash.to_s
end