Class: Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1PoolOption

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

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) ⇒ GoogleDevtoolsCloudbuildV1PoolOption

Returns a new instance of GoogleDevtoolsCloudbuildV1PoolOption.



4372
4373
4374
# File 'lib/google/apis/run_v2/classes.rb', line 4372

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)


4370
4371
4372
# File 'lib/google/apis/run_v2/classes.rb', line 4370

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4377
4378
4379
# File 'lib/google/apis/run_v2/classes.rb', line 4377

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