google-apis-cloudbuild_v1 0.7.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 849f155da3ff3f5318f325fc2dbffce2eadec79d3d6644ef88a5d49a3624c69d
4
- data.tar.gz: 49d6eae3879b2147d95fe4f6c0c6eda2c342e2bfc9165b63fac0c88f30d56fd5
3
+ metadata.gz: '09592abbe48b024a1944d02de2c5f25bddcca6589561e993ec837f0ce74c334c'
4
+ data.tar.gz: 10599468130bc2e05729afa5dbf6cd32abd0432d2bfa62e0cbe237b4f47a269b
5
5
  SHA512:
6
- metadata.gz: d5a1c26af1d5e2749f343e08a25c5df6c73bc50eb1af76f48bbeb57e330e9ae1176f8e763f51fc45d22a6d1c8671748e4366652870c74b4f5fd46e8092f0be6b
7
- data.tar.gz: fc071cfeaed9548124a23e31125dfd77b841ea97a70e0b6ae6e42c8033d2d4090409f36ae2b4f942c73fc5e29d3abb0365f5b71e1ff6bed59ad02df2076466f7
6
+ metadata.gz: d313166b43e19a599c318941118129c38b6918a608b50cdd867ae66bfb65d7d9f5d5e9c0c19538fa1962ad654b893bc273fc1819422c52a771d41fa9114e1110
7
+ data.tar.gz: fdce81118cd049d88a856b1c3b6692c2e2f64bb7a2fb77cd985d70ecb550b7fa8a71c07f4801263267ee2eea1e41f17fc19bc4cdd841ed0209eb81c07c85918a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-cloudbuild_v1
2
2
 
3
+ ### v0.11.0 (2021-07-13)
4
+
5
+ * Regenerated from discovery document revision 20210709
6
+
7
+ ### v0.10.0 (2021-07-03)
8
+
9
+ * Regenerated from discovery document revision 20210701
10
+ * Regenerated using generator version 0.4.0
11
+
12
+ ### v0.9.0 (2021-06-24)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.8.0 (2021-06-16)
17
+
18
+ * Regenerated from discovery document revision 20210613
19
+ * Regenerated using generator version 0.3.0
20
+
3
21
  ### v0.7.0 (2021-05-19)
4
22
 
5
23
  * Unspecified changes
@@ -402,6 +402,13 @@ module Google
402
402
  # @return [String]
403
403
  attr_accessor :machine_type
404
404
 
405
+ # Details about how a build should be executed on a `WorkerPool`. See [running
406
+ # builds in a private pool](https://cloud.google.com/build/docs/private-pools/
407
+ # run-builds-in-private-pool) for more information.
408
+ # Corresponds to the JSON property `pool`
409
+ # @return [Google::Apis::CloudbuildV1::PoolOption]
410
+ attr_accessor :pool
411
+
405
412
  # Requested verifiability options.
406
413
  # Corresponds to the JSON property `requestedVerifyOption`
407
414
  # @return [String]
@@ -436,9 +443,7 @@ module Google
436
443
  # @return [Array<Google::Apis::CloudbuildV1::Volume>]
437
444
  attr_accessor :volumes
438
445
 
439
- # Option to specify a `WorkerPool` for the build. Format: projects/`project`/
440
- # locations/`location`/workerPools/`workerPool` This field is in beta and is
441
- # available only to restricted users.
446
+ # This field deprecated; please use `pool.name` instead.
442
447
  # Corresponds to the JSON property `workerPool`
443
448
  # @return [String]
444
449
  attr_accessor :worker_pool
@@ -455,6 +460,7 @@ module Google
455
460
  @log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
456
461
  @logging = args[:logging] if args.key?(:logging)
457
462
  @machine_type = args[:machine_type] if args.key?(:machine_type)
463
+ @pool = args[:pool] if args.key?(:pool)
458
464
  @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
459
465
  @secret_env = args[:secret_env] if args.key?(:secret_env)
460
466
  @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
@@ -596,6 +602,14 @@ module Google
596
602
  class BuildTrigger
597
603
  include Google::Apis::Core::Hashable
598
604
 
605
+ # Autodetect build configuration. The following precedence is used (case
606
+ # insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4.
607
+ # Dockerfile Currently only available for GitHub App Triggers.
608
+ # Corresponds to the JSON property `autodetect`
609
+ # @return [Boolean]
610
+ attr_accessor :autodetect
611
+ alias_method :autodetect?, :autodetect
612
+
599
613
  # A build resource in the Cloud Build API. At a high level, a `Build` describes
600
614
  # where to find source code, how to build it (for example, the builder image to
601
615
  # run on the source), and where to store the built artifacts. Fields can include
@@ -683,6 +697,13 @@ module Google
683
697
  # @return [Google::Apis::CloudbuildV1::PubsubConfig]
684
698
  attr_accessor :pubsub_config
685
699
 
700
+ # The `Trigger` name with format: `projects/`project`/locations/`location`/
701
+ # triggers/`trigger``, where `trigger` is a unique identifier generated by the
702
+ # service.
703
+ # Corresponds to the JSON property `resourceName`
704
+ # @return [String]
705
+ attr_accessor :resource_name
706
+
686
707
  # Substitutions for Build resource. The keys must match the following regular
687
708
  # expression: `^_[A-Z0-9_]+$`.
688
709
  # Corresponds to the JSON property `substitutions`
@@ -699,12 +720,19 @@ module Google
699
720
  # @return [Google::Apis::CloudbuildV1::RepoSource]
700
721
  attr_accessor :trigger_template
701
722
 
723
+ # WebhookConfig describes the configuration of a trigger that creates a build
724
+ # whenever a webhook is sent to a trigger's webhook URL.
725
+ # Corresponds to the JSON property `webhookConfig`
726
+ # @return [Google::Apis::CloudbuildV1::WebhookConfig]
727
+ attr_accessor :webhook_config
728
+
702
729
  def initialize(**args)
703
730
  update!(**args)
704
731
  end
705
732
 
706
733
  # Update properties of this object
707
734
  def update!(**args)
735
+ @autodetect = args[:autodetect] if args.key?(:autodetect)
708
736
  @build = args[:build] if args.key?(:build)
709
737
  @create_time = args[:create_time] if args.key?(:create_time)
710
738
  @description = args[:description] if args.key?(:description)
@@ -717,9 +745,11 @@ module Google
717
745
  @included_files = args[:included_files] if args.key?(:included_files)
718
746
  @name = args[:name] if args.key?(:name)
719
747
  @pubsub_config = args[:pubsub_config] if args.key?(:pubsub_config)
748
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
720
749
  @substitutions = args[:substitutions] if args.key?(:substitutions)
721
750
  @tags = args[:tags] if args.key?(:tags)
722
751
  @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
752
+ @webhook_config = args[:webhook_config] if args.key?(:webhook_config)
723
753
  end
724
754
  end
725
755
 
@@ -800,6 +830,70 @@ module Google
800
830
  end
801
831
  end
802
832
 
833
+ # Metadata for the `CreateWorkerPool` operation.
834
+ class CreateWorkerPoolOperationMetadata
835
+ include Google::Apis::Core::Hashable
836
+
837
+ # Time the operation was completed.
838
+ # Corresponds to the JSON property `completeTime`
839
+ # @return [String]
840
+ attr_accessor :complete_time
841
+
842
+ # Time the operation was created.
843
+ # Corresponds to the JSON property `createTime`
844
+ # @return [String]
845
+ attr_accessor :create_time
846
+
847
+ # The resource name of the `WorkerPool` to create. Format: `projects/`project`/
848
+ # locations/`location`/workerPools/`worker_pool``.
849
+ # Corresponds to the JSON property `workerPool`
850
+ # @return [String]
851
+ attr_accessor :worker_pool
852
+
853
+ def initialize(**args)
854
+ update!(**args)
855
+ end
856
+
857
+ # Update properties of this object
858
+ def update!(**args)
859
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
860
+ @create_time = args[:create_time] if args.key?(:create_time)
861
+ @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
862
+ end
863
+ end
864
+
865
+ # Metadata for the `DeleteWorkerPool` operation.
866
+ class DeleteWorkerPoolOperationMetadata
867
+ include Google::Apis::Core::Hashable
868
+
869
+ # Time the operation was completed.
870
+ # Corresponds to the JSON property `completeTime`
871
+ # @return [String]
872
+ attr_accessor :complete_time
873
+
874
+ # Time the operation was created.
875
+ # Corresponds to the JSON property `createTime`
876
+ # @return [String]
877
+ attr_accessor :create_time
878
+
879
+ # The resource name of the `WorkerPool` being deleted. Format: `projects/`
880
+ # project`/locations/`location`/workerPools/`worker_pool``.
881
+ # Corresponds to the JSON property `workerPool`
882
+ # @return [String]
883
+ attr_accessor :worker_pool
884
+
885
+ def initialize(**args)
886
+ update!(**args)
887
+ end
888
+
889
+ # Update properties of this object
890
+ def update!(**args)
891
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
892
+ @create_time = args[:create_time] if args.key?(:create_time)
893
+ @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
894
+ end
895
+ end
896
+
803
897
  # A generic empty message that you can re-use to avoid defining duplicated empty
804
898
  # messages in your APIs. A typical example is to use it as the request or the
805
899
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1057,6 +1151,63 @@ module Google
1057
1151
  end
1058
1152
  end
1059
1153
 
1154
+ # Response containing existing `WorkerPools`.
1155
+ class ListWorkerPoolsResponse
1156
+ include Google::Apis::Core::Hashable
1157
+
1158
+ # Continuation token used to page through large result sets. Provide this value
1159
+ # in a subsequent ListWorkerPoolsRequest to return the next page of results.
1160
+ # Corresponds to the JSON property `nextPageToken`
1161
+ # @return [String]
1162
+ attr_accessor :next_page_token
1163
+
1164
+ # `WorkerPools` for the specified project.
1165
+ # Corresponds to the JSON property `workerPools`
1166
+ # @return [Array<Google::Apis::CloudbuildV1::WorkerPool>]
1167
+ attr_accessor :worker_pools
1168
+
1169
+ def initialize(**args)
1170
+ update!(**args)
1171
+ end
1172
+
1173
+ # Update properties of this object
1174
+ def update!(**args)
1175
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1176
+ @worker_pools = args[:worker_pools] if args.key?(:worker_pools)
1177
+ end
1178
+ end
1179
+
1180
+ # Defines the network configuration for the pool.
1181
+ class NetworkConfig
1182
+ include Google::Apis::Core::Hashable
1183
+
1184
+ # Option to configure network egress for the workers.
1185
+ # Corresponds to the JSON property `egressOption`
1186
+ # @return [String]
1187
+ attr_accessor :egress_option
1188
+
1189
+ # Required. Immutable. The network definition that the workers are peered to. If
1190
+ # this section is left empty, the workers will be peered to `WorkerPool.
1191
+ # project_id` on the service producer network. Must be in the format `projects/`
1192
+ # project`/global/networks/`network``, where ``project`` is a project number,
1193
+ # such as `12345`, and ``network`` is the name of a VPC network in the project.
1194
+ # See [Understanding network configuration options](https://cloud.google.com/
1195
+ # build/docs/private-pools/set-up-private-pool-environment)
1196
+ # Corresponds to the JSON property `peeredNetwork`
1197
+ # @return [String]
1198
+ attr_accessor :peered_network
1199
+
1200
+ def initialize(**args)
1201
+ update!(**args)
1202
+ end
1203
+
1204
+ # Update properties of this object
1205
+ def update!(**args)
1206
+ @egress_option = args[:egress_option] if args.key?(:egress_option)
1207
+ @peered_network = args[:peered_network] if args.key?(:peered_network)
1208
+ end
1209
+ end
1210
+
1060
1211
  # Notification is the container which holds the data that is relevant to this
1061
1212
  # particular notification.
1062
1213
  class Notification
@@ -1311,6 +1462,54 @@ module Google
1311
1462
  end
1312
1463
  end
1313
1464
 
1465
+ # Details about how a build should be executed on a `WorkerPool`. See [running
1466
+ # builds in a private pool](https://cloud.google.com/build/docs/private-pools/
1467
+ # run-builds-in-private-pool) for more information.
1468
+ class PoolOption
1469
+ include Google::Apis::Core::Hashable
1470
+
1471
+ # The `WorkerPool` resource to execute the build on. You must have `cloudbuild.
1472
+ # workerpools.use` on the project hosting the WorkerPool. Format projects/`
1473
+ # project`/locations/`location`/workerPools/`workerPoolId`
1474
+ # Corresponds to the JSON property `name`
1475
+ # @return [String]
1476
+ attr_accessor :name
1477
+
1478
+ def initialize(**args)
1479
+ update!(**args)
1480
+ end
1481
+
1482
+ # Update properties of this object
1483
+ def update!(**args)
1484
+ @name = args[:name] if args.key?(:name)
1485
+ end
1486
+ end
1487
+
1488
+ # Configuration for a V1 `PrivatePool`.
1489
+ class PrivatePoolV1Config
1490
+ include Google::Apis::Core::Hashable
1491
+
1492
+ # Defines the network configuration for the pool.
1493
+ # Corresponds to the JSON property `networkConfig`
1494
+ # @return [Google::Apis::CloudbuildV1::NetworkConfig]
1495
+ attr_accessor :network_config
1496
+
1497
+ # Defines the configuration to be used for creating workers in the pool.
1498
+ # Corresponds to the JSON property `workerConfig`
1499
+ # @return [Google::Apis::CloudbuildV1::WorkerConfig]
1500
+ attr_accessor :worker_config
1501
+
1502
+ def initialize(**args)
1503
+ update!(**args)
1504
+ end
1505
+
1506
+ # Update properties of this object
1507
+ def update!(**args)
1508
+ @network_config = args[:network_config] if args.key?(:network_config)
1509
+ @worker_config = args[:worker_config] if args.key?(:worker_config)
1510
+ end
1511
+ end
1512
+
1314
1513
  # PubsubConfig describes the configuration of a trigger that creates a build
1315
1514
  # whenever a Pub/Sub message is published.
1316
1515
  class PubsubConfig
@@ -1592,6 +1791,37 @@ module Google
1592
1791
  end
1593
1792
  end
1594
1793
 
1794
+ # Specifies a build trigger to run and the source to use.
1795
+ class RunBuildTriggerRequest
1796
+ include Google::Apis::Core::Hashable
1797
+
1798
+ # Required. ID of the project.
1799
+ # Corresponds to the JSON property `projectId`
1800
+ # @return [String]
1801
+ attr_accessor :project_id
1802
+
1803
+ # Location of the source in a Google Cloud Source Repository.
1804
+ # Corresponds to the JSON property `source`
1805
+ # @return [Google::Apis::CloudbuildV1::RepoSource]
1806
+ attr_accessor :source
1807
+
1808
+ # Required. ID of the trigger.
1809
+ # Corresponds to the JSON property `triggerId`
1810
+ # @return [String]
1811
+ attr_accessor :trigger_id
1812
+
1813
+ def initialize(**args)
1814
+ update!(**args)
1815
+ end
1816
+
1817
+ # Update properties of this object
1818
+ def update!(**args)
1819
+ @project_id = args[:project_id] if args.key?(:project_id)
1820
+ @source = args[:source] if args.key?(:source)
1821
+ @trigger_id = args[:trigger_id] if args.key?(:trigger_id)
1822
+ end
1823
+ end
1824
+
1595
1825
  # SMTPDelivery is the delivery configuration for an SMTP (email) notification.
1596
1826
  class SmtpDelivery
1597
1827
  include Google::Apis::Core::Hashable
@@ -1765,7 +1995,8 @@ module Google
1765
1995
  attr_accessor :storage_source
1766
1996
 
1767
1997
  # Location of the source manifest in Google Cloud Storage. This feature is in
1768
- # Preview.
1998
+ # Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
1999
+ # builders/tree/master/gcs-fetcher).
1769
2000
  # Corresponds to the JSON property `storageSourceManifest`
1770
2001
  # @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
1771
2002
  attr_accessor :storage_source_manifest
@@ -1809,7 +2040,8 @@ module Google
1809
2040
  attr_accessor :resolved_storage_source
1810
2041
 
1811
2042
  # Location of the source manifest in Google Cloud Storage. This feature is in
1812
- # Preview.
2043
+ # Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
2044
+ # builders/tree/master/gcs-fetcher).
1813
2045
  # Corresponds to the JSON property `resolvedStorageSourceManifest`
1814
2046
  # @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
1815
2047
  attr_accessor :resolved_storage_source_manifest
@@ -1884,7 +2116,7 @@ module Google
1884
2116
  attr_accessor :generation
1885
2117
 
1886
2118
  # Google Cloud Storage object containing the source. This object must be a
1887
- # gzipped archive file (`.tar.gz`) containing source to build.
2119
+ # zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.
1888
2120
  # Corresponds to the JSON property `object`
1889
2121
  # @return [String]
1890
2122
  attr_accessor :object
@@ -1902,7 +2134,8 @@ module Google
1902
2134
  end
1903
2135
 
1904
2136
  # Location of the source manifest in Google Cloud Storage. This feature is in
1905
- # Preview.
2137
+ # Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
2138
+ # builders/tree/master/gcs-fetcher).
1906
2139
  class StorageSourceManifest
1907
2140
  include Google::Apis::Core::Hashable
1908
2141
 
@@ -1962,6 +2195,38 @@ module Google
1962
2195
  end
1963
2196
  end
1964
2197
 
2198
+ # Metadata for the `UpdateWorkerPool` operation.
2199
+ class UpdateWorkerPoolOperationMetadata
2200
+ include Google::Apis::Core::Hashable
2201
+
2202
+ # Time the operation was completed.
2203
+ # Corresponds to the JSON property `completeTime`
2204
+ # @return [String]
2205
+ attr_accessor :complete_time
2206
+
2207
+ # Time the operation was created.
2208
+ # Corresponds to the JSON property `createTime`
2209
+ # @return [String]
2210
+ attr_accessor :create_time
2211
+
2212
+ # The resource name of the `WorkerPool` being updated. Format: `projects/`
2213
+ # project`/locations/`location`/workerPools/`worker_pool``.
2214
+ # Corresponds to the JSON property `workerPool`
2215
+ # @return [String]
2216
+ attr_accessor :worker_pool
2217
+
2218
+ def initialize(**args)
2219
+ update!(**args)
2220
+ end
2221
+
2222
+ # Update properties of this object
2223
+ def update!(**args)
2224
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
2225
+ @create_time = args[:create_time] if args.key?(:create_time)
2226
+ @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
2227
+ end
2228
+ end
2229
+
1965
2230
  # Volume describes a Docker container volume which is mounted into build steps
1966
2231
  # in order to persist files across build step execution.
1967
2232
  class Volume
@@ -2016,6 +2281,150 @@ module Google
2016
2281
  @text = args[:text] if args.key?(:text)
2017
2282
  end
2018
2283
  end
2284
+
2285
+ # WebhookConfig describes the configuration of a trigger that creates a build
2286
+ # whenever a webhook is sent to a trigger's webhook URL.
2287
+ class WebhookConfig
2288
+ include Google::Apis::Core::Hashable
2289
+
2290
+ # Required. Resource name for the secret required as a URL parameter.
2291
+ # Corresponds to the JSON property `secret`
2292
+ # @return [String]
2293
+ attr_accessor :secret
2294
+
2295
+ # Potential issues with the underlying Pub/Sub subscription configuration. Only
2296
+ # populated on get requests.
2297
+ # Corresponds to the JSON property `state`
2298
+ # @return [String]
2299
+ attr_accessor :state
2300
+
2301
+ def initialize(**args)
2302
+ update!(**args)
2303
+ end
2304
+
2305
+ # Update properties of this object
2306
+ def update!(**args)
2307
+ @secret = args[:secret] if args.key?(:secret)
2308
+ @state = args[:state] if args.key?(:state)
2309
+ end
2310
+ end
2311
+
2312
+ # Defines the configuration to be used for creating workers in the pool.
2313
+ class WorkerConfig
2314
+ include Google::Apis::Core::Hashable
2315
+
2316
+ # Size of the disk attached to the worker, in GB. See [Worker pool config file](
2317
+ # https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-
2318
+ # schema). Specify a value of up to 1000. If `0` is specified, Cloud Build will
2319
+ # use a standard disk size.
2320
+ # Corresponds to the JSON property `diskSizeGb`
2321
+ # @return [Fixnum]
2322
+ attr_accessor :disk_size_gb
2323
+
2324
+ # Machine type of a worker, such as `e2-medium`. See [Worker pool config file](
2325
+ # https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-
2326
+ # schema). If left blank, Cloud Build will use a sensible default.
2327
+ # Corresponds to the JSON property `machineType`
2328
+ # @return [String]
2329
+ attr_accessor :machine_type
2330
+
2331
+ def initialize(**args)
2332
+ update!(**args)
2333
+ end
2334
+
2335
+ # Update properties of this object
2336
+ def update!(**args)
2337
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
2338
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
2339
+ end
2340
+ end
2341
+
2342
+ # Configuration for a `WorkerPool`. Cloud Build owns and maintains a pool of
2343
+ # workers for general use and have no access to a project's private network. By
2344
+ # default, builds submitted to Cloud Build will use a worker from this pool. If
2345
+ # your build needs access to resources on a private network, create and use a `
2346
+ # WorkerPool` to run your builds. Private `WorkerPool`s give your builds access
2347
+ # to any single VPC network that you administer, including any on-prem resources
2348
+ # connected to that VPC network. For an overview of private pools, see [Private
2349
+ # pools overview](https://cloud.google.com/build/docs/private-pools/private-
2350
+ # pools-overview).
2351
+ class WorkerPool
2352
+ include Google::Apis::Core::Hashable
2353
+
2354
+ # User specified annotations. See https://google.aip.dev/128#annotations for
2355
+ # more details such as format and size limitations.
2356
+ # Corresponds to the JSON property `annotations`
2357
+ # @return [Hash<String,String>]
2358
+ attr_accessor :annotations
2359
+
2360
+ # Output only. Time at which the request to create the `WorkerPool` was received.
2361
+ # Corresponds to the JSON property `createTime`
2362
+ # @return [String]
2363
+ attr_accessor :create_time
2364
+
2365
+ # Output only. Time at which the request to delete the `WorkerPool` was received.
2366
+ # Corresponds to the JSON property `deleteTime`
2367
+ # @return [String]
2368
+ attr_accessor :delete_time
2369
+
2370
+ # A user-specified, human-readable name for the `WorkerPool`. If provided, this
2371
+ # value must be 1-63 characters.
2372
+ # Corresponds to the JSON property `displayName`
2373
+ # @return [String]
2374
+ attr_accessor :display_name
2375
+
2376
+ # Output only. Checksum computed by the server. May be sent on update and delete
2377
+ # requests to ensure that the client has an up-to-date value before proceeding.
2378
+ # Corresponds to the JSON property `etag`
2379
+ # @return [String]
2380
+ attr_accessor :etag
2381
+
2382
+ # Output only. The resource name of the `WorkerPool`, with format `projects/`
2383
+ # project`/locations/`location`/workerPools/`worker_pool``. The value of ``
2384
+ # worker_pool`` is provided by `worker_pool_id` in `CreateWorkerPool` request
2385
+ # and the value of ``location`` is determined by the endpoint accessed.
2386
+ # Corresponds to the JSON property `name`
2387
+ # @return [String]
2388
+ attr_accessor :name
2389
+
2390
+ # Configuration for a V1 `PrivatePool`.
2391
+ # Corresponds to the JSON property `privatePoolV1Config`
2392
+ # @return [Google::Apis::CloudbuildV1::PrivatePoolV1Config]
2393
+ attr_accessor :private_pool_v1_config
2394
+
2395
+ # Output only. `WorkerPool` state.
2396
+ # Corresponds to the JSON property `state`
2397
+ # @return [String]
2398
+ attr_accessor :state
2399
+
2400
+ # Output only. A unique identifier for the `WorkerPool`.
2401
+ # Corresponds to the JSON property `uid`
2402
+ # @return [String]
2403
+ attr_accessor :uid
2404
+
2405
+ # Output only. Time at which the request to update the `WorkerPool` was received.
2406
+ # Corresponds to the JSON property `updateTime`
2407
+ # @return [String]
2408
+ attr_accessor :update_time
2409
+
2410
+ def initialize(**args)
2411
+ update!(**args)
2412
+ end
2413
+
2414
+ # Update properties of this object
2415
+ def update!(**args)
2416
+ @annotations = args[:annotations] if args.key?(:annotations)
2417
+ @create_time = args[:create_time] if args.key?(:create_time)
2418
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
2419
+ @display_name = args[:display_name] if args.key?(:display_name)
2420
+ @etag = args[:etag] if args.key?(:etag)
2421
+ @name = args[:name] if args.key?(:name)
2422
+ @private_pool_v1_config = args[:private_pool_v1_config] if args.key?(:private_pool_v1_config)
2423
+ @state = args[:state] if args.key?(:state)
2424
+ @uid = args[:uid] if args.key?(:uid)
2425
+ @update_time = args[:update_time] if args.key?(:update_time)
2426
+ end
2427
+ end
2019
2428
  end
2020
2429
  end
2021
2430
  end