google-apis-cloudbuild_v1 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb13c0617978b9a1124a8c0a0c1f7d80ac5f88db1142fae012c23ebce04f08b8
4
- data.tar.gz: a9f5773141445285fb028cfbd33b1390e4486b7cffc7ae483c4a0afc806ac432
3
+ metadata.gz: 54cda4b032e71c13fbb1c3105240510106e3f86754e20d032c461f136e7213e5
4
+ data.tar.gz: 6a66a2cb1e0ff6e52d1b195e960329d064d72636ca6ad92ad38d62f4fba16186
5
5
  SHA512:
6
- metadata.gz: 6f6c1cfc11f6bf5be20143118a330c41201dc3d65e08469255332e265f676d5d85bcc56b89f29dd5eda8300359f4536f11b8a0ad4a846cc97a14ae5d297b6c3e
7
- data.tar.gz: 11fe12ff928ebd38e93cc30ab08301c20c5c79e4145204e3b8008d075fb488234ed42a230e07f30b7430ca480fbe39602f35de72965c366eba0bc344a6a55b1b
6
+ metadata.gz: '072684c93416857a321a7686c3d9b4f8cca116d4caf2ddcc7833e326f2e9518f751740062443df4f7f786f348f5fb806d16d226849e887d6323146c949ae7aa3'
7
+ data.tar.gz: d8d183fedd676fc631c83e727f43d6467e04b1f36ebd20d39209b446900ddf7264e0820594dec11a52a4a387ca851bc9bb7e385172578acf8f375367f62f6244
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-cloudbuild_v1
2
2
 
3
+ ### v0.10.0 (2021-07-03)
4
+
5
+ * Regenerated from discovery document revision 20210701
6
+ * Regenerated using generator version 0.4.0
7
+
3
8
  ### v0.9.0 (2021-06-24)
4
9
 
5
10
  * 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 custom worker pool](https://cloud.google.com/build/docs/custom-
407
+ # workers/run-builds-in-custom-worker-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
@@ -718,6 +732,7 @@ module Google
718
732
 
719
733
  # Update properties of this object
720
734
  def update!(**args)
735
+ @autodetect = args[:autodetect] if args.key?(:autodetect)
721
736
  @build = args[:build] if args.key?(:build)
722
737
  @create_time = args[:create_time] if args.key?(:create_time)
723
738
  @description = args[:description] if args.key?(:description)
@@ -815,6 +830,70 @@ module Google
815
830
  end
816
831
  end
817
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
+
818
897
  # A generic empty message that you can re-use to avoid defining duplicated empty
819
898
  # messages in your APIs. A typical example is to use it as the request or the
820
899
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1072,6 +1151,64 @@ module Google
1072
1151
  end
1073
1152
  end
1074
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
+ # cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#
1196
+ # understanding_the_network_configuration_options)
1197
+ # Corresponds to the JSON property `peeredNetwork`
1198
+ # @return [String]
1199
+ attr_accessor :peered_network
1200
+
1201
+ def initialize(**args)
1202
+ update!(**args)
1203
+ end
1204
+
1205
+ # Update properties of this object
1206
+ def update!(**args)
1207
+ @egress_option = args[:egress_option] if args.key?(:egress_option)
1208
+ @peered_network = args[:peered_network] if args.key?(:peered_network)
1209
+ end
1210
+ end
1211
+
1075
1212
  # Notification is the container which holds the data that is relevant to this
1076
1213
  # particular notification.
1077
1214
  class Notification
@@ -1326,6 +1463,54 @@ module Google
1326
1463
  end
1327
1464
  end
1328
1465
 
1466
+ # Details about how a build should be executed on a `WorkerPool`. See [running
1467
+ # builds in a custom worker pool](https://cloud.google.com/build/docs/custom-
1468
+ # workers/run-builds-in-custom-worker-pool) for more information.
1469
+ class PoolOption
1470
+ include Google::Apis::Core::Hashable
1471
+
1472
+ # The `WorkerPool` resource to execute the build on. You must have `cloudbuild.
1473
+ # workerpools.use` on the project hosting the WorkerPool. Format projects/`
1474
+ # project`/locations/`location`/workerPools/`workerPoolId`
1475
+ # Corresponds to the JSON property `name`
1476
+ # @return [String]
1477
+ attr_accessor :name
1478
+
1479
+ def initialize(**args)
1480
+ update!(**args)
1481
+ end
1482
+
1483
+ # Update properties of this object
1484
+ def update!(**args)
1485
+ @name = args[:name] if args.key?(:name)
1486
+ end
1487
+ end
1488
+
1489
+ # Configuration for a V1 `PrivatePool`.
1490
+ class PrivatePoolV1Config
1491
+ include Google::Apis::Core::Hashable
1492
+
1493
+ # Defines the network configuration for the pool.
1494
+ # Corresponds to the JSON property `networkConfig`
1495
+ # @return [Google::Apis::CloudbuildV1::NetworkConfig]
1496
+ attr_accessor :network_config
1497
+
1498
+ # Defines the configuration to be used for creating workers in the pool.
1499
+ # Corresponds to the JSON property `workerConfig`
1500
+ # @return [Google::Apis::CloudbuildV1::WorkerConfig]
1501
+ attr_accessor :worker_config
1502
+
1503
+ def initialize(**args)
1504
+ update!(**args)
1505
+ end
1506
+
1507
+ # Update properties of this object
1508
+ def update!(**args)
1509
+ @network_config = args[:network_config] if args.key?(:network_config)
1510
+ @worker_config = args[:worker_config] if args.key?(:worker_config)
1511
+ end
1512
+ end
1513
+
1329
1514
  # PubsubConfig describes the configuration of a trigger that creates a build
1330
1515
  # whenever a Pub/Sub message is published.
1331
1516
  class PubsubConfig
@@ -1811,7 +1996,8 @@ module Google
1811
1996
  attr_accessor :storage_source
1812
1997
 
1813
1998
  # Location of the source manifest in Google Cloud Storage. This feature is in
1814
- # Preview.
1999
+ # Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
2000
+ # builders/tree/master/gcs-fetcher).
1815
2001
  # Corresponds to the JSON property `storageSourceManifest`
1816
2002
  # @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
1817
2003
  attr_accessor :storage_source_manifest
@@ -1855,7 +2041,8 @@ module Google
1855
2041
  attr_accessor :resolved_storage_source
1856
2042
 
1857
2043
  # Location of the source manifest in Google Cloud Storage. This feature is in
1858
- # Preview.
2044
+ # Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
2045
+ # builders/tree/master/gcs-fetcher).
1859
2046
  # Corresponds to the JSON property `resolvedStorageSourceManifest`
1860
2047
  # @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
1861
2048
  attr_accessor :resolved_storage_source_manifest
@@ -1948,7 +2135,8 @@ module Google
1948
2135
  end
1949
2136
 
1950
2137
  # Location of the source manifest in Google Cloud Storage. This feature is in
1951
- # Preview.
2138
+ # Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-
2139
+ # builders/tree/master/gcs-fetcher).
1952
2140
  class StorageSourceManifest
1953
2141
  include Google::Apis::Core::Hashable
1954
2142
 
@@ -2008,6 +2196,38 @@ module Google
2008
2196
  end
2009
2197
  end
2010
2198
 
2199
+ # Metadata for the `UpdateWorkerPool` operation.
2200
+ class UpdateWorkerPoolOperationMetadata
2201
+ include Google::Apis::Core::Hashable
2202
+
2203
+ # Time the operation was completed.
2204
+ # Corresponds to the JSON property `completeTime`
2205
+ # @return [String]
2206
+ attr_accessor :complete_time
2207
+
2208
+ # Time the operation was created.
2209
+ # Corresponds to the JSON property `createTime`
2210
+ # @return [String]
2211
+ attr_accessor :create_time
2212
+
2213
+ # The resource name of the `WorkerPool` being updated. Format: `projects/`
2214
+ # project`/locations/`location`/workerPools/`worker_pool``.
2215
+ # Corresponds to the JSON property `workerPool`
2216
+ # @return [String]
2217
+ attr_accessor :worker_pool
2218
+
2219
+ def initialize(**args)
2220
+ update!(**args)
2221
+ end
2222
+
2223
+ # Update properties of this object
2224
+ def update!(**args)
2225
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
2226
+ @create_time = args[:create_time] if args.key?(:create_time)
2227
+ @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
2228
+ end
2229
+ end
2230
+
2011
2231
  # Volume describes a Docker container volume which is mounted into build steps
2012
2232
  # in order to persist files across build step execution.
2013
2233
  class Volume
@@ -2089,6 +2309,123 @@ module Google
2089
2309
  @state = args[:state] if args.key?(:state)
2090
2310
  end
2091
2311
  end
2312
+
2313
+ # Defines the configuration to be used for creating workers in the pool.
2314
+ class WorkerConfig
2315
+ include Google::Apis::Core::Hashable
2316
+
2317
+ # Size of the disk attached to the worker, in GB. See [Worker pool config file](
2318
+ # https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-
2319
+ # file). Specify a value of up to 1000. If `0` is specified, Cloud Build will
2320
+ # use a standard disk size.
2321
+ # Corresponds to the JSON property `diskSizeGb`
2322
+ # @return [Fixnum]
2323
+ attr_accessor :disk_size_gb
2324
+
2325
+ # Machine type of a worker, such as `e2-medium`. See [Worker pool config file](
2326
+ # https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-
2327
+ # file). If left blank, Cloud Build will use a sensible default.
2328
+ # Corresponds to the JSON property `machineType`
2329
+ # @return [String]
2330
+ attr_accessor :machine_type
2331
+
2332
+ def initialize(**args)
2333
+ update!(**args)
2334
+ end
2335
+
2336
+ # Update properties of this object
2337
+ def update!(**args)
2338
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
2339
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
2340
+ end
2341
+ end
2342
+
2343
+ # Configuration for a `WorkerPool`. Cloud Build owns and maintains a pool of
2344
+ # workers for general use and have no access to a project's private network. By
2345
+ # default, builds submitted to Cloud Build will use a worker from this pool. If
2346
+ # your build needs access to resources on a private network, create and use a `
2347
+ # WorkerPool` to run your builds. Private `WorkerPool`s give your builds access
2348
+ # to any single VPC network that you administer, including any on-prem resources
2349
+ # connected to that VPC network. For an overview of custom worker pools, see [
2350
+ # Custom workers overview](https://cloud.google.com/cloud-build/docs/custom-
2351
+ # workers/custom-workers-overview).
2352
+ class WorkerPool
2353
+ include Google::Apis::Core::Hashable
2354
+
2355
+ # User specified annotations. See https://google.aip.dev/128#annotations for
2356
+ # more details such as format and size limitations.
2357
+ # Corresponds to the JSON property `annotations`
2358
+ # @return [Hash<String,String>]
2359
+ attr_accessor :annotations
2360
+
2361
+ # Output only. Time at which the request to create the `WorkerPool` was received.
2362
+ # Corresponds to the JSON property `createTime`
2363
+ # @return [String]
2364
+ attr_accessor :create_time
2365
+
2366
+ # Output only. Time at which the request to delete the `WorkerPool` was received.
2367
+ # Corresponds to the JSON property `deleteTime`
2368
+ # @return [String]
2369
+ attr_accessor :delete_time
2370
+
2371
+ # A user-specified, human-readable name for the `WorkerPool`. If provided, this
2372
+ # value must be 1-63 characters.
2373
+ # Corresponds to the JSON property `displayName`
2374
+ # @return [String]
2375
+ attr_accessor :display_name
2376
+
2377
+ # Output only. Checksum computed by the server. May be sent on update and delete
2378
+ # requests to ensure that the client has an up-to-date value before proceeding.
2379
+ # Corresponds to the JSON property `etag`
2380
+ # @return [String]
2381
+ attr_accessor :etag
2382
+
2383
+ # Output only. The resource name of the `WorkerPool`, with format `projects/`
2384
+ # project`/locations/`location`/workerPools/`worker_pool``. The value of ``
2385
+ # worker_pool`` is provided by `worker_pool_id` in `CreateWorkerPool` request
2386
+ # and the value of ``location`` is determined by the endpoint accessed.
2387
+ # Corresponds to the JSON property `name`
2388
+ # @return [String]
2389
+ attr_accessor :name
2390
+
2391
+ # Configuration for a V1 `PrivatePool`.
2392
+ # Corresponds to the JSON property `privatePoolV1Config`
2393
+ # @return [Google::Apis::CloudbuildV1::PrivatePoolV1Config]
2394
+ attr_accessor :private_pool_v1_config
2395
+
2396
+ # Output only. `WorkerPool` state.
2397
+ # Corresponds to the JSON property `state`
2398
+ # @return [String]
2399
+ attr_accessor :state
2400
+
2401
+ # Output only. A unique identifier for the `WorkerPool`.
2402
+ # Corresponds to the JSON property `uid`
2403
+ # @return [String]
2404
+ attr_accessor :uid
2405
+
2406
+ # Output only. Time at which the request to update the `WorkerPool` was received.
2407
+ # Corresponds to the JSON property `updateTime`
2408
+ # @return [String]
2409
+ attr_accessor :update_time
2410
+
2411
+ def initialize(**args)
2412
+ update!(**args)
2413
+ end
2414
+
2415
+ # Update properties of this object
2416
+ def update!(**args)
2417
+ @annotations = args[:annotations] if args.key?(:annotations)
2418
+ @create_time = args[:create_time] if args.key?(:create_time)
2419
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
2420
+ @display_name = args[:display_name] if args.key?(:display_name)
2421
+ @etag = args[:etag] if args.key?(:etag)
2422
+ @name = args[:name] if args.key?(:name)
2423
+ @private_pool_v1_config = args[:private_pool_v1_config] if args.key?(:private_pool_v1_config)
2424
+ @state = args[:state] if args.key?(:state)
2425
+ @uid = args[:uid] if args.key?(:uid)
2426
+ @update_time = args[:update_time] if args.key?(:update_time)
2427
+ end
2428
+ end
2092
2429
  end
2093
2430
  end
2094
2431
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudbuildV1
18
18
  # Version of the google-apis-cloudbuild_v1 gem
19
- GEM_VERSION = "0.9.0"
19
+ GEM_VERSION = "0.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210613"
25
+ REVISION = "20210701"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,18 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class CreateWorkerPoolOperationMetadata
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class DeleteWorkerPoolOperationMetadata
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
91
103
  class Empty
92
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
105
 
@@ -142,6 +154,18 @@ module Google
142
154
  include Google::Apis::Core::JsonObjectSupport
143
155
  end
144
156
 
157
+ class ListWorkerPoolsResponse
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class NetworkConfig
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
145
169
  class Notification
146
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
171
 
@@ -184,6 +208,18 @@ module Google
184
208
  include Google::Apis::Core::JsonObjectSupport
185
209
  end
186
210
 
211
+ class PoolOption
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class PrivatePoolV1Config
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
187
223
  class PubsubConfig
188
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
225
 
@@ -298,6 +334,12 @@ module Google
298
334
  include Google::Apis::Core::JsonObjectSupport
299
335
  end
300
336
 
337
+ class UpdateWorkerPoolOperationMetadata
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
301
343
  class Volume
302
344
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
345
 
@@ -316,6 +358,18 @@ module Google
316
358
  include Google::Apis::Core::JsonObjectSupport
317
359
  end
318
360
 
361
+ class WorkerConfig
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
367
+ class WorkerPool
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
319
373
  class ArtifactObjects
320
374
  # @private
321
375
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -404,6 +458,8 @@ module Google
404
458
  property :log_streaming_option, as: 'logStreamingOption'
405
459
  property :logging, as: 'logging'
406
460
  property :machine_type, as: 'machineType'
461
+ property :pool, as: 'pool', class: Google::Apis::CloudbuildV1::PoolOption, decorator: Google::Apis::CloudbuildV1::PoolOption::Representation
462
+
407
463
  property :requested_verify_option, as: 'requestedVerifyOption'
408
464
  collection :secret_env, as: 'secretEnv'
409
465
  collection :source_provenance_hash, as: 'sourceProvenanceHash'
@@ -439,6 +495,7 @@ module Google
439
495
  class BuildTrigger
440
496
  # @private
441
497
  class Representation < Google::Apis::Core::JsonRepresentation
498
+ property :autodetect, as: 'autodetect'
442
499
  property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
443
500
 
444
501
  property :create_time, as: 'createTime'
@@ -489,6 +546,24 @@ module Google
489
546
  end
490
547
  end
491
548
 
549
+ class CreateWorkerPoolOperationMetadata
550
+ # @private
551
+ class Representation < Google::Apis::Core::JsonRepresentation
552
+ property :complete_time, as: 'completeTime'
553
+ property :create_time, as: 'createTime'
554
+ property :worker_pool, as: 'workerPool'
555
+ end
556
+ end
557
+
558
+ class DeleteWorkerPoolOperationMetadata
559
+ # @private
560
+ class Representation < Google::Apis::Core::JsonRepresentation
561
+ property :complete_time, as: 'completeTime'
562
+ property :create_time, as: 'createTime'
563
+ property :worker_pool, as: 'workerPool'
564
+ end
565
+ end
566
+
492
567
  class Empty
493
568
  # @private
494
569
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -566,6 +641,23 @@ module Google
566
641
  end
567
642
  end
568
643
 
644
+ class ListWorkerPoolsResponse
645
+ # @private
646
+ class Representation < Google::Apis::Core::JsonRepresentation
647
+ property :next_page_token, as: 'nextPageToken'
648
+ collection :worker_pools, as: 'workerPools', class: Google::Apis::CloudbuildV1::WorkerPool, decorator: Google::Apis::CloudbuildV1::WorkerPool::Representation
649
+
650
+ end
651
+ end
652
+
653
+ class NetworkConfig
654
+ # @private
655
+ class Representation < Google::Apis::Core::JsonRepresentation
656
+ property :egress_option, as: 'egressOption'
657
+ property :peered_network, as: 'peeredNetwork'
658
+ end
659
+ end
660
+
569
661
  class Notification
570
662
  # @private
571
663
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -637,6 +729,23 @@ module Google
637
729
  end
638
730
  end
639
731
 
732
+ class PoolOption
733
+ # @private
734
+ class Representation < Google::Apis::Core::JsonRepresentation
735
+ property :name, as: 'name'
736
+ end
737
+ end
738
+
739
+ class PrivatePoolV1Config
740
+ # @private
741
+ class Representation < Google::Apis::Core::JsonRepresentation
742
+ property :network_config, as: 'networkConfig', class: Google::Apis::CloudbuildV1::NetworkConfig, decorator: Google::Apis::CloudbuildV1::NetworkConfig::Representation
743
+
744
+ property :worker_config, as: 'workerConfig', class: Google::Apis::CloudbuildV1::WorkerConfig, decorator: Google::Apis::CloudbuildV1::WorkerConfig::Representation
745
+
746
+ end
747
+ end
748
+
640
749
  class PubsubConfig
641
750
  # @private
642
751
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -826,6 +935,15 @@ module Google
826
935
  end
827
936
  end
828
937
 
938
+ class UpdateWorkerPoolOperationMetadata
939
+ # @private
940
+ class Representation < Google::Apis::Core::JsonRepresentation
941
+ property :complete_time, as: 'completeTime'
942
+ property :create_time, as: 'createTime'
943
+ property :worker_pool, as: 'workerPool'
944
+ end
945
+ end
946
+
829
947
  class Volume
830
948
  # @private
831
949
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -849,6 +967,31 @@ module Google
849
967
  property :state, as: 'state'
850
968
  end
851
969
  end
970
+
971
+ class WorkerConfig
972
+ # @private
973
+ class Representation < Google::Apis::Core::JsonRepresentation
974
+ property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
975
+ property :machine_type, as: 'machineType'
976
+ end
977
+ end
978
+
979
+ class WorkerPool
980
+ # @private
981
+ class Representation < Google::Apis::Core::JsonRepresentation
982
+ hash :annotations, as: 'annotations'
983
+ property :create_time, as: 'createTime'
984
+ property :delete_time, as: 'deleteTime'
985
+ property :display_name, as: 'displayName'
986
+ property :etag, as: 'etag'
987
+ property :name, as: 'name'
988
+ property :private_pool_v1_config, as: 'privatePoolV1Config', class: Google::Apis::CloudbuildV1::PrivatePoolV1Config, decorator: Google::Apis::CloudbuildV1::PrivatePoolV1Config::Representation
989
+
990
+ property :state, as: 'state'
991
+ property :uid, as: 'uid'
992
+ property :update_time, as: 'updateTime'
993
+ end
994
+ end
852
995
  end
853
996
  end
854
997
  end
@@ -885,6 +885,205 @@ module Google
885
885
  execute_or_queue_command(command, &block)
886
886
  end
887
887
 
888
+ # Creates a `WorkerPool`.
889
+ # @param [String] parent
890
+ # Required. The parent resource where this worker pool will be created. Format: `
891
+ # projects/`project`/locations/`location``.
892
+ # @param [Google::Apis::CloudbuildV1::WorkerPool] worker_pool_object
893
+ # @param [Boolean] validate_only
894
+ # If set, validate the request and preview the response, but do not actually
895
+ # post it.
896
+ # @param [String] worker_pool_id
897
+ # Required. Immutable. The ID to use for the `WorkerPool`, which will become the
898
+ # final component of the resource name. This value should be 1-63 characters,
899
+ # and valid characters are /a-z-/.
900
+ # @param [String] fields
901
+ # Selector specifying which fields to include in a partial response.
902
+ # @param [String] quota_user
903
+ # Available to use for quota purposes for server-side applications. Can be any
904
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
905
+ # @param [Google::Apis::RequestOptions] options
906
+ # Request-specific options
907
+ #
908
+ # @yield [result, err] Result & error if block supplied
909
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
910
+ # @yieldparam err [StandardError] error object if request failed
911
+ #
912
+ # @return [Google::Apis::CloudbuildV1::Operation]
913
+ #
914
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
915
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
916
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
917
+ def create_project_location_worker_pool(parent, worker_pool_object = nil, validate_only: nil, worker_pool_id: nil, fields: nil, quota_user: nil, options: nil, &block)
918
+ command = make_simple_command(:post, 'v1/{+parent}/workerPools', options)
919
+ command.request_representation = Google::Apis::CloudbuildV1::WorkerPool::Representation
920
+ command.request_object = worker_pool_object
921
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
922
+ command.response_class = Google::Apis::CloudbuildV1::Operation
923
+ command.params['parent'] = parent unless parent.nil?
924
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
925
+ command.query['workerPoolId'] = worker_pool_id unless worker_pool_id.nil?
926
+ command.query['fields'] = fields unless fields.nil?
927
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
928
+ execute_or_queue_command(command, &block)
929
+ end
930
+
931
+ # Deletes a `WorkerPool`.
932
+ # @param [String] name
933
+ # Required. The name of the `WorkerPool` to delete. Format: `projects/`project`/
934
+ # locations/`workerPool`/workerPools/`workerPool``.
935
+ # @param [Boolean] allow_missing
936
+ # If set to true, and the `WorkerPool` is not found, the request will succeed
937
+ # but no action will be taken on the server.
938
+ # @param [String] etag
939
+ # Optional. If this is provided, it must match the server's etag on the
940
+ # workerpool for the request to be processed.
941
+ # @param [Boolean] validate_only
942
+ # If set, validate the request and preview the response, but do not actually
943
+ # post it.
944
+ # @param [String] fields
945
+ # Selector specifying which fields to include in a partial response.
946
+ # @param [String] quota_user
947
+ # Available to use for quota purposes for server-side applications. Can be any
948
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
949
+ # @param [Google::Apis::RequestOptions] options
950
+ # Request-specific options
951
+ #
952
+ # @yield [result, err] Result & error if block supplied
953
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
954
+ # @yieldparam err [StandardError] error object if request failed
955
+ #
956
+ # @return [Google::Apis::CloudbuildV1::Operation]
957
+ #
958
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
959
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
960
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
961
+ def delete_project_location_worker_pool(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
962
+ command = make_simple_command(:delete, 'v1/{+name}', options)
963
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
964
+ command.response_class = Google::Apis::CloudbuildV1::Operation
965
+ command.params['name'] = name unless name.nil?
966
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
967
+ command.query['etag'] = etag unless etag.nil?
968
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
969
+ command.query['fields'] = fields unless fields.nil?
970
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
971
+ execute_or_queue_command(command, &block)
972
+ end
973
+
974
+ # Returns details of a `WorkerPool`.
975
+ # @param [String] name
976
+ # Required. The name of the `WorkerPool` to retrieve. Format: `projects/`project`
977
+ # /locations/`location`/workerPools/`workerPool``.
978
+ # @param [String] fields
979
+ # Selector specifying which fields to include in a partial response.
980
+ # @param [String] quota_user
981
+ # Available to use for quota purposes for server-side applications. Can be any
982
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
983
+ # @param [Google::Apis::RequestOptions] options
984
+ # Request-specific options
985
+ #
986
+ # @yield [result, err] Result & error if block supplied
987
+ # @yieldparam result [Google::Apis::CloudbuildV1::WorkerPool] parsed result object
988
+ # @yieldparam err [StandardError] error object if request failed
989
+ #
990
+ # @return [Google::Apis::CloudbuildV1::WorkerPool]
991
+ #
992
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
993
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
994
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
995
+ def get_project_location_worker_pool(name, fields: nil, quota_user: nil, options: nil, &block)
996
+ command = make_simple_command(:get, 'v1/{+name}', options)
997
+ command.response_representation = Google::Apis::CloudbuildV1::WorkerPool::Representation
998
+ command.response_class = Google::Apis::CloudbuildV1::WorkerPool
999
+ command.params['name'] = name unless name.nil?
1000
+ command.query['fields'] = fields unless fields.nil?
1001
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1002
+ execute_or_queue_command(command, &block)
1003
+ end
1004
+
1005
+ # Lists `WorkerPool`s.
1006
+ # @param [String] parent
1007
+ # Required. The parent of the collection of `WorkerPools`. Format: `projects/`
1008
+ # project`/locations/location`.
1009
+ # @param [Fixnum] page_size
1010
+ # The maximum number of `WorkerPool`s to return. The service may return fewer
1011
+ # than this value. If omitted, the server will use a sensible default.
1012
+ # @param [String] page_token
1013
+ # A page token, received from a previous `ListWorkerPools` call. Provide this to
1014
+ # retrieve the subsequent page.
1015
+ # @param [String] fields
1016
+ # Selector specifying which fields to include in a partial response.
1017
+ # @param [String] quota_user
1018
+ # Available to use for quota purposes for server-side applications. Can be any
1019
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1020
+ # @param [Google::Apis::RequestOptions] options
1021
+ # Request-specific options
1022
+ #
1023
+ # @yield [result, err] Result & error if block supplied
1024
+ # @yieldparam result [Google::Apis::CloudbuildV1::ListWorkerPoolsResponse] parsed result object
1025
+ # @yieldparam err [StandardError] error object if request failed
1026
+ #
1027
+ # @return [Google::Apis::CloudbuildV1::ListWorkerPoolsResponse]
1028
+ #
1029
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1030
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1031
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1032
+ def list_project_location_worker_pools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1033
+ command = make_simple_command(:get, 'v1/{+parent}/workerPools', options)
1034
+ command.response_representation = Google::Apis::CloudbuildV1::ListWorkerPoolsResponse::Representation
1035
+ command.response_class = Google::Apis::CloudbuildV1::ListWorkerPoolsResponse
1036
+ command.params['parent'] = parent unless parent.nil?
1037
+ command.query['pageSize'] = page_size unless page_size.nil?
1038
+ command.query['pageToken'] = page_token unless page_token.nil?
1039
+ command.query['fields'] = fields unless fields.nil?
1040
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1041
+ execute_or_queue_command(command, &block)
1042
+ end
1043
+
1044
+ # Updates a `WorkerPool`.
1045
+ # @param [String] name
1046
+ # Output only. The resource name of the `WorkerPool`, with format `projects/`
1047
+ # project`/locations/`location`/workerPools/`worker_pool``. The value of ``
1048
+ # worker_pool`` is provided by `worker_pool_id` in `CreateWorkerPool` request
1049
+ # and the value of ``location`` is determined by the endpoint accessed.
1050
+ # @param [Google::Apis::CloudbuildV1::WorkerPool] worker_pool_object
1051
+ # @param [String] update_mask
1052
+ # A mask specifying which fields in `worker_pool` to update.
1053
+ # @param [Boolean] validate_only
1054
+ # If set, validate the request and preview the response, but do not actually
1055
+ # post it.
1056
+ # @param [String] fields
1057
+ # Selector specifying which fields to include in a partial response.
1058
+ # @param [String] quota_user
1059
+ # Available to use for quota purposes for server-side applications. Can be any
1060
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1061
+ # @param [Google::Apis::RequestOptions] options
1062
+ # Request-specific options
1063
+ #
1064
+ # @yield [result, err] Result & error if block supplied
1065
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
1066
+ # @yieldparam err [StandardError] error object if request failed
1067
+ #
1068
+ # @return [Google::Apis::CloudbuildV1::Operation]
1069
+ #
1070
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1071
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1072
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1073
+ def patch_project_location_worker_pool(name, worker_pool_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1074
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1075
+ command.request_representation = Google::Apis::CloudbuildV1::WorkerPool::Representation
1076
+ command.request_object = worker_pool_object
1077
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
1078
+ command.response_class = Google::Apis::CloudbuildV1::Operation
1079
+ command.params['name'] = name unless name.nil?
1080
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1081
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1082
+ command.query['fields'] = fields unless fields.nil?
1083
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1084
+ execute_or_queue_command(command, &block)
1085
+ end
1086
+
888
1087
  # Creates a new `BuildTrigger`. This API is experimental.
889
1088
  # @param [String] project_id
890
1089
  # Required. ID of the project for which to configure automatic builds.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudbuild_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-28 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.3'
29
+ version: '0.4'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.10.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1
63
63
  post_install_message:
64
64
  rdoc_options: []