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.



2308
2309
2310
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2308

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

Instance Attribute Details

#bodyString

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

Returns:

  • (String)


2270
2271
2272
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2270

def body
  @body
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2275
2276
2277
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2275

def etag
  @etag
end

#from_addressString

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

Returns:

  • (String)


2280
2281
2282
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2280

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)


2285
2286
2287
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2285

def is_unread
  @is_unread
end

#kindString

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

Returns:

  • (String)


2291
2292
2293
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2291

def kind
  @kind
end

#notification_idString

Corresponds to the JSON property notificationId

Returns:

  • (String)


2296
2297
2298
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2296

def notification_id
  @notification_id
end

#send_timeDateTime

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

Returns:

  • (DateTime)


2301
2302
2303
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2301

def send_time
  @send_time
end

#subjectString

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

Returns:

  • (String)


2306
2307
2308
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2306

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2313

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