Class: Google::Apis::DomainsV1alpha2::EmailForwarding

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/domains_v1alpha2/classes.rb,
lib/google/apis/domains_v1alpha2/representations.rb,
lib/google/apis/domains_v1alpha2/representations.rb

Overview

Email forwarding configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EmailForwarding

Returns a new instance of EmailForwarding.



636
637
638
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 636

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

Instance Attribute Details

#aliasString

An alias recipient email that forwards emails to the target_email_address. For example, admin@example.com or *@example.com (wildcard alias forwards all the emails under the registered domain). Corresponds to the JSON property alias

Returns:

  • (String)


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

def alias
  @alias
end

#target_email_addressString

Target email that receives emails sent to the alias. Corresponds to the JSON property targetEmailAddress

Returns:

  • (String)


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

def target_email_address
  @target_email_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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