class Google::Apis::GmailV1::FilterAction

A set of actions to perform on a message.

Attributes

add_label_ids[RW]

List of labels to add to the message. Corresponds to the JSON property `addLabelIds` @return [Array<String>]

forward[RW]

Email address that the message should be forwarded to. Corresponds to the JSON property `forward` @return [String]

remove_label_ids[RW]

List of labels to remove from the message. Corresponds to the JSON property `removeLabelIds` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/gmail_v1/classes.rb, line 212
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gmail_v1/classes.rb, line 217
def update!(**args)
  @add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
  @forward = args[:forward] if args.key?(:forward)
  @remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
end