Class: Google::Apis::CloudbuildV1::PoolOption
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::PoolOption
- 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
Details about how a build should be executed on a WorkerPool
. See running
builds in a private pool for more information.
Instance Attribute Summary collapse
-
#name ⇒ String
The
WorkerPool
resource to execute the build on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PoolOption
constructor
A new instance of PoolOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PoolOption
Returns a new instance of PoolOption.
3285 3286 3287 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3285 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The WorkerPool
resource to execute the build on. You must have cloudbuild.
workerpools.use
on the project hosting the WorkerPool. Format projects/
project
/locations/location
/workerPools/workerPoolId
Corresponds to the JSON property name
3283 3284 3285 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3283 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3290 3291 3292 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3290 def update!(**args) @name = args[:name] if args.key?(:name) end |