Class: Google::Apis::MonitoringV3::ListNotificationChannelsResponse

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

Overview

The ListNotificationChannels response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListNotificationChannelsResponse

Returns a new instance of ListNotificationChannelsResponse.



2314
2315
2316
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2314

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

Instance Attribute Details

#next_page_tokenString

If not empty, indicates that there may be more results that match the request. Use the value in the page_token field in a subsequent request to fetch the next set of results. If empty, all results have been returned. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


2301
2302
2303
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2301

def next_page_token
  @next_page_token
end

#notification_channelsArray<Google::Apis::MonitoringV3::NotificationChannel>

The notification channels defined for the specified project. Corresponds to the JSON property notificationChannels



2306
2307
2308
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2306

def notification_channels
  @notification_channels
end

#total_sizeFixnum

The total number of notification channels in all pages. This number is only an estimate, and may change in subsequent pages. https://aip.dev/158 Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


2312
2313
2314
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2312

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2319
2320
2321
2322
2323
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2319

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