Class: Google::Apis::GmailV1::Delegate

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

Overview

Settings for a delegate. Delegates can read, send, and delete messages, as well as view and add contacts, for the delegator's account. See "Set up mail delegation" for more information about delegates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Delegate

Returns a new instance of Delegate.



125
126
127
# File 'generated/google/apis/gmail_v1/classes.rb', line 125

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

Instance Attribute Details

#delegate_emailString

The email address of the delegate. Corresponds to the JSON property delegateEmail

Returns:

  • (String)


117
118
119
# File 'generated/google/apis/gmail_v1/classes.rb', line 117

def delegate_email
  @delegate_email
end

#verification_statusString

Indicates whether this address has been verified and can act as a delegate for the account. Read-only. Corresponds to the JSON property verificationStatus

Returns:

  • (String)


123
124
125
# File 'generated/google/apis/gmail_v1/classes.rb', line 123

def verification_status
  @verification_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



130
131
132
133
# File 'generated/google/apis/gmail_v1/classes.rb', line 130

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