google-cloud-build-v1 0.9.1 → 0.9.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: 87cec34b3731a8422b8838c88036bde083c01d8d518bb75a807bbfccfb4ec186
4
- data.tar.gz: '09a5c66fe71145e489ba71d0f14c2dd191cdebc4f26b0539b88da82543f92914'
3
+ metadata.gz: 06cef793a91b08695313564873d2b96737d6c44c228c8cb03496c07d113f2cf9
4
+ data.tar.gz: f62d695108da2e93927c59dbde99567e62f1fb1d0f6a83121f8f28315c16cba2
5
5
  SHA512:
6
- metadata.gz: 9d1ea8844ac6b8ddafc48c0320523250b53cbbf767cb84ba91146dbe04993a82c083f15e93f914e51b00f41300df810e0b32a9befdace9c8a9b93b2f55d85e4f
7
- data.tar.gz: c58f87a4fd938763d066b609e14871062b7e56d24c5c984a46e60d746b81ac64db3d8809cec0fd70172fbaa412cede34687123db854db545fe4371342d7523f6
6
+ metadata.gz: 1ff3f0ee25fc69dad4e875f1f882df357b2e7c9d447375d761a3deb8a4042a1095d416ff467c0f53a76ab72c13a251db803d027a2199dbaaa70f1f0497b7c011
7
+ data.tar.gz: b564660edcef7252f2faedfcbc34c099168097b08b0924275b7774967d4edaf21d35c685f14bb0f1c9a55c4218e8f5ca381694666cc1c7b8f9cd48af1bf79f40
@@ -48,13 +48,12 @@ module Google
48
48
  # See {::Google::Cloud::Build::V1::CloudBuild::Client::Configuration}
49
49
  # for a description of the configuration fields.
50
50
  #
51
- # ## Example
51
+ # @example
52
52
  #
53
- # To modify the configuration for all CloudBuild clients:
54
- #
55
- # ::Google::Cloud::Build::V1::CloudBuild::Client.configure do |config|
56
- # config.timeout = 10.0
57
- # end
53
+ # # Modify the configuration for all CloudBuild clients
54
+ # ::Google::Cloud::Build::V1::CloudBuild::Client.configure do |config|
55
+ # config.timeout = 10.0
56
+ # end
58
57
  #
59
58
  # @yield [config] Configure the Client client.
60
59
  # @yieldparam config [Client::Configuration]
@@ -154,19 +153,15 @@ module Google
154
153
  ##
155
154
  # Create a new CloudBuild client object.
156
155
  #
157
- # ## Examples
158
- #
159
- # To create a new CloudBuild client with the default
160
- # configuration:
161
- #
162
- # client = ::Google::Cloud::Build::V1::CloudBuild::Client.new
156
+ # @example
163
157
  #
164
- # To create a new CloudBuild client with a custom
165
- # configuration:
158
+ # # Create a client using the default configuration
159
+ # client = ::Google::Cloud::Build::V1::CloudBuild::Client.new
166
160
  #
167
- # client = ::Google::Cloud::Build::V1::CloudBuild::Client.new do |config|
168
- # config.timeout = 10.0
169
- # end
161
+ # # Create a client using a custom configuration
162
+ # client = ::Google::Cloud::Build::V1::CloudBuild::Client.new do |config|
163
+ # config.timeout = 10.0
164
+ # end
170
165
  #
171
166
  # @yield [config] Configure the CloudBuild client.
172
167
  # @yieldparam config [Client::Configuration]
@@ -186,10 +181,9 @@ module Google
186
181
 
187
182
  # Create credentials
188
183
  credentials = @config.credentials
189
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
184
+ # Use self-signed JWT if the endpoint is unchanged from default,
190
185
  # but only if the default endpoint does not have a region prefix.
191
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
192
- @config.endpoint == Client.configure.endpoint &&
186
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
193
187
  !@config.endpoint.split(".").first.include?("-")
194
188
  credentials ||= Credentials.default scope: @config.scope,
195
189
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -286,7 +280,9 @@ module Google
286
280
  options.apply_defaults timeout: @config.rpcs.create_build.timeout,
287
281
  metadata: metadata,
288
282
  retry_policy: @config.rpcs.create_build.retry_policy
289
- options.apply_defaults metadata: @config.metadata,
283
+
284
+ options.apply_defaults timeout: @config.timeout,
285
+ metadata: @config.metadata,
290
286
  retry_policy: @config.retry_policy
291
287
 
292
288
  @cloud_build_stub.call_rpc :create_build, request, options: options do |response, operation|
@@ -362,7 +358,9 @@ module Google
362
358
  options.apply_defaults timeout: @config.rpcs.get_build.timeout,
363
359
  metadata: metadata,
364
360
  retry_policy: @config.rpcs.get_build.retry_policy
365
- options.apply_defaults metadata: @config.metadata,
361
+
362
+ options.apply_defaults timeout: @config.timeout,
363
+ metadata: @config.metadata,
366
364
  retry_policy: @config.retry_policy
367
365
 
368
366
  @cloud_build_stub.call_rpc :get_build, request, options: options do |response, operation|
@@ -448,7 +446,9 @@ module Google
448
446
  options.apply_defaults timeout: @config.rpcs.list_builds.timeout,
449
447
  metadata: metadata,
450
448
  retry_policy: @config.rpcs.list_builds.retry_policy
451
- options.apply_defaults metadata: @config.metadata,
449
+
450
+ options.apply_defaults timeout: @config.timeout,
451
+ metadata: @config.metadata,
452
452
  retry_policy: @config.retry_policy
453
453
 
454
454
  @cloud_build_stub.call_rpc :list_builds, request, options: options do |response, operation|
@@ -521,7 +521,9 @@ module Google
521
521
  options.apply_defaults timeout: @config.rpcs.cancel_build.timeout,
522
522
  metadata: metadata,
523
523
  retry_policy: @config.rpcs.cancel_build.retry_policy
524
- options.apply_defaults metadata: @config.metadata,
524
+
525
+ options.apply_defaults timeout: @config.timeout,
526
+ metadata: @config.metadata,
525
527
  retry_policy: @config.retry_policy
526
528
 
527
529
  @cloud_build_stub.call_rpc :cancel_build, request, options: options do |response, operation|
@@ -619,7 +621,9 @@ module Google
619
621
  options.apply_defaults timeout: @config.rpcs.retry_build.timeout,
620
622
  metadata: metadata,
621
623
  retry_policy: @config.rpcs.retry_build.retry_policy
622
- options.apply_defaults metadata: @config.metadata,
624
+
625
+ options.apply_defaults timeout: @config.timeout,
626
+ metadata: @config.metadata,
623
627
  retry_policy: @config.retry_policy
624
628
 
625
629
  @cloud_build_stub.call_rpc :retry_build, request, options: options do |response, operation|
@@ -693,7 +697,9 @@ module Google
693
697
  options.apply_defaults timeout: @config.rpcs.create_build_trigger.timeout,
694
698
  metadata: metadata,
695
699
  retry_policy: @config.rpcs.create_build_trigger.retry_policy
696
- options.apply_defaults metadata: @config.metadata,
700
+
701
+ options.apply_defaults timeout: @config.timeout,
702
+ metadata: @config.metadata,
697
703
  retry_policy: @config.retry_policy
698
704
 
699
705
  @cloud_build_stub.call_rpc :create_build_trigger, request, options: options do |response, operation|
@@ -767,7 +773,9 @@ module Google
767
773
  options.apply_defaults timeout: @config.rpcs.get_build_trigger.timeout,
768
774
  metadata: metadata,
769
775
  retry_policy: @config.rpcs.get_build_trigger.retry_policy
770
- options.apply_defaults metadata: @config.metadata,
776
+
777
+ options.apply_defaults timeout: @config.timeout,
778
+ metadata: @config.metadata,
771
779
  retry_policy: @config.retry_policy
772
780
 
773
781
  @cloud_build_stub.call_rpc :get_build_trigger, request, options: options do |response, operation|
@@ -842,7 +850,9 @@ module Google
842
850
  options.apply_defaults timeout: @config.rpcs.list_build_triggers.timeout,
843
851
  metadata: metadata,
844
852
  retry_policy: @config.rpcs.list_build_triggers.retry_policy
845
- options.apply_defaults metadata: @config.metadata,
853
+
854
+ options.apply_defaults timeout: @config.timeout,
855
+ metadata: @config.metadata,
846
856
  retry_policy: @config.retry_policy
847
857
 
848
858
  @cloud_build_stub.call_rpc :list_build_triggers, request, options: options do |response, operation|
@@ -917,7 +927,9 @@ module Google
917
927
  options.apply_defaults timeout: @config.rpcs.delete_build_trigger.timeout,
918
928
  metadata: metadata,
919
929
  retry_policy: @config.rpcs.delete_build_trigger.retry_policy
920
- options.apply_defaults metadata: @config.metadata,
930
+
931
+ options.apply_defaults timeout: @config.timeout,
932
+ metadata: @config.metadata,
921
933
  retry_policy: @config.retry_policy
922
934
 
923
935
  @cloud_build_stub.call_rpc :delete_build_trigger, request, options: options do |response, operation|
@@ -990,7 +1002,9 @@ module Google
990
1002
  options.apply_defaults timeout: @config.rpcs.update_build_trigger.timeout,
991
1003
  metadata: metadata,
992
1004
  retry_policy: @config.rpcs.update_build_trigger.retry_policy
993
- options.apply_defaults metadata: @config.metadata,
1005
+
1006
+ options.apply_defaults timeout: @config.timeout,
1007
+ metadata: @config.metadata,
994
1008
  retry_policy: @config.retry_policy
995
1009
 
996
1010
  @cloud_build_stub.call_rpc :update_build_trigger, request, options: options do |response, operation|
@@ -1064,7 +1078,9 @@ module Google
1064
1078
  options.apply_defaults timeout: @config.rpcs.run_build_trigger.timeout,
1065
1079
  metadata: metadata,
1066
1080
  retry_policy: @config.rpcs.run_build_trigger.retry_policy
1067
- options.apply_defaults metadata: @config.metadata,
1081
+
1082
+ options.apply_defaults timeout: @config.timeout,
1083
+ metadata: @config.metadata,
1068
1084
  retry_policy: @config.retry_policy
1069
1085
 
1070
1086
  @cloud_build_stub.call_rpc :run_build_trigger, request, options: options do |response, operation|
@@ -1142,7 +1158,9 @@ module Google
1142
1158
  options.apply_defaults timeout: @config.rpcs.receive_trigger_webhook.timeout,
1143
1159
  metadata: metadata,
1144
1160
  retry_policy: @config.rpcs.receive_trigger_webhook.retry_policy
1145
- options.apply_defaults metadata: @config.metadata,
1161
+
1162
+ options.apply_defaults timeout: @config.timeout,
1163
+ metadata: @config.metadata,
1146
1164
  retry_policy: @config.retry_policy
1147
1165
 
1148
1166
  @cloud_build_stub.call_rpc :receive_trigger_webhook, request, options: options do |response, operation|
@@ -1220,7 +1238,9 @@ module Google
1220
1238
  options.apply_defaults timeout: @config.rpcs.create_worker_pool.timeout,
1221
1239
  metadata: metadata,
1222
1240
  retry_policy: @config.rpcs.create_worker_pool.retry_policy
1223
- options.apply_defaults metadata: @config.metadata,
1241
+
1242
+ options.apply_defaults timeout: @config.timeout,
1243
+ metadata: @config.metadata,
1224
1244
  retry_policy: @config.retry_policy
1225
1245
 
1226
1246
  @cloud_build_stub.call_rpc :create_worker_pool, request, options: options do |response, operation|
@@ -1288,7 +1308,9 @@ module Google
1288
1308
  options.apply_defaults timeout: @config.rpcs.get_worker_pool.timeout,
1289
1309
  metadata: metadata,
1290
1310
  retry_policy: @config.rpcs.get_worker_pool.retry_policy
1291
- options.apply_defaults metadata: @config.metadata,
1311
+
1312
+ options.apply_defaults timeout: @config.timeout,
1313
+ metadata: @config.metadata,
1292
1314
  retry_policy: @config.retry_policy
1293
1315
 
1294
1316
  @cloud_build_stub.call_rpc :get_worker_pool, request, options: options do |response, operation|
@@ -1365,7 +1387,9 @@ module Google
1365
1387
  options.apply_defaults timeout: @config.rpcs.delete_worker_pool.timeout,
1366
1388
  metadata: metadata,
1367
1389
  retry_policy: @config.rpcs.delete_worker_pool.retry_policy
1368
- options.apply_defaults metadata: @config.metadata,
1390
+
1391
+ options.apply_defaults timeout: @config.timeout,
1392
+ metadata: @config.metadata,
1369
1393
  retry_policy: @config.retry_policy
1370
1394
 
1371
1395
  @cloud_build_stub.call_rpc :delete_worker_pool, request, options: options do |response, operation|
@@ -1440,7 +1464,9 @@ module Google
1440
1464
  options.apply_defaults timeout: @config.rpcs.update_worker_pool.timeout,
1441
1465
  metadata: metadata,
1442
1466
  retry_policy: @config.rpcs.update_worker_pool.retry_policy
1443
- options.apply_defaults metadata: @config.metadata,
1467
+
1468
+ options.apply_defaults timeout: @config.timeout,
1469
+ metadata: @config.metadata,
1444
1470
  retry_policy: @config.retry_policy
1445
1471
 
1446
1472
  @cloud_build_stub.call_rpc :update_worker_pool, request, options: options do |response, operation|
@@ -1514,7 +1540,9 @@ module Google
1514
1540
  options.apply_defaults timeout: @config.rpcs.list_worker_pools.timeout,
1515
1541
  metadata: metadata,
1516
1542
  retry_policy: @config.rpcs.list_worker_pools.retry_policy
1517
- options.apply_defaults metadata: @config.metadata,
1543
+
1544
+ options.apply_defaults timeout: @config.timeout,
1545
+ metadata: @config.metadata,
1518
1546
  retry_policy: @config.retry_policy
1519
1547
 
1520
1548
  @cloud_build_stub.call_rpc :list_worker_pools, request, options: options do |response, operation|
@@ -1539,22 +1567,21 @@ module Google
1539
1567
  # Configuration can be applied globally to all clients, or to a single client
1540
1568
  # on construction.
1541
1569
  #
1542
- # # Examples
1543
- #
1544
- # To modify the global config, setting the timeout for create_build
1545
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1546
- #
1547
- # ::Google::Cloud::Build::V1::CloudBuild::Client.configure do |config|
1548
- # config.timeout = 10.0
1549
- # config.rpcs.create_build.timeout = 20.0
1550
- # end
1551
- #
1552
- # To apply the above configuration only to a new client:
1553
- #
1554
- # client = ::Google::Cloud::Build::V1::CloudBuild::Client.new do |config|
1555
- # config.timeout = 10.0
1556
- # config.rpcs.create_build.timeout = 20.0
1557
- # end
1570
+ # @example
1571
+ #
1572
+ # # Modify the global config, setting the timeout for
1573
+ # # create_build to 20 seconds,
1574
+ # # and all remaining timeouts to 10 seconds.
1575
+ # ::Google::Cloud::Build::V1::CloudBuild::Client.configure do |config|
1576
+ # config.timeout = 10.0
1577
+ # config.rpcs.create_build.timeout = 20.0
1578
+ # end
1579
+ #
1580
+ # # Apply the above configuration only to a new client.
1581
+ # client = ::Google::Cloud::Build::V1::CloudBuild::Client.new do |config|
1582
+ # config.timeout = 10.0
1583
+ # config.rpcs.create_build.timeout = 20.0
1584
+ # end
1558
1585
  #
1559
1586
  # @!attribute [rw] endpoint
1560
1587
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Build
23
23
  module V1
24
- VERSION = "0.9.1"
24
+ VERSION = "0.9.2"
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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.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: 2021-07-29 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a