class Google::Apis::GmailV1::WatchResponse
Push notification watch response.
Attributes
expiration[RW]
When Gmail will stop sending notifications for mailbox updates (epoch millis). Call `watch` again before this time to renew the watch. Corresponds to the JSON property `expiration` @return [Fixnum]
history_id[RW]
The ID of the mailbox's current history record. Corresponds to the JSON property `historyId` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/gmail_v1/classes.rb, line 1604 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 1609 def update!(**args) @expiration = args[:expiration] if args.key?(:expiration) @history_id = args[:history_id] if args.key?(:history_id) end