Class: Google::Apis::CloudbuildV1::ListWorkerPoolsResponse

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

Overview

Response containing existing WorkerPools.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListWorkerPoolsResponse

Returns a new instance of ListWorkerPoolsResponse.



3020
3021
3022
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3020

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

Instance Attribute Details

#next_page_tokenString

Continuation token used to page through large result sets. Provide this value in a subsequent ListWorkerPoolsRequest to return the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


3013
3014
3015
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3013

def next_page_token
  @next_page_token
end

#worker_poolsArray<Google::Apis::CloudbuildV1::WorkerPool>

WorkerPools for the specified project. Corresponds to the JSON property workerPools



3018
3019
3020
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3018

def worker_pools
  @worker_pools
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3025
3026
3027
3028
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3025

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