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
| 2046 2047 2048 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2046 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#body ⇒ String
Body of the notification (Read-only)
Corresponds to the JSON property body
| 2008 2009 2010 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2008 def body @body end | 
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
| 2013 2014 2015 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2013 def etag @etag end | 
#from_address ⇒ String
Address from which the notification is received (Read-only)
Corresponds to the JSON property fromAddress
| 2018 2019 2020 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2018 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
| 2023 2024 2025 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2023 def is_unread @is_unread end | 
#kind ⇒ String
The type of the resource.
Corresponds to the JSON property kind
| 2029 2030 2031 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2029 def kind @kind end | 
#notification_id ⇒ String
Corresponds to the JSON property notificationId
| 2034 2035 2036 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2034 def notification_id @notification_id end | 
#send_time ⇒ DateTime
Time at which notification was sent (Read-only)
Corresponds to the JSON property sendTime
| 2039 2040 2041 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2039 def send_time @send_time end | 
#subject ⇒ String
Subject of the notification (Read-only)
Corresponds to the JSON property subject
| 2044 2045 2046 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2044 def subject @subject end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2051 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 |