class Google::Apis::AdminDirectoryV1::Notification

Template for a notification resource.

Attributes

body[RW]

Body of the notification (Read-only) Corresponds to the JSON property `body` @return [String]

etag[RW]

ETag of the resource. Corresponds to the JSON property `etag` @return [String]

from_address[RW]

Address from which the notification is received (Read-only) Corresponds to the JSON property `fromAddress` @return [String]

is_unread[RW]

Boolean indicating whether the notification is unread or not. Corresponds to the JSON property `isUnread` @return [Boolean]

is_unread?[RW]

Boolean indicating whether the notification is unread or not. Corresponds to the JSON property `isUnread` @return [Boolean]

kind[RW]

The type of the resource. Corresponds to the JSON property `kind` @return [String]

notification_id[RW]

Corresponds to the JSON property `notificationId` @return [String]

send_time[RW]

Time at which notification was sent (Read-only) Corresponds to the JSON property `sendTime` @return [DateTime]

subject[RW]

Subject of the notification (Read-only) Corresponds to the JSON property `subject` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

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