Class: Google::Apis::CloudbuildV1alpha1::PoolOption

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v1alpha1/classes.rb,
lib/google/apis/cloudbuild_v1alpha1/representations.rb,
lib/google/apis/cloudbuild_v1alpha1/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PoolOption

Returns a new instance of PoolOption.



1767
1768
1769
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1767

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


1760
1761
1762
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1760

def name
  @name
end

#worker_configGoogle::Apis::CloudbuildV1alpha1::GoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig

Configuration per workload for both Private Pools and Hybrid Pools. Corresponds to the JSON property workerConfig



1765
1766
1767
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1765

def worker_config
  @worker_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1772
1773
1774
1775
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 1772

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