Class: Google::Apis::AdminDirectoryV1::Notification
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::Notification
- 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
-
#body ⇒ String
Body of the notification (Read-only) Corresponds to the JSON property
body
. -
#etag ⇒ String
ETag of the resource.
-
#from_address ⇒ String
Address from which the notification is received (Read-only) Corresponds to the JSON property
fromAddress
. -
#is_unread ⇒ Boolean
(also: #is_unread?)
Boolean indicating whether the notification is unread or not.
-
#kind ⇒ String
The type of the resource.
-
#notification_id ⇒ String
Corresponds to the JSON property
notificationId
. -
#send_time ⇒ DateTime
Time at which notification was sent (Read-only) Corresponds to the JSON property
sendTime
. -
#subject ⇒ String
Subject of the notification (Read-only) Corresponds to the JSON property
subject
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Notification
constructor
A new instance of Notification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Notification
Returns a new instance of Notification
1677 1678 1679 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1677 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ String
Body of the notification (Read-only)
Corresponds to the JSON property body
1639 1640 1641 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1639 def body @body end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
1644 1645 1646 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1644 def etag @etag end |
#from_address ⇒ String
Address from which the notification is received (Read-only)
Corresponds to the JSON property fromAddress
1649 1650 1651 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1649 def from_address @from_address end |
#is_unread ⇒ Boolean Also known as: is_unread?
Boolean indicating whether the notification is unread or not.
Corresponds to the JSON property isUnread
1654 1655 1656 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1654 def is_unread @is_unread end |
#kind ⇒ String
The type of the resource.
Corresponds to the JSON property kind
1660 1661 1662 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1660 def kind @kind end |
#notification_id ⇒ String
Corresponds to the JSON property notificationId
1665 1666 1667 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1665 def notification_id @notification_id end |
#send_time ⇒ DateTime
Time at which notification was sent (Read-only)
Corresponds to the JSON property sendTime
1670 1671 1672 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1670 def send_time @send_time end |
#subject ⇒ String
Subject of the notification (Read-only)
Corresponds to the JSON property subject
1675 1676 1677 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1675 def subject @subject end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1682 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 |