google-cloud-build-v2 0.7.0 → 0.7.1

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: 9a74393438365ca9dbee43de5708933b4adb76d97d61e47a688e647677422266
4
- data.tar.gz: 0efe935f94011b545acc7bbb0470c878e4abca12a0ad8cbeedbbde627571f9cc
3
+ metadata.gz: a4740240fed77a89480b408e63a768b9420fb59c46ed561b742bc2c19c707910
4
+ data.tar.gz: 4f7a22465f18b749a856ef07684eb948efeecbfa5ec782822aef4d1e65fc6438
5
5
  SHA512:
6
- metadata.gz: 67fc086b82e2aa9d7eda9203461449d3b546ec9da2afd1de1d59469b323b8c84ce30a80dbbe26af1b6763f804a76ab1ed7604892be0b5c137b532821be9039ab
7
- data.tar.gz: 46a8ca2abd17b4a78ffb38d23027f4bb7594c74208d46bac70eb9ee569a0a277438f42dc542a8ca4e0df2bf56914b6669c6dfd8dfb2b8d8052b5412a95829ae5
6
+ metadata.gz: f76886c3701bff1c0374902021951ff3a20085f87dcebd209925e449b0b845ff87eb46c1c77355567e874d48250616238164944fcfc294e233722305ce827f2e
7
+ data.tar.gz: aea4702156d76b37b75ce117d469764e694ba1f5f9cebb883a2c84407d91e5c38dc9f024f1c64ed64fd1919b079f28ef97b8b64ded0ee3fd3b9bebca8f8a0535
data/README.md CHANGED
@@ -40,7 +40,7 @@ response = client.create_connection request
40
40
  View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-build-v2/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
@@ -32,6 +32,9 @@ module Google
32
32
  # Manages connections to source code repositories.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "cloudbuild.$UNIVERSE_DOMAIN$"
37
40
 
@@ -319,10 +322,11 @@ module Google
319
322
  # Customize the options with defaults
320
323
  metadata = @config.rpcs.create_connection.metadata.to_h
321
324
 
322
- # Set x-goog-api-client and x-goog-user-project headers
325
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
323
326
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
324
327
  lib_name: @config.lib_name, lib_version: @config.lib_version,
325
328
  gapic_version: ::Google::Cloud::Build::V2::VERSION
329
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
326
330
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
327
331
 
328
332
  header_params = {}
@@ -406,10 +410,11 @@ module Google
406
410
  # Customize the options with defaults
407
411
  metadata = @config.rpcs.get_connection.metadata.to_h
408
412
 
409
- # Set x-goog-api-client and x-goog-user-project headers
413
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
410
414
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
411
415
  lib_name: @config.lib_name, lib_version: @config.lib_version,
412
416
  gapic_version: ::Google::Cloud::Build::V2::VERSION
417
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
413
418
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
414
419
 
415
420
  header_params = {}
@@ -500,10 +505,11 @@ module Google
500
505
  # Customize the options with defaults
501
506
  metadata = @config.rpcs.list_connections.metadata.to_h
502
507
 
503
- # Set x-goog-api-client and x-goog-user-project headers
508
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
504
509
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
505
510
  lib_name: @config.lib_name, lib_version: @config.lib_version,
506
511
  gapic_version: ::Google::Cloud::Build::V2::VERSION
512
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
507
513
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
508
514
 
509
515
  header_params = {}
@@ -605,10 +611,11 @@ module Google
605
611
  # Customize the options with defaults
606
612
  metadata = @config.rpcs.update_connection.metadata.to_h
607
613
 
608
- # Set x-goog-api-client and x-goog-user-project headers
614
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
609
615
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
610
616
  lib_name: @config.lib_name, lib_version: @config.lib_version,
611
617
  gapic_version: ::Google::Cloud::Build::V2::VERSION
618
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
612
619
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
613
620
 
614
621
  header_params = {}
@@ -705,10 +712,11 @@ module Google
705
712
  # Customize the options with defaults
706
713
  metadata = @config.rpcs.delete_connection.metadata.to_h
707
714
 
708
- # Set x-goog-api-client and x-goog-user-project headers
715
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
709
716
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
710
717
  lib_name: @config.lib_name, lib_version: @config.lib_version,
711
718
  gapic_version: ::Google::Cloud::Build::V2::VERSION
719
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
712
720
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
713
721
 
714
722
  header_params = {}
@@ -807,10 +815,11 @@ module Google
807
815
  # Customize the options with defaults
808
816
  metadata = @config.rpcs.create_repository.metadata.to_h
809
817
 
810
- # Set x-goog-api-client and x-goog-user-project headers
818
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
811
819
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
812
820
  lib_name: @config.lib_name, lib_version: @config.lib_version,
813
821
  gapic_version: ::Google::Cloud::Build::V2::VERSION
822
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
814
823
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
815
824
 
816
825
  header_params = {}
@@ -905,10 +914,11 @@ module Google
905
914
  # Customize the options with defaults
906
915
  metadata = @config.rpcs.batch_create_repositories.metadata.to_h
907
916
 
908
- # Set x-goog-api-client and x-goog-user-project headers
917
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
909
918
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
910
919
  lib_name: @config.lib_name, lib_version: @config.lib_version,
911
920
  gapic_version: ::Google::Cloud::Build::V2::VERSION
921
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
912
922
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
913
923
 
914
924
  header_params = {}
@@ -992,10 +1002,11 @@ module Google
992
1002
  # Customize the options with defaults
993
1003
  metadata = @config.rpcs.get_repository.metadata.to_h
994
1004
 
995
- # Set x-goog-api-client and x-goog-user-project headers
1005
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
996
1006
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
997
1007
  lib_name: @config.lib_name, lib_version: @config.lib_version,
998
1008
  gapic_version: ::Google::Cloud::Build::V2::VERSION
1009
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
999
1010
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1000
1011
 
1001
1012
  header_params = {}
@@ -1091,10 +1102,11 @@ module Google
1091
1102
  # Customize the options with defaults
1092
1103
  metadata = @config.rpcs.list_repositories.metadata.to_h
1093
1104
 
1094
- # Set x-goog-api-client and x-goog-user-project headers
1105
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1095
1106
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1096
1107
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1097
1108
  gapic_version: ::Google::Cloud::Build::V2::VERSION
1109
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1098
1110
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1099
1111
 
1100
1112
  header_params = {}
@@ -1191,10 +1203,11 @@ module Google
1191
1203
  # Customize the options with defaults
1192
1204
  metadata = @config.rpcs.delete_repository.metadata.to_h
1193
1205
 
1194
- # Set x-goog-api-client and x-goog-user-project headers
1206
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1195
1207
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1196
1208
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1197
1209
  gapic_version: ::Google::Cloud::Build::V2::VERSION
1210
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1198
1211
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1199
1212
 
1200
1213
  header_params = {}
@@ -1278,10 +1291,11 @@ module Google
1278
1291
  # Customize the options with defaults
1279
1292
  metadata = @config.rpcs.fetch_read_write_token.metadata.to_h
1280
1293
 
1281
- # Set x-goog-api-client and x-goog-user-project headers
1294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1282
1295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1283
1296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1284
1297
  gapic_version: ::Google::Cloud::Build::V2::VERSION
1298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1285
1299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1286
1300
 
1287
1301
  header_params = {}
@@ -1364,10 +1378,11 @@ module Google
1364
1378
  # Customize the options with defaults
1365
1379
  metadata = @config.rpcs.fetch_read_token.metadata.to_h
1366
1380
 
1367
- # Set x-goog-api-client and x-goog-user-project headers
1381
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1368
1382
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1369
1383
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1370
1384
  gapic_version: ::Google::Cloud::Build::V2::VERSION
1385
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1371
1386
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1372
1387
 
1373
1388
  header_params = {}
@@ -1459,10 +1474,11 @@ module Google
1459
1474
  # Customize the options with defaults
1460
1475
  metadata = @config.rpcs.fetch_linkable_repositories.metadata.to_h
1461
1476
 
1462
- # Set x-goog-api-client and x-goog-user-project headers
1477
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1463
1478
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1464
1479
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1465
1480
  gapic_version: ::Google::Cloud::Build::V2::VERSION
1481
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1466
1482
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1467
1483
 
1468
1484
  header_params = {}
@@ -1548,10 +1564,11 @@ module Google
1548
1564
  # Customize the options with defaults
1549
1565
  metadata = @config.rpcs.fetch_git_refs.metadata.to_h
1550
1566
 
1551
- # Set x-goog-api-client and x-goog-user-project headers
1567
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1552
1568
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1553
1569
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1554
1570
  gapic_version: ::Google::Cloud::Build::V2::VERSION
1571
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1555
1572
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1556
1573
 
1557
1574
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module RepositoryManager
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::V2::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::V2::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::V2::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::V2::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::V2::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,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Build
23
23
  module V2
24
- VERSION = "0.7.0"
24
+ VERSION = "0.7.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-build-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.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-03-18 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