google-cloud-build-v1 0.9.1 → 0.9.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06cef793a91b08695313564873d2b96737d6c44c228c8cb03496c07d113f2cf9
|
4
|
+
data.tar.gz: f62d695108da2e93927c59dbde99567e62f1fb1d0f6a83121f8f28315c16cba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
51
|
+
# @example
|
52
52
|
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
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
|
-
#
|
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
|
-
#
|
165
|
-
#
|
158
|
+
# # Create a client using the default configuration
|
159
|
+
# client = ::Google::Cloud::Build::V1::CloudBuild::Client.new
|
166
160
|
#
|
167
|
-
#
|
168
|
-
#
|
169
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
1543
|
-
#
|
1544
|
-
#
|
1545
|
-
# to 20 seconds,
|
1546
|
-
#
|
1547
|
-
#
|
1548
|
-
#
|
1549
|
-
#
|
1550
|
-
#
|
1551
|
-
#
|
1552
|
-
#
|
1553
|
-
#
|
1554
|
-
#
|
1555
|
-
#
|
1556
|
-
#
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
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.
|
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.
|
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-
|
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.
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|