google-cloud-build-v2 0.7.0 → 0.7.2

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: 9a74393438365ca9dbee43de5708933b4adb76d97d61e47a688e647677422266
4
- data.tar.gz: 0efe935f94011b545acc7bbb0470c878e4abca12a0ad8cbeedbbde627571f9cc
3
+ metadata.gz: 31b74006e8fae8145bbeb9a0df3e9f2300837e18b120509da90c1aa127bf5331
4
+ data.tar.gz: 95b238a99d3fb1cc591fea2a049fe2d9c6354c0dda3bfa0843b60270df43c57a
5
5
  SHA512:
6
- metadata.gz: 67fc086b82e2aa9d7eda9203461449d3b546ec9da2afd1de1d59469b323b8c84ce30a80dbbe26af1b6763f804a76ab1ed7604892be0b5c137b532821be9039ab
7
- data.tar.gz: 46a8ca2abd17b4a78ffb38d23027f4bb7594c74208d46bac70eb9ee569a0a277438f42dc542a8ca4e0df2bf56914b6669c6dfd8dfb2b8d8052b5412a95829ae5
6
+ metadata.gz: 6887e563c2fb67b266f89581052a22474c0cb3706b61852f8e1277df59441a6ebe19b599843598aed8d29edd4cc6d78f200d63c8dcc11dd57d118d8df1e9e8e0
7
+ data.tar.gz: c7919dbebe240841a00c0a3825e40610f9e20a421ca13ebe537cf27ff79348441f6e677665d22c6e35ad91872f4a45ba6885f019de2f6f2c113a01ce06ac0111
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.2"
25
25
  end
26
26
  end
27
27
  end
@@ -196,9 +196,26 @@ module Google
196
196
  # @!attribute [rw] common
197
197
  # @return [::Google::Api::CommonLanguageSettings]
198
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
199
202
  class PythonSettings
200
203
  include ::Google::Protobuf::MessageExts
201
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
202
219
  end
203
220
 
204
221
  # Settings for Node client libraries.
@@ -290,6 +307,13 @@ module Google
290
307
  # @return [::String]
291
308
  # The fully qualified name of the method, for which the options below apply.
292
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
293
317
  # @!attribute [rw] long_running
294
318
  # @return [::Google::Api::MethodSettings::LongRunning]
295
319
  # Describes settings to use for long-running operations when generating
@@ -298,17 +322,14 @@ module Google
298
322
  #
299
323
  # Example of a YAML configuration::
300
324
  #
301
- # publishing:
302
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
303
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
304
328
  # long_running:
305
- # initial_poll_delay:
306
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
307
330
  # poll_delay_multiplier: 1.5
308
- # max_poll_delay:
309
- # seconds: 360 # 6 minutes
310
- # total_poll_timeout:
311
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
312
333
  # @!attribute [rw] auto_populated_fields
313
334
  # @return [::Array<::String>]
314
335
  # List of top-level fields of the request message, that should be
@@ -317,8 +338,8 @@ module Google
317
338
  #
318
339
  # Example of a YAML configuration:
319
340
  #
320
- # publishing:
321
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
322
343
  # - selector: google.example.v1.ExampleService.CreateExample
323
344
  # auto_populated_fields:
324
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
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.2
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-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common