Class: Google::Apis::RunV2::GoogleCloudRunV2ListWorkerPoolsResponse

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

Overview

Response message containing a list of WorkerPools.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2ListWorkerPoolsResponse

Returns a new instance of GoogleCloudRunV2ListWorkerPoolsResponse.



2059
2060
2061
# File 'lib/google/apis/run_v2/classes.rb', line 2059

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

Instance Attribute Details

#next_page_tokenString

A token indicating there are more items than page_size. Use it in the next ListWorkerPools request to continue. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


2052
2053
2054
# File 'lib/google/apis/run_v2/classes.rb', line 2052

def next_page_token
  @next_page_token
end

#worker_poolsArray<Google::Apis::RunV2::GoogleCloudRunV2WorkerPool>

The resulting list of WorkerPools. Corresponds to the JSON property workerPools



2057
2058
2059
# File 'lib/google/apis/run_v2/classes.rb', line 2057

def worker_pools
  @worker_pools
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2064
2065
2066
2067
# File 'lib/google/apis/run_v2/classes.rb', line 2064

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