Class: Google::Apis::AdminDirectoryV1::Notification

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/representations.rb

Overview

Template for a notification resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Notification

Returns a new instance of Notification.



1482
1483
1484
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1482

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bodyString

Body of the notification (Read-only) Corresponds to the JSON property body

Returns:

  • (String)


1444
1445
1446
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1444

def body
  @body
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


1449
1450
1451
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1449

def etag
  @etag
end

#from_addressString

Address from which the notification is received (Read-only) Corresponds to the JSON property fromAddress

Returns:

  • (String)


1454
1455
1456
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1454

def from_address
  @from_address
end

#is_unreadBoolean Also known as: is_unread?

Boolean indicating whether the notification is unread or not. Corresponds to the JSON property isUnread

Returns:

  • (Boolean)


1459
1460
1461
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1459

def is_unread
  @is_unread
end

#kindString

The type of the resource. Corresponds to the JSON property kind

Returns:

  • (String)


1465
1466
1467
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1465

def kind
  @kind
end

#notification_idString

Corresponds to the JSON property notificationId

Returns:

  • (String)


1470
1471
1472
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1470

def notification_id
  @notification_id
end

#send_timeDateTime

Time at which notification was sent (Read-only) Corresponds to the JSON property sendTime

Returns:

  • (DateTime)


1475
1476
1477
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1475

def send_time
  @send_time
end

#subjectString

Subject of the notification (Read-only) Corresponds to the JSON property subject

Returns:

  • (String)


1480
1481
1482
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1480

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1487

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