Class: Google::Apis::AlertcenterV1beta1::ListAlertsResponse

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

Overview

Response message for an alert listing request.

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

Returns a new instance of ListAlertsResponse



576
577
578
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 576

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

Instance Attribute Details

#alertsArray<Google::Apis::AlertcenterV1beta1::Alert>

The list of alerts. Corresponds to the JSON property alerts



566
567
568
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 566

def alerts
  @alerts
end

#next_page_tokenString

The token for the next page. If not empty, indicates that there may be more alerts that match the listing request; this value can be used in a subsequent ListAlertsRequest to get alerts continuing from last result of the current list call. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


574
575
576
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 574

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



581
582
583
584
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 581

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