class Google::Apis::GmailV1::Filter

Resource definition for Gmail filters. Filters apply to specific messages instead of an entire email thread.

Attributes

action[RW]

A set of actions to perform on a message. Corresponds to the JSON property `action` @return [Google::Apis::GmailV1::FilterAction]

criteria[RW]

Message matching criteria. Corresponds to the JSON property `criteria` @return [Google::Apis::GmailV1::FilterCriteria]

id[RW]

The server assigned ID of the filter. Corresponds to the JSON property `id` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/gmail_v1/classes.rb, line 181
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 186
def update!(**args)
  @action = args[:action] if args.key?(:action)
  @criteria = args[:criteria] if args.key?(:criteria)
  @id = args[:id] if args.key?(:id)
end