Class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption

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

Returns a new instance of ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption.



1275
1276
1277
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1275

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)


1268
1269
1270
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1268

def name
  @name
end

#worker_configGoogle::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig

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



1273
1274
1275
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1273

def worker_config
  @worker_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1280
1281
1282
1283
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1280

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