class Google::Apis::GmailV1::BatchModifyMessagesRequest

Attributes

add_label_ids[RW]

A list of label IDs to add to messages. Corresponds to the JSON property `addLabelIds` @return [Array<String>]

ids[RW]

The IDs of the messages to modify. There is a limit of 1000 ids per request. Corresponds to the JSON property `ids` @return [Array<String>]

remove_label_ids[RW]

A list of label IDs to remove from messages. 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 96
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 101
def update!(**args)
  @add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
  @ids = args[:ids] if args.key?(:ids)
  @remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
end