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 Google Cloud 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.



641
642
643
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 641

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

Instance Attribute Details

#bodyString

Email body Corresponds to the JSON property body

Returns:

  • (String)


608
609
610
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 608

def body
  @body
end

#body_formatString

Email body format Corresponds to the JSON property bodyFormat

Returns:

  • (String)


613
614
615
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 613

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)


618
619
620
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 618

def customized
  @customized
end

#reply_toString

Reply-to address Corresponds to the JSON property replyTo

Returns:

  • (String)


624
625
626
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 624

def reply_to
  @reply_to
end

#sender_display_nameString

Sender display name Corresponds to the JSON property senderDisplayName

Returns:

  • (String)


629
630
631
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 629

def sender_display_name
  @sender_display_name
end

#sender_local_partString

Local part of From address Corresponds to the JSON property senderLocalPart

Returns:

  • (String)


634
635
636
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 634

def sender_local_part
  @sender_local_part
end

#subjectString

Subject of the email Corresponds to the JSON property subject

Returns:

  • (String)


639
640
641
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 639

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



646
647
648
649
650
651
652
653
654
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 646

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