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.



879
880
881
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 879

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


872
873
874
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 872

def enabled_providers
  @enabled_providers
end

#stateString

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

Returns:

  • (String)


877
878
879
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 877

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



884
885
886
887
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 884

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