Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SendSms

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 for SMS sending.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2SendSms

Returns a new instance of GoogleCloudIdentitytoolkitAdminV2SendSms.



1365
1366
1367
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1365

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

Instance Attribute Details

#sms_templateGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsTemplate

The template to use when sending an SMS. Corresponds to the JSON property smsTemplate



1357
1358
1359
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1357

def sms_template
  @sms_template
end

#use_device_localeBoolean Also known as: use_device_locale?

Whether to use the accept_language header for SMS. Corresponds to the JSON property useDeviceLocale

Returns:

  • (Boolean)


1362
1363
1364
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1362

def use_device_locale
  @use_device_locale
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1370
1371
1372
1373
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1370

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