Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/identitytoolkit_v2/classes.rb,
lib/google/apis/identitytoolkit_v2/representations.rb,
lib/google/apis/identitytoolkit_v2/representations.rb

Overview

Options related to MultiFactor Authentication for the project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig

Returns a new instance of GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig.



905
906
907
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 905

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enabled_providersArray<String>

A list of usable second factors for this project. Corresponds to the JSON property enabledProviders

Returns:

  • (Array<String>)


898
899
900
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 898

def enabled_providers
  @enabled_providers
end

#stateString

Whether MultiFactor Authentication has been enabled for this project. Corresponds to the JSON property state

Returns:

  • (String)


903
904
905
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 903

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



910
911
912
913
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 910

def update!(**args)
  @enabled_providers = args[:enabled_providers] if args.key?(:enabled_providers)
  @state = args[:state] if args.key?(:state)
end