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.



1065
1066
1067
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1065

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


1051
1052
1053
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1051

def enabled_providers
  @enabled_providers
end

#provider_configsArray<Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2ProviderConfig>

A list of usable second factors for this project along with their configurations. This field does not support phone based MFA, for that use the ' enabled_providers' field. Corresponds to the JSON property providerConfigs



1058
1059
1060
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1058

def provider_configs
  @provider_configs
end

#stateString

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

Returns:

  • (String)


1063
1064
1065
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1063

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1070
1071
1072
1073
1074
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1070

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