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.



993
994
995
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 993

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


986
987
988
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 986

def enabled_providers
  @enabled_providers
end

#stateString

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

Returns:

  • (String)


991
992
993
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 991

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



998
999
1000
1001
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 998

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