Class: Google::Apis::AdminDirectoryV1::Notifications

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 notifications list response.

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) ⇒ Notifications

Returns a new instance of Notifications



2318
2319
2320
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2318

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


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

def etag
  @etag
end

#itemsArray<Google::Apis::AdminDirectoryV1::Notification>

List of notifications in this page. Corresponds to the JSON property items



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

def items
  @items
end

#kindString

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

Returns:

  • (String)


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

def kind
  @kind
end

#next_page_tokenString

Token for fetching the next page of notifications. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


2311
2312
2313
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2311

def next_page_token
  @next_page_token
end

#unread_notifications_countFixnum

Number of unread notification for the domain. Corresponds to the JSON property unreadNotificationsCount

Returns:

  • (Fixnum)


2316
2317
2318
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2316

def unread_notifications_count
  @unread_notifications_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2323
2324
2325
2326
2327
2328
2329
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2323

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @unread_notifications_count = args[:unread_notifications_count] if args.key?(:unread_notifications_count)
end