Class: Google::Apis::CloudbuildV1::WorkerPool
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::WorkerPool
- 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
Configuration for a WorkerPool. Cloud Build owns and maintains a pool of
workers for general use and have no access to a project's private network. By
default, builds submitted to Cloud Build will use a worker from this pool. If
your build needs access to resources on a private network, create and use a
WorkerPool to run your builds. Private WorkerPools give your builds access
to any single VPC network that you administer, including any on-prem resources
connected to that VPC network. For an overview of private pools, see Private
pools overview.
Instance Attribute Summary collapse
-
#annotations ⇒ Hash<String,String>
User specified annotations.
-
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#display_name ⇒ String
A user-specified, human-readable name for the
WorkerPool. -
#etag ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#private_pool_v1_config ⇒ Google::Apis::CloudbuildV1::PrivatePoolV1Config
Configuration for a V1
PrivatePool. -
#state ⇒ String
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkerPool
constructor
A new instance of WorkerPool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkerPool
Returns a new instance of WorkerPool.
4549 4550 4551 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4549 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
User specified annotations. See https://google.aip.dev/128#annotations for
more details such as format and size limitations.
Corresponds to the JSON property annotations
4497 4498 4499 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4497 def annotations @annotations end |
#create_time ⇒ String
Output only. Time at which the request to create the WorkerPool was received.
Corresponds to the JSON property createTime
4502 4503 4504 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4502 def create_time @create_time end |
#delete_time ⇒ String
Output only. Time at which the request to delete the WorkerPool was received.
Corresponds to the JSON property deleteTime
4507 4508 4509 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4507 def delete_time @delete_time end |
#display_name ⇒ String
A user-specified, human-readable name for the WorkerPool. If provided, this
value must be 1-63 characters.
Corresponds to the JSON property displayName
4513 4514 4515 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4513 def display_name @display_name end |
#etag ⇒ String
Output only. Checksum computed by the server. May be sent on update and delete
requests to ensure that the client has an up-to-date value before proceeding.
Corresponds to the JSON property etag
4519 4520 4521 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4519 def etag @etag end |
#name ⇒ String
Output only. The resource name of the WorkerPool, with format projects/
project/locations/location/workerPools/worker_pool. The value of
worker_poolis provided by `worker_pool_id` in `CreateWorkerPool` request
and the value oflocation`is determined by the endpoint accessed.
Corresponds to the JSON propertyname`
4527 4528 4529 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4527 def name @name end |
#private_pool_v1_config ⇒ Google::Apis::CloudbuildV1::PrivatePoolV1Config
Configuration for a V1 PrivatePool.
Corresponds to the JSON property privatePoolV1Config
4532 4533 4534 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4532 def private_pool_v1_config @private_pool_v1_config end |
#state ⇒ String
Output only. WorkerPool state.
Corresponds to the JSON property state
4537 4538 4539 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4537 def state @state end |
#uid ⇒ String
Output only. A unique identifier for the WorkerPool.
Corresponds to the JSON property uid
4542 4543 4544 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4542 def uid @uid end |
#update_time ⇒ String
Output only. Time at which the request to update the WorkerPool was received.
Corresponds to the JSON property updateTime
4547 4548 4549 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4547 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 4554 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @create_time = args[:create_time] if args.key?(:create_time) @delete_time = args[:delete_time] if args.key?(:delete_time) @display_name = args[:display_name] if args.key?(:display_name) @etag = args[:etag] if args.key?(:etag) @name = args[:name] if args.key?(:name) @private_pool_v1_config = args[:private_pool_v1_config] if args.key?(:private_pool_v1_config) @state = args[:state] if args.key?(:state) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |