Class: Google::Apis::CloudbuildV1beta1::WorkerPool
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1beta1::WorkerPool
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1beta1/classes.rb,
lib/google/apis/cloudbuild_v1beta1/representations.rb,
lib/google/apis/cloudbuild_v1beta1/representations.rb
Overview
Configuration for a WorkerPool to run the builds. Workers provide a build
environment where Cloud Build runs your builds. Cloud Build owns and maintains
a pool of workers for general use. By default, when you submit a build, Cloud
Build uses one of the workers from this pool. Builds that run in the default
worker pool have access to the public internet. If your build needs access to
resources on a private network, create and use a WorkerPool to run your
builds. Custom 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 custom worker pools, see Custom workers 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.
-
#network_config ⇒ Google::Apis::CloudbuildV1beta1::NetworkConfig
Network describes the network configuration for a
WorkerPool. -
#state ⇒ String
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
-
#worker_config ⇒ Google::Apis::CloudbuildV1beta1::WorkerConfig
Defines the configuration to be used for creating workers in the pool.
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.
2233 2234 2235 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2233 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
2176 2177 2178 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2176 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
2181 2182 2183 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2181 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
2186 2187 2188 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2186 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
2192 2193 2194 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2192 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
2198 2199 2200 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2198 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`
2206 2207 2208 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2206 def name @name end |
#network_config ⇒ Google::Apis::CloudbuildV1beta1::NetworkConfig
Network describes the network configuration for a WorkerPool.
Corresponds to the JSON property networkConfig
2211 2212 2213 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2211 def network_config @network_config end |
#state ⇒ String
Output only. WorkerPool state.
Corresponds to the JSON property state
2216 2217 2218 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2216 def state @state end |
#uid ⇒ String
Output only. A unique identifier for the WorkerPool.
Corresponds to the JSON property uid
2221 2222 2223 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2221 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
2226 2227 2228 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2226 def update_time @update_time end |
#worker_config ⇒ Google::Apis::CloudbuildV1beta1::WorkerConfig
Defines the configuration to be used for creating workers in the pool.
Corresponds to the JSON property workerConfig
2231 2232 2233 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2231 def worker_config @worker_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 2238 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) @network_config = args[:network_config] if args.key?(:network_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) @worker_config = args[:worker_config] if args.key?(:worker_config) end |