Class: OCI::IdentityDomains::Models::MyAuthenticationFactorInitiator

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/identity_domains/models/my_authentication_factor_initiator.rb

Overview

This schema defines the attributes of Initiator call.

Constant Summary collapse

IDCS_PREVENTED_OPERATIONS_ENUM =
[
  IDCS_PREVENTED_OPERATIONS_REPLACE = 'replace'.freeze,
  IDCS_PREVENTED_OPERATIONS_UPDATE = 'update'.freeze,
  IDCS_PREVENTED_OPERATIONS_DELETE = 'delete'.freeze,
  IDCS_PREVENTED_OPERATIONS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
AUTH_FACTOR_ENUM =
[
  AUTH_FACTOR_EMAIL = 'EMAIL'.freeze,
  AUTH_FACTOR_TOTP = 'TOTP'.freeze,
  AUTH_FACTOR_PUSH = 'PUSH'.freeze,
  AUTH_FACTOR_SMS = 'SMS'.freeze,
  AUTH_FACTOR_VOICE = 'VOICE'.freeze,
  AUTH_FACTOR_PHONE_CALL = 'PHONE_CALL'.freeze,
  AUTH_FACTOR_THIRDPARTY = 'THIRDPARTY'.freeze,
  AUTH_FACTOR_FIDO_AUTHENTICATOR = 'FIDO_AUTHENTICATOR'.freeze,
  AUTH_FACTOR_YUBICO_OTP = 'YUBICO_OTP'.freeze,
  AUTH_FACTOR_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
TYPE_ENUM =
[
  TYPE_SAML = 'SAML'.freeze,
  TYPE_OIDC = 'OIDC'.freeze,
  TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
SCENARIO_ENUM =
[
  SCENARIO_ENROLLMENT = 'ENROLLMENT'.freeze,
  SCENARIO_AUTHENTICATION = 'AUTHENTICATION'.freeze,
  SCENARIO_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
PREFERENCE_TYPE_ENUM =
[
  PREFERENCE_TYPE_PASSWORDLESS = 'PASSWORDLESS'.freeze,
  PREFERENCE_TYPE_MFA = 'MFA'.freeze,
  PREFERENCE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ MyAuthenticationFactorInitiator

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



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
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 414

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

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

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

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

  self.idcs_created_by = attributes[:'idcsCreatedBy'] if attributes[:'idcsCreatedBy']

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

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

  self.idcs_last_modified_by = attributes[:'idcsLastModifiedBy'] if attributes[:'idcsLastModifiedBy']

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

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

  self.idcs_prevented_operations = attributes[:'idcsPreventedOperations'] if attributes[:'idcsPreventedOperations']

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

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

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

  self.delete_in_progress = attributes[:'deleteInProgress'] unless attributes[:'deleteInProgress'].nil?

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

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

  self.idcs_last_upgraded_in_release = attributes[:'idcsLastUpgradedInRelease'] if attributes[:'idcsLastUpgradedInRelease']

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

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

  self.domain_ocid = attributes[:'domainOcid'] if attributes[:'domainOcid']

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

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

  self.compartment_ocid = attributes[:'compartmentOcid'] if attributes[:'compartmentOcid']

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

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

  self.tenancy_ocid = attributes[:'tenancyOcid'] if attributes[:'tenancyOcid']

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

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

  self.auth_factor = attributes[:'authFactor'] if attributes[:'authFactor']

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

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

  self.device_id = attributes[:'deviceId'] if attributes[:'deviceId']

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

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

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

  self.request_id = attributes[:'requestId'] if attributes[:'requestId']

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

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

  self.user_name = attributes[:'userName'] if attributes[:'userName']

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

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

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

  self.third_party_factor = attributes[:'thirdPartyFactor'] if attributes[:'thirdPartyFactor']

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

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

  self.preference_type = attributes[:'preferenceType'] if attributes[:'preferenceType']

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

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

  self.additional_attributes = attributes[:'additionalAttributes'] if attributes[:'additionalAttributes']

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

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

  self.is_acc_rec_enabled = attributes[:'isAccRecEnabled'] unless attributes[:'isAccRecEnabled'].nil?

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

  self.is_acc_rec_enabled = attributes[:'is_acc_rec_enabled'] unless attributes[:'is_acc_rec_enabled'].nil?
end

Instance Attribute Details

#additional_attributesArray<OCI::IdentityDomains::Models::MyAuthenticationFactorInitiatorAdditionalAttributes>

Additional attributes which will be sent as part of a push notification

SCIM++ Properties: - idcsSearchable: false - multiValued: true - mutability: readWrite - required: false - returned: default - type: complex - uniqueness: none



307
308
309
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 307

def additional_attributes
  @additional_attributes
end

#auth_factorString

[Required] Auth Factor represents the type of multi-factor authentication channel for which the request has been initiated.

SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readWrite - required: true - returned: default - type: string - uniqueness: none

Returns:

  • (String)


209
210
211
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 209

def auth_factor
  @auth_factor
end

#compartment_ocidString

OCI Compartment Id (ocid) in which the resource lives.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


182
183
184
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 182

def compartment_ocid
  @compartment_ocid
end

#delete_in_progressBOOLEAN

A boolean flag indicating this resource in the process of being deleted. Usually set to true when synchronous deletion of the resource would take too long.

SCIM++ Properties: - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: default - type: boolean - uniqueness: none

Returns:

  • (BOOLEAN)


140
141
142
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 140

def delete_in_progress
  @delete_in_progress
end

#device_idString

[Required] Enrolled Device id on which the multi factor has been initiated.

SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readWrite - required: true - returned: default - type: string - uniqueness: none

Returns:

  • (String)


223
224
225
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 223

def device_id
  @device_id
end

#domain_ocidString

OCI Domain Id (ocid) in which the resource lives.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


168
169
170
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 168

def domain_ocid
  @domain_ocid
end

#idString

Unique identifier for the SCIM Resource as defined by the Service Provider. Each representation of the Resource MUST include a non-empty id value. This identifier MUST be unique across the Service Provider's entire set of Resources. It MUST be a stable, non-reassignable identifier that does not change when the same Resource is returned in subsequent requests. The value of the id attribute is always issued by the Service Provider and MUST never be specified by the Service Consumer. bulkId: is a reserved keyword and MUST NOT be used in the unique identifier.

SCIM++ Properties: - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: always - type: string - uniqueness: global

Returns:

  • (String)


62
63
64
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 62

def id
  @id
end

#idcs_created_byOCI::IdentityDomains::Models::IdcsCreatedBy



96
97
98
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 96

def idcs_created_by
  @idcs_created_by
end

#idcs_last_modified_byOCI::IdentityDomains::Models::IdcsLastModifiedBy



99
100
101
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 99

def idcs_last_modified_by
  @idcs_last_modified_by
end

#idcs_last_upgraded_in_releaseString

The release number when the resource was upgraded.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none

Returns:

  • (String)


154
155
156
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 154

def idcs_last_upgraded_in_release
  @idcs_last_upgraded_in_release
end

#idcs_prevented_operationsArray<String>

Each value of this attribute specifies an operation that only an internal client may perform on this particular resource.

SCIM++ Properties: - idcsSearchable: false - multiValued: true - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none

Returns:

  • (Array<String>)


112
113
114
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 112

def idcs_prevented_operations
  @idcs_prevented_operations
end

#is_acc_rec_enabledBOOLEAN

Flag indicates whether the device is enrolled in account recovery

SCIM++ Properties: - caseExact: true - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none

Returns:

  • (BOOLEAN)


321
322
323
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 321

def is_acc_rec_enabled
  @is_acc_rec_enabled
end

#metaOCI::IdentityDomains::Models::Meta



93
94
95
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 93

def meta
  @meta
end

#ocidString

Unique OCI identifier for the SCIM Resource.

SCIM++ Properties: - caseExact: true - idcsSearchable: true - multiValued: false - mutability: immutable - required: false - returned: default - type: string - uniqueness: global

Returns:

  • (String)


76
77
78
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 76

def ocid
  @ocid
end

#preference_typeString

Indicates whether to user passwordless factor to be updated or mfa factor to be updated

SCIM++ Properties: - type: string - multiValued: false - required: false - mutability: writeOnly - returned: never - uniqueness: none

Returns:

  • (String)


294
295
296
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 294

def preference_type
  @preference_type
end

#request_idString

Unique RequestId generated for each initiator request.

SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


251
252
253
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 251

def request_id
  @request_id
end

#scenarioString

Specifies the scenario to initiate.

SCIM++ Properties: - type: string - multiValued: false - required: false - mutability: readWrite - returned: default - uniqueness: none - idcsSearchable: false

Returns:

  • (String)


279
280
281
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 279

def scenario
  @scenario
end

#schemasArray<String>

[Required] REQUIRED. The schemas attribute is an array of Strings which allows introspection of the supported schema version for a SCIM representation as well any schema extensions supported by that representation. Each String value must be a unique URI. This specification defines URIs for User, Group, and a standard \“enterprise\” extension. All representations of SCIM schema MUST include a non-zero value array with value(s) of the URIs supported by that representation. Duplicate values MUST NOT be included. Value order is not specified and MUST not impact behavior.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: true - mutability: readWrite - required: true - returned: default - type: string - uniqueness: none

Returns:

  • (Array<String>)


90
91
92
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 90

def schemas
  @schemas
end

#tagsArray<OCI::IdentityDomains::Models::Tags>

A list of tags on this resource.

SCIM++ Properties: - idcsCompositeKey: [key, value] - idcsSearchable: true - multiValued: true - mutability: readWrite - required: false - returned: request - type: complex - uniqueness: none



126
127
128
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 126

def tags
  @tags
end

#tenancy_ocidString

OCI Tenant Id (ocid) in which the resource lives.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


196
197
198
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 196

def tenancy_ocid
  @tenancy_ocid
end

#third_party_factorOCI::IdentityDomains::Models::MyAuthenticationFactorInitiatorThirdPartyFactor



282
283
284
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 282

def third_party_factor
  @third_party_factor
end

#typeString

Authentication flow type either SAML / OIDC

SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none

Returns:

  • (String)


237
238
239
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 237

def type
  @type
end

#user_nameString

Name of the user who initiates the request.

SCIM++ Properties: - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none - idcsPii: true

Returns:

  • (String)


266
267
268
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 266

def user_name
  @user_name
end

Class Method Details

.attribute_mapObject

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



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
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 324

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'ocid': :'ocid',
    'schemas': :'schemas',
    'meta': :'meta',
    'idcs_created_by': :'idcsCreatedBy',
    'idcs_last_modified_by': :'idcsLastModifiedBy',
    'idcs_prevented_operations': :'idcsPreventedOperations',
    'tags': :'tags',
    'delete_in_progress': :'deleteInProgress',
    'idcs_last_upgraded_in_release': :'idcsLastUpgradedInRelease',
    'domain_ocid': :'domainOcid',
    'compartment_ocid': :'compartmentOcid',
    'tenancy_ocid': :'tenancyOcid',
    'auth_factor': :'authFactor',
    'device_id': :'deviceId',
    'type': :'type',
    'request_id': :'requestId',
    'user_name': :'userName',
    'scenario': :'scenario',
    'third_party_factor': :'thirdPartyFactor',
    'preference_type': :'preferenceType',
    'additional_attributes': :'additionalAttributes',
    'is_acc_rec_enabled': :'isAccRecEnabled'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



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
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 355

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'ocid': :'String',
    'schemas': :'Array<String>',
    'meta': :'OCI::IdentityDomains::Models::Meta',
    'idcs_created_by': :'OCI::IdentityDomains::Models::IdcsCreatedBy',
    'idcs_last_modified_by': :'OCI::IdentityDomains::Models::IdcsLastModifiedBy',
    'idcs_prevented_operations': :'Array<String>',
    'tags': :'Array<OCI::IdentityDomains::Models::Tags>',
    'delete_in_progress': :'BOOLEAN',
    'idcs_last_upgraded_in_release': :'String',
    'domain_ocid': :'String',
    'compartment_ocid': :'String',
    'tenancy_ocid': :'String',
    'auth_factor': :'String',
    'device_id': :'String',
    'type': :'String',
    'request_id': :'String',
    'user_name': :'String',
    'scenario': :'String',
    'third_party_factor': :'OCI::IdentityDomains::Models::MyAuthenticationFactorInitiatorThirdPartyFactor',
    'preference_type': :'String',
    'additional_attributes': :'Array<OCI::IdentityDomains::Models::MyAuthenticationFactorInitiatorAdditionalAttributes>',
    'is_acc_rec_enabled': :'BOOLEAN'
    # 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



610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 610

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

  self.class == other.class &&
    id == other.id &&
    ocid == other.ocid &&
    schemas == other.schemas &&
    meta == other.meta &&
    idcs_created_by == other.idcs_created_by &&
    idcs_last_modified_by == other.idcs_last_modified_by &&
    idcs_prevented_operations == other.idcs_prevented_operations &&
    tags == other.tags &&
    delete_in_progress == other.delete_in_progress &&
    idcs_last_upgraded_in_release == other.idcs_last_upgraded_in_release &&
    domain_ocid == other.domain_ocid &&
    compartment_ocid == other.compartment_ocid &&
    tenancy_ocid == other.tenancy_ocid &&
    auth_factor == other.auth_factor &&
    device_id == other.device_id &&
    type == other.type &&
    request_id == other.request_id &&
    user_name == other.user_name &&
    scenario == other.scenario &&
    third_party_factor == other.third_party_factor &&
    preference_type == other.preference_type &&
    additional_attributes == other.additional_attributes &&
    is_acc_rec_enabled == other.is_acc_rec_enabled
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



662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 662

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


642
643
644
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 642

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



651
652
653
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 651

def hash
  [id, ocid, schemas, meta, idcs_created_by, idcs_last_modified_by, idcs_prevented_operations, tags, delete_in_progress, idcs_last_upgraded_in_release, domain_ocid, compartment_ocid, tenancy_ocid, auth_factor, device_id, type, request_id, user_name, scenario, third_party_factor, preference_type, additional_attributes, is_acc_rec_enabled].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



695
696
697
698
699
700
701
702
703
704
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 695

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



689
690
691
# File 'lib/oci/identity_domains/models/my_authentication_factor_initiator.rb', line 689

def to_s
  to_hash.to_s
end