class Google::Apis::AdminDirectoryV1::Notification
Template for a notification resource.
Attributes
Body of the notification (Read-only) Corresponds to the JSON property `body` @return [String]
ETag of the resource. Corresponds to the JSON property `etag` @return [String]
Address from which the notification is received (Read-only) Corresponds to the JSON property `fromAddress` @return [String]
Boolean indicating whether the notification is unread or not. Corresponds to the JSON property `isUnread` @return [Boolean]
Boolean indicating whether the notification is unread or not. Corresponds to the JSON property `isUnread` @return [Boolean]
The type of the resource. Corresponds to the JSON property `kind` @return [String]
Corresponds to the JSON property `notificationId` @return [String]
Time at which notification was sent (Read-only) Corresponds to the JSON property `sendTime` @return [DateTime]
Subject of the notification (Read-only) Corresponds to the JSON property `subject` @return [String]
Public Class Methods
# File generated/google/apis/admin_directory_v1/classes.rb, line 1476 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/admin_directory_v1/classes.rb, line 1481 def update!(**args) @body = args[:body] if args.key?(:body) @etag = args[:etag] if args.key?(:etag) @from_address = args[:from_address] if args.key?(:from_address) @is_unread = args[:is_unread] if args.key?(:is_unread) @kind = args[:kind] if args.key?(:kind) @notification_id = args[:notification_id] if args.key?(:notification_id) @send_time = args[:send_time] if args.key?(:send_time) @subject = args[:subject] if args.key?(:subject) end