Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2NotificationConfig

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

Configuration related to sending notifications to users.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2NotificationConfig

Returns a new instance of GoogleCloudIdentitytoolkitAdminV2NotificationConfig.



1016
1017
1018
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1016

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

Instance Attribute Details

#default_localeString

Default locale used for email and SMS in IETF BCP 47 format. Corresponds to the JSON property defaultLocale

Returns:

  • (String)


1004
1005
1006
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1004

def default_locale
  @default_locale
end

#send_emailGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SendEmail

Options for email sending. Corresponds to the JSON property sendEmail



1009
1010
1011
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1009

def send_email
  @send_email
end

#send_smsGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SendSms

Options for SMS sending. Corresponds to the JSON property sendSms



1014
1015
1016
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1014

def send_sms
  @send_sms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1021
1022
1023
1024
1025
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1021

def update!(**args)
  @default_locale = args[:default_locale] if args.key?(:default_locale)
  @send_email = args[:send_email] if args.key?(:send_email)
  @send_sms = args[:send_sms] if args.key?(:send_sms)
end