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.



957
958
959
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 957

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>)


950
951
952
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 950

def enabled_providers
  @enabled_providers
end

#stateString

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

Returns:

  • (String)


955
956
957
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 955

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



962
963
964
965
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 962

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