Class: Google::Apis::DomainsV1alpha2::EmailForwarding
- Inherits:
-
Object
- Object
- Google::Apis::DomainsV1alpha2::EmailForwarding
- 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
-
#alias ⇒ String
An alias recipient email that forwards emails to the
target_email_address
. -
#target_email_address ⇒ String
Target email that receives emails sent to the
alias
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EmailForwarding
constructor
A new instance of EmailForwarding.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#alias ⇒ String
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
629 630 631 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 629 def alias @alias end |
#target_email_address ⇒ String
Target email that receives emails sent to the alias
.
Corresponds to the JSON property targetEmailAddress
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 |