google-cloud-build-v1 0.27.0 → 0.27.1

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: a603d7aa2ba1cddc96bbcb1069b93e6b9630f69149519a4a36a558b7302eed45
4
- data.tar.gz: 8ad0af1fe2fbd4e17a19d9e523fdd01bbb5820b50cda2d08c6d26d44adc71884
3
+ metadata.gz: 533f0c31da06f5b5c71fd244bc910a138149a6be80e67962d7726e3c6cfb2dcf
4
+ data.tar.gz: 067ddf8443d1174ff65b26b24160211ae267046c1b7233c5826d2d58b6f8353a
5
5
  SHA512:
6
- metadata.gz: fb2b78a9e49599f15fed8d1890a32ff8304f4e00dcf0ccbbb6740ad63f3836640a8a2d817eb8c0739cc793e6fd2bff31eb21db43a6c04714a426f8b1ad347085
7
- data.tar.gz: c5d18e953d9f37bc782588f05d52577b752aa1fedcc85a0f55953676e1e28380fc4b4907588080e8b62ea4c75ddb306edbc090e09ce7d4b413d0495d7f99550b
6
+ metadata.gz: 178a0b55764bef10e5898b3a78dcfc33bfc8ab0a854bb0c6ec37a840cdfa40958d201d79c7e12bd52062354dcc138c2b2b2c686ac4efdc6f91043ca2fd35c1c9
7
+ data.tar.gz: ba49f360c46330266a1f8a3b4c687958c740556f685595eb67dbf48409b0114591e81be3a389e3b1cc173ae9a446ca33f4fb8c52c14e7fb0ff2a2bb9e6cc3b83
data/README.md CHANGED
@@ -40,7 +40,7 @@ response = client.create_build request
40
40
  View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-build-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
- See also the [Product Documentation](https://cloud.google.com/cloud-build)
43
+ See also the [Product Documentation](https://cloud.google.com/build/docs)
44
44
  for general usage information.
45
45
 
46
46
  ## Enabling Logging
@@ -37,6 +37,9 @@ module Google
37
37
  # determine the status of the build.
38
38
  #
39
39
  class Client
40
+ # @private
41
+ API_VERSION = ""
42
+
40
43
  # @private
41
44
  DEFAULT_ENDPOINT_TEMPLATE = "cloudbuild.$UNIVERSE_DOMAIN$"
42
45
 
@@ -305,10 +308,11 @@ module Google
305
308
  # Customize the options with defaults
306
309
  metadata = @config.rpcs.create_build.metadata.to_h
307
310
 
308
- # Set x-goog-api-client and x-goog-user-project headers
311
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
309
312
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
310
313
  lib_name: @config.lib_name, lib_version: @config.lib_version,
311
314
  gapic_version: ::Google::Cloud::Build::V1::VERSION
315
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
312
316
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
313
317
 
314
318
  header_params = {}
@@ -402,10 +406,11 @@ module Google
402
406
  # Customize the options with defaults
403
407
  metadata = @config.rpcs.get_build.metadata.to_h
404
408
 
405
- # Set x-goog-api-client and x-goog-user-project headers
409
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
406
410
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
407
411
  lib_name: @config.lib_name, lib_version: @config.lib_version,
408
412
  gapic_version: ::Google::Cloud::Build::V1::VERSION
413
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
409
414
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
410
415
 
411
416
  header_params = {}
@@ -514,10 +519,11 @@ module Google
514
519
  # Customize the options with defaults
515
520
  metadata = @config.rpcs.list_builds.metadata.to_h
516
521
 
517
- # Set x-goog-api-client and x-goog-user-project headers
522
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
518
523
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
519
524
  lib_name: @config.lib_name, lib_version: @config.lib_version,
520
525
  gapic_version: ::Google::Cloud::Build::V1::VERSION
526
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
521
527
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
522
528
 
523
529
  header_params = {}
@@ -608,10 +614,11 @@ module Google
608
614
  # Customize the options with defaults
609
615
  metadata = @config.rpcs.cancel_build.metadata.to_h
610
616
 
611
- # Set x-goog-api-client and x-goog-user-project headers
617
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
612
618
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
613
619
  lib_name: @config.lib_name, lib_version: @config.lib_version,
614
620
  gapic_version: ::Google::Cloud::Build::V1::VERSION
621
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
615
622
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
616
623
 
617
624
  header_params = {}
@@ -734,10 +741,11 @@ module Google
734
741
  # Customize the options with defaults
735
742
  metadata = @config.rpcs.retry_build.metadata.to_h
736
743
 
737
- # Set x-goog-api-client and x-goog-user-project headers
744
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
738
745
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
739
746
  lib_name: @config.lib_name, lib_version: @config.lib_version,
740
747
  gapic_version: ::Google::Cloud::Build::V1::VERSION
748
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
741
749
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
742
750
 
743
751
  header_params = {}
@@ -838,10 +846,11 @@ module Google
838
846
  # Customize the options with defaults
839
847
  metadata = @config.rpcs.approve_build.metadata.to_h
840
848
 
841
- # Set x-goog-api-client and x-goog-user-project headers
849
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
842
850
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
843
851
  lib_name: @config.lib_name, lib_version: @config.lib_version,
844
852
  gapic_version: ::Google::Cloud::Build::V1::VERSION
853
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
845
854
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
846
855
 
847
856
  header_params = {}
@@ -934,10 +943,11 @@ module Google
934
943
  # Customize the options with defaults
935
944
  metadata = @config.rpcs.create_build_trigger.metadata.to_h
936
945
 
937
- # Set x-goog-api-client and x-goog-user-project headers
946
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
938
947
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
939
948
  lib_name: @config.lib_name, lib_version: @config.lib_version,
940
949
  gapic_version: ::Google::Cloud::Build::V1::VERSION
950
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
941
951
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
942
952
 
943
953
  header_params = {}
@@ -1029,10 +1039,11 @@ module Google
1029
1039
  # Customize the options with defaults
1030
1040
  metadata = @config.rpcs.get_build_trigger.metadata.to_h
1031
1041
 
1032
- # Set x-goog-api-client and x-goog-user-project headers
1042
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1033
1043
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1034
1044
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1035
1045
  gapic_version: ::Google::Cloud::Build::V1::VERSION
1046
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1036
1047
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1037
1048
 
1038
1049
  header_params = {}
@@ -1130,10 +1141,11 @@ module Google
1130
1141
  # Customize the options with defaults
1131
1142
  metadata = @config.rpcs.list_build_triggers.metadata.to_h
1132
1143
 
1133
- # Set x-goog-api-client and x-goog-user-project headers
1144
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1134
1145
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1135
1146
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1136
1147
  gapic_version: ::Google::Cloud::Build::V1::VERSION
1148
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1137
1149
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1138
1150
 
1139
1151
  header_params = {}
@@ -1226,10 +1238,11 @@ module Google
1226
1238
  # Customize the options with defaults
1227
1239
  metadata = @config.rpcs.delete_build_trigger.metadata.to_h
1228
1240
 
1229
- # Set x-goog-api-client and x-goog-user-project headers
1241
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1230
1242
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1231
1243
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1232
1244
  gapic_version: ::Google::Cloud::Build::V1::VERSION
1245
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1233
1246
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1234
1247
 
1235
1248
  header_params = {}
@@ -1324,10 +1337,11 @@ module Google
1324
1337
  # Customize the options with defaults
1325
1338
  metadata = @config.rpcs.update_build_trigger.metadata.to_h
1326
1339
 
1327
- # Set x-goog-api-client and x-goog-user-project headers
1340
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1328
1341
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1329
1342
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1330
1343
  gapic_version: ::Google::Cloud::Build::V1::VERSION
1344
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1331
1345
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1332
1346
 
1333
1347
  header_params = {}
@@ -1433,10 +1447,11 @@ module Google
1433
1447
  # Customize the options with defaults
1434
1448
  metadata = @config.rpcs.run_build_trigger.metadata.to_h
1435
1449
 
1436
- # Set x-goog-api-client and x-goog-user-project headers
1450
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1437
1451
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1438
1452
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1439
1453
  gapic_version: ::Google::Cloud::Build::V1::VERSION
1454
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1440
1455
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1441
1456
 
1442
1457
  header_params = {}
@@ -1532,10 +1547,11 @@ module Google
1532
1547
  # Customize the options with defaults
1533
1548
  metadata = @config.rpcs.receive_trigger_webhook.metadata.to_h
1534
1549
 
1535
- # Set x-goog-api-client and x-goog-user-project headers
1550
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1536
1551
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1537
1552
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1538
1553
  gapic_version: ::Google::Cloud::Build::V1::VERSION
1554
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1539
1555
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1540
1556
 
1541
1557
  header_params = {}
@@ -1639,10 +1655,11 @@ module Google
1639
1655
  # Customize the options with defaults
1640
1656
  metadata = @config.rpcs.create_worker_pool.metadata.to_h
1641
1657
 
1642
- # Set x-goog-api-client and x-goog-user-project headers
1658
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1643
1659
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1644
1660
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1645
1661
  gapic_version: ::Google::Cloud::Build::V1::VERSION
1662
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1646
1663
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1647
1664
 
1648
1665
  header_params = {}
@@ -1729,10 +1746,11 @@ module Google
1729
1746
  # Customize the options with defaults
1730
1747
  metadata = @config.rpcs.get_worker_pool.metadata.to_h
1731
1748
 
1732
- # Set x-goog-api-client and x-goog-user-project headers
1749
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1733
1750
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1734
1751
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1735
1752
  gapic_version: ::Google::Cloud::Build::V1::VERSION
1753
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1736
1754
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1737
1755
 
1738
1756
  header_params = {}
@@ -1835,10 +1853,11 @@ module Google
1835
1853
  # Customize the options with defaults
1836
1854
  metadata = @config.rpcs.delete_worker_pool.metadata.to_h
1837
1855
 
1838
- # Set x-goog-api-client and x-goog-user-project headers
1856
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1839
1857
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1840
1858
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1841
1859
  gapic_version: ::Google::Cloud::Build::V1::VERSION
1860
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1842
1861
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1843
1862
 
1844
1863
  header_params = {}
@@ -1939,10 +1958,11 @@ module Google
1939
1958
  # Customize the options with defaults
1940
1959
  metadata = @config.rpcs.update_worker_pool.metadata.to_h
1941
1960
 
1942
- # Set x-goog-api-client and x-goog-user-project headers
1961
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1943
1962
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1944
1963
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1945
1964
  gapic_version: ::Google::Cloud::Build::V1::VERSION
1965
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1946
1966
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1947
1967
 
1948
1968
  header_params = {}
@@ -2039,10 +2059,11 @@ module Google
2039
2059
  # Customize the options with defaults
2040
2060
  metadata = @config.rpcs.list_worker_pools.metadata.to_h
2041
2061
 
2042
- # Set x-goog-api-client and x-goog-user-project headers
2062
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2043
2063
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2044
2064
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2045
2065
  gapic_version: ::Google::Cloud::Build::V1::VERSION
2066
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2046
2067
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2047
2068
 
2048
2069
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module CloudBuild
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "cloudbuild.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Build::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Build::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Build::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Build::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Build::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -39,6 +39,9 @@ module Google
39
39
  # determine the status of the build.
40
40
  #
41
41
  class Client
42
+ # @private
43
+ API_VERSION = ""
44
+
42
45
  # @private
43
46
  DEFAULT_ENDPOINT_TEMPLATE = "cloudbuild.$UNIVERSE_DOMAIN$"
44
47
 
@@ -297,12 +300,13 @@ module Google
297
300
  # Customize the options with defaults
298
301
  call_metadata = @config.rpcs.create_build.metadata.to_h
299
302
 
300
- # Set x-goog-api-client and x-goog-user-project headers
303
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
301
304
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
302
305
  lib_name: @config.lib_name, lib_version: @config.lib_version,
303
306
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
304
307
  transports_version_send: [:rest]
305
308
 
309
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
306
310
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
307
311
 
308
312
  options.apply_defaults timeout: @config.rpcs.create_build.timeout,
@@ -384,12 +388,13 @@ module Google
384
388
  # Customize the options with defaults
385
389
  call_metadata = @config.rpcs.get_build.metadata.to_h
386
390
 
387
- # Set x-goog-api-client and x-goog-user-project headers
391
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
388
392
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
389
393
  lib_name: @config.lib_name, lib_version: @config.lib_version,
390
394
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
391
395
  transports_version_send: [:rest]
392
396
 
397
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
393
398
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
394
399
 
395
400
  options.apply_defaults timeout: @config.rpcs.get_build.timeout,
@@ -486,12 +491,13 @@ module Google
486
491
  # Customize the options with defaults
487
492
  call_metadata = @config.rpcs.list_builds.metadata.to_h
488
493
 
489
- # Set x-goog-api-client and x-goog-user-project headers
494
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
490
495
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
491
496
  lib_name: @config.lib_name, lib_version: @config.lib_version,
492
497
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
493
498
  transports_version_send: [:rest]
494
499
 
500
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
495
501
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
496
502
 
497
503
  options.apply_defaults timeout: @config.rpcs.list_builds.timeout,
@@ -570,12 +576,13 @@ module Google
570
576
  # Customize the options with defaults
571
577
  call_metadata = @config.rpcs.cancel_build.metadata.to_h
572
578
 
573
- # Set x-goog-api-client and x-goog-user-project headers
579
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
574
580
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
575
581
  lib_name: @config.lib_name, lib_version: @config.lib_version,
576
582
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
577
583
  transports_version_send: [:rest]
578
584
 
585
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
579
586
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
580
587
 
581
588
  options.apply_defaults timeout: @config.rpcs.cancel_build.timeout,
@@ -686,12 +693,13 @@ module Google
686
693
  # Customize the options with defaults
687
694
  call_metadata = @config.rpcs.retry_build.metadata.to_h
688
695
 
689
- # Set x-goog-api-client and x-goog-user-project headers
696
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
690
697
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
691
698
  lib_name: @config.lib_name, lib_version: @config.lib_version,
692
699
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
693
700
  transports_version_send: [:rest]
694
701
 
702
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
695
703
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
696
704
 
697
705
  options.apply_defaults timeout: @config.rpcs.retry_build.timeout,
@@ -780,12 +788,13 @@ module Google
780
788
  # Customize the options with defaults
781
789
  call_metadata = @config.rpcs.approve_build.metadata.to_h
782
790
 
783
- # Set x-goog-api-client and x-goog-user-project headers
791
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
784
792
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
785
793
  lib_name: @config.lib_name, lib_version: @config.lib_version,
786
794
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
787
795
  transports_version_send: [:rest]
788
796
 
797
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
789
798
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
790
799
 
791
800
  options.apply_defaults timeout: @config.rpcs.approve_build.timeout,
@@ -866,12 +875,13 @@ module Google
866
875
  # Customize the options with defaults
867
876
  call_metadata = @config.rpcs.create_build_trigger.metadata.to_h
868
877
 
869
- # Set x-goog-api-client and x-goog-user-project headers
878
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
870
879
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
871
880
  lib_name: @config.lib_name, lib_version: @config.lib_version,
872
881
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
873
882
  transports_version_send: [:rest]
874
883
 
884
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
875
885
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
876
886
 
877
887
  options.apply_defaults timeout: @config.rpcs.create_build_trigger.timeout,
@@ -951,12 +961,13 @@ module Google
951
961
  # Customize the options with defaults
952
962
  call_metadata = @config.rpcs.get_build_trigger.metadata.to_h
953
963
 
954
- # Set x-goog-api-client and x-goog-user-project headers
964
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
955
965
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
956
966
  lib_name: @config.lib_name, lib_version: @config.lib_version,
957
967
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
958
968
  transports_version_send: [:rest]
959
969
 
970
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
960
971
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
961
972
 
962
973
  options.apply_defaults timeout: @config.rpcs.get_build_trigger.timeout,
@@ -1042,12 +1053,13 @@ module Google
1042
1053
  # Customize the options with defaults
1043
1054
  call_metadata = @config.rpcs.list_build_triggers.metadata.to_h
1044
1055
 
1045
- # Set x-goog-api-client and x-goog-user-project headers
1056
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1046
1057
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1047
1058
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1048
1059
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
1049
1060
  transports_version_send: [:rest]
1050
1061
 
1062
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1051
1063
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1052
1064
 
1053
1065
  options.apply_defaults timeout: @config.rpcs.list_build_triggers.timeout,
@@ -1128,12 +1140,13 @@ module Google
1128
1140
  # Customize the options with defaults
1129
1141
  call_metadata = @config.rpcs.delete_build_trigger.metadata.to_h
1130
1142
 
1131
- # Set x-goog-api-client and x-goog-user-project headers
1143
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1132
1144
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1133
1145
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1134
1146
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
1135
1147
  transports_version_send: [:rest]
1136
1148
 
1149
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1137
1150
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1138
1151
 
1139
1152
  options.apply_defaults timeout: @config.rpcs.delete_build_trigger.timeout,
@@ -1216,12 +1229,13 @@ module Google
1216
1229
  # Customize the options with defaults
1217
1230
  call_metadata = @config.rpcs.update_build_trigger.metadata.to_h
1218
1231
 
1219
- # Set x-goog-api-client and x-goog-user-project headers
1232
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1220
1233
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1221
1234
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1222
1235
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
1223
1236
  transports_version_send: [:rest]
1224
1237
 
1238
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1225
1239
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1226
1240
 
1227
1241
  options.apply_defaults timeout: @config.rpcs.update_build_trigger.timeout,
@@ -1315,12 +1329,13 @@ module Google
1315
1329
  # Customize the options with defaults
1316
1330
  call_metadata = @config.rpcs.run_build_trigger.metadata.to_h
1317
1331
 
1318
- # Set x-goog-api-client and x-goog-user-project headers
1332
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1319
1333
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1320
1334
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1321
1335
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
1322
1336
  transports_version_send: [:rest]
1323
1337
 
1338
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1324
1339
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1325
1340
 
1326
1341
  options.apply_defaults timeout: @config.rpcs.run_build_trigger.timeout,
@@ -1404,12 +1419,13 @@ module Google
1404
1419
  # Customize the options with defaults
1405
1420
  call_metadata = @config.rpcs.receive_trigger_webhook.metadata.to_h
1406
1421
 
1407
- # Set x-goog-api-client and x-goog-user-project headers
1422
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1408
1423
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1409
1424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1410
1425
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
1411
1426
  transports_version_send: [:rest]
1412
1427
 
1428
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1413
1429
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1414
1430
 
1415
1431
  options.apply_defaults timeout: @config.rpcs.receive_trigger_webhook.timeout,
@@ -1501,12 +1517,13 @@ module Google
1501
1517
  # Customize the options with defaults
1502
1518
  call_metadata = @config.rpcs.create_worker_pool.metadata.to_h
1503
1519
 
1504
- # Set x-goog-api-client and x-goog-user-project headers
1520
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1505
1521
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1506
1522
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1507
1523
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
1508
1524
  transports_version_send: [:rest]
1509
1525
 
1526
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1510
1527
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1511
1528
 
1512
1529
  options.apply_defaults timeout: @config.rpcs.create_worker_pool.timeout,
@@ -1581,12 +1598,13 @@ module Google
1581
1598
  # Customize the options with defaults
1582
1599
  call_metadata = @config.rpcs.get_worker_pool.metadata.to_h
1583
1600
 
1584
- # Set x-goog-api-client and x-goog-user-project headers
1601
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1585
1602
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1586
1603
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1587
1604
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
1588
1605
  transports_version_send: [:rest]
1589
1606
 
1607
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1590
1608
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1591
1609
 
1592
1610
  options.apply_defaults timeout: @config.rpcs.get_worker_pool.timeout,
@@ -1677,12 +1695,13 @@ module Google
1677
1695
  # Customize the options with defaults
1678
1696
  call_metadata = @config.rpcs.delete_worker_pool.metadata.to_h
1679
1697
 
1680
- # Set x-goog-api-client and x-goog-user-project headers
1698
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1681
1699
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1682
1700
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1683
1701
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
1684
1702
  transports_version_send: [:rest]
1685
1703
 
1704
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1686
1705
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1687
1706
 
1688
1707
  options.apply_defaults timeout: @config.rpcs.delete_worker_pool.timeout,
@@ -1771,12 +1790,13 @@ module Google
1771
1790
  # Customize the options with defaults
1772
1791
  call_metadata = @config.rpcs.update_worker_pool.metadata.to_h
1773
1792
 
1774
- # Set x-goog-api-client and x-goog-user-project headers
1793
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1775
1794
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1776
1795
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1777
1796
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
1778
1797
  transports_version_send: [:rest]
1779
1798
 
1799
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1780
1800
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1781
1801
 
1782
1802
  options.apply_defaults timeout: @config.rpcs.update_worker_pool.timeout,
@@ -1861,12 +1881,13 @@ module Google
1861
1881
  # Customize the options with defaults
1862
1882
  call_metadata = @config.rpcs.list_worker_pools.metadata.to_h
1863
1883
 
1864
- # Set x-goog-api-client and x-goog-user-project headers
1884
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1865
1885
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1866
1886
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1867
1887
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
1868
1888
  transports_version_send: [:rest]
1869
1889
 
1890
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1870
1891
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1871
1892
 
1872
1893
  options.apply_defaults timeout: @config.rpcs.list_worker_pools.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "cloudbuild.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::Build::V1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Build
23
23
  module V1
24
- VERSION = "0.27.0"
24
+ VERSION = "0.27.1"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-build-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.27.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common