Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailTemplate

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

Email template. The subject and body fields can contain the following placeholders which will be replaced with the appropriate values: %LINK% - The link to use to redeem the send OOB code. %EMAIL% - The email where the email is being sent. %NEW_EMAIL% - The new email being set for the account (when applicable). %APP_NAME% - The GCP project's display name. %DISPLAY_NAME% - The user's display name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2EmailTemplate

Returns a new instance of GoogleCloudIdentitytoolkitAdminV2EmailTemplate.



576
577
578
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 576

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

Instance Attribute Details

#bodyString

Email body Corresponds to the JSON property body

Returns:

  • (String)


543
544
545
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 543

def body
  @body
end

#body_formatString

Email body format Corresponds to the JSON property bodyFormat

Returns:

  • (String)


548
549
550
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 548

def body_format
  @body_format
end

#customizedBoolean Also known as: customized?

Output only. Whether the body or subject of the email is customized. Corresponds to the JSON property customized

Returns:

  • (Boolean)


553
554
555
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 553

def customized
  @customized
end

#reply_toString

Reply-to address Corresponds to the JSON property replyTo

Returns:

  • (String)


559
560
561
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 559

def reply_to
  @reply_to
end

#sender_display_nameString

Sender display name Corresponds to the JSON property senderDisplayName

Returns:

  • (String)


564
565
566
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 564

def sender_display_name
  @sender_display_name
end

#sender_local_partString

Local part of From address Corresponds to the JSON property senderLocalPart

Returns:

  • (String)


569
570
571
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 569

def sender_local_part
  @sender_local_part
end

#subjectString

Subject of the email Corresponds to the JSON property subject

Returns:

  • (String)


574
575
576
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 574

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



581
582
583
584
585
586
587
588
589
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 581

def update!(**args)
  @body = args[:body] if args.key?(:body)
  @body_format = args[:body_format] if args.key?(:body_format)
  @customized = args[:customized] if args.key?(:customized)
  @reply_to = args[:reply_to] if args.key?(:reply_to)
  @sender_display_name = args[:sender_display_name] if args.key?(:sender_display_name)
  @sender_local_part = args[:sender_local_part] if args.key?(:sender_local_part)
  @subject = args[:subject] if args.key?(:subject)
end