Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1ListNotificationsResponse

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

Overview

Response of ListNotifications endpoint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1ListNotificationsResponse

Returns a new instance of GoogleCloudAdvisorynotificationsV1ListNotificationsResponse.



118
119
120
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 118

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

Instance Attribute Details

#next_page_tokenString

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


106
107
108
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 106

def next_page_token
  @next_page_token
end

#notificationsArray<Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1Notification>

List of notifications under a given parent. Corresponds to the JSON property notifications



111
112
113
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 111

def notifications
  @notifications
end

#total_sizeFixnum

Estimation of a total number of notifications. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


116
117
118
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 116

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



123
124
125
126
127
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 123

def update!(**args)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @notifications = args[:notifications] if args.key?(:notifications)
  @total_size = args[:total_size] if args.key?(:total_size)
end