google-cloud-build-v1 0.15.0 → 0.17.0
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 +4 -4
- data/lib/google/cloud/build/v1/cloud_build/client.rb +6 -4
- data/lib/google/cloud/build/v1/cloud_build/operations.rb +3 -1
- data/lib/google/cloud/build/v1/cloud_build/rest/client.rb +6 -4
- data/lib/google/cloud/build/v1/cloud_build/rest/operations.rb +7 -5
- data/lib/google/cloud/build/v1/cloud_build/rest/service_stub.rb +18 -18
- data/lib/google/cloud/build/v1/version.rb +1 -1
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_pb.rb +31 -526
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb +114 -18
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cd9e9721415a854a240c4f6dc5ae70d700f273c508aa130c4424aadeba55ef6
|
4
|
+
data.tar.gz: f36eb6225f16c725e902aad2db985d907129454c561c75d4633569ea8fbe9ebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0e7a5102e6082c4f043b8f0fd6fb443b366476e5c1ac25f0851bccb010c92d69a349b4b160441c8e683c67fa698c01dc68966d96cc8743b659671a810c5c6e2
|
7
|
+
data.tar.gz: 618a9b9c2b22169cd6e34b17d95cde1a6bff511ecd3e80b6f067d09958a561a6c786c5c681566ac76d8f90928d2fb6ee3dfc07b4a98e81ddfb70bff40a77fbbe
|
@@ -183,7 +183,7 @@ module Google
|
|
183
183
|
credentials = @config.credentials
|
184
184
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
185
185
|
# but only if the default endpoint does not have a region prefix.
|
186
|
-
enable_self_signed_jwt = @config.endpoint ==
|
186
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
187
187
|
!@config.endpoint.split(".").first.include?("-")
|
188
188
|
credentials ||= Credentials.default scope: @config.scope,
|
189
189
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -438,7 +438,7 @@ module Google
|
|
438
438
|
#
|
439
439
|
# @param parent [::String]
|
440
440
|
# The parent of the collection of `Builds`.
|
441
|
-
# Format: `projects/{project}/locations/location`
|
441
|
+
# Format: `projects/{project}/locations/{location}`
|
442
442
|
# @param project_id [::String]
|
443
443
|
# Required. ID of the project.
|
444
444
|
# @param page_size [::Integer]
|
@@ -1734,7 +1734,7 @@ module Google
|
|
1734
1734
|
# @param name [::String]
|
1735
1735
|
# Required. The name of the `WorkerPool` to delete.
|
1736
1736
|
# Format:
|
1737
|
-
# `projects/{project}/locations/{
|
1737
|
+
# `projects/{project}/locations/{location}/workerPools/{workerPool}`.
|
1738
1738
|
# @param etag [::String]
|
1739
1739
|
# Optional. If this is provided, it must match the server's etag on the
|
1740
1740
|
# workerpool for the request to be processed.
|
@@ -2097,7 +2097,9 @@ module Google
|
|
2097
2097
|
class Configuration
|
2098
2098
|
extend ::Gapic::Config
|
2099
2099
|
|
2100
|
-
|
2100
|
+
DEFAULT_ENDPOINT = "cloudbuild.googleapis.com"
|
2101
|
+
|
2102
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
2101
2103
|
config_attr :credentials, nil do |value|
|
2102
2104
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2103
2105
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -664,7 +664,9 @@ module Google
|
|
664
664
|
class Configuration
|
665
665
|
extend ::Gapic::Config
|
666
666
|
|
667
|
-
|
667
|
+
DEFAULT_ENDPOINT = "cloudbuild.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
670
|
config_attr :credentials, nil do |value|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -179,7 +179,7 @@ module Google
|
|
179
179
|
credentials = @config.credentials
|
180
180
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
181
181
|
# but only if the default endpoint does not have a region prefix.
|
182
|
-
enable_self_signed_jwt = @config.endpoint ==
|
182
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
183
183
|
!@config.endpoint.split(".").first.include?("-")
|
184
184
|
credentials ||= Credentials.default scope: @config.scope,
|
185
185
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -373,7 +373,7 @@ module Google
|
|
373
373
|
#
|
374
374
|
# @param parent [::String]
|
375
375
|
# The parent of the collection of `Builds`.
|
376
|
-
# Format: `projects/{project}/locations/location`
|
376
|
+
# Format: `projects/{project}/locations/{location}`
|
377
377
|
# @param project_id [::String]
|
378
378
|
# Required. ID of the project.
|
379
379
|
# @param page_size [::Integer]
|
@@ -1313,7 +1313,7 @@ module Google
|
|
1313
1313
|
# @param name [::String]
|
1314
1314
|
# Required. The name of the `WorkerPool` to delete.
|
1315
1315
|
# Format:
|
1316
|
-
# `projects/{project}/locations/{
|
1316
|
+
# `projects/{project}/locations/{location}/workerPools/{workerPool}`.
|
1317
1317
|
# @param etag [::String]
|
1318
1318
|
# Optional. If this is provided, it must match the server's etag on the
|
1319
1319
|
# workerpool for the request to be processed.
|
@@ -1580,7 +1580,9 @@ module Google
|
|
1580
1580
|
class Configuration
|
1581
1581
|
extend ::Gapic::Config
|
1582
1582
|
|
1583
|
-
|
1583
|
+
DEFAULT_ENDPOINT = "cloudbuild.googleapis.com"
|
1584
|
+
|
1585
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1584
1586
|
config_attr :credentials, nil do |value|
|
1585
1587
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1586
1588
|
allowed.any? { |klass| klass === value }
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "cloudbuild.googleapis.com"
|
450
|
+
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
452
|
config_attr :credentials, nil do |value|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
454
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +569,7 @@ module Google
|
|
567
569
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
571
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
573
|
else
|
572
574
|
{}
|
573
575
|
end
|
@@ -605,7 +607,7 @@ module Google
|
|
605
607
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
609
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
611
|
else
|
610
612
|
{}
|
611
613
|
end
|
@@ -643,7 +645,7 @@ module Google
|
|
643
645
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
647
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
649
|
else
|
648
650
|
{}
|
649
651
|
end
|
@@ -681,7 +683,7 @@ module Google
|
|
681
683
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
685
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
687
|
else
|
686
688
|
{}
|
687
689
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_build_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_build_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_builds_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_cancel_build_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_retry_build_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_approve_build_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_build_trigger_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_build_trigger_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_build_triggers_request request_pb
|
365
365
|
query_string_params = if query_string_params.any?
|
366
|
-
query_string_params.to_h { |p| p.split
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
367
|
else
|
368
368
|
{}
|
369
369
|
end
|
@@ -401,7 +401,7 @@ module Google
|
|
401
401
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_build_trigger_request request_pb
|
403
403
|
query_string_params = if query_string_params.any?
|
404
|
-
query_string_params.to_h { |p| p.split
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
405
405
|
else
|
406
406
|
{}
|
407
407
|
end
|
@@ -439,7 +439,7 @@ module Google
|
|
439
439
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_build_trigger_request request_pb
|
441
441
|
query_string_params = if query_string_params.any?
|
442
|
-
query_string_params.to_h { |p| p.split
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
443
443
|
else
|
444
444
|
{}
|
445
445
|
end
|
@@ -477,7 +477,7 @@ module Google
|
|
477
477
|
|
478
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_run_build_trigger_request request_pb
|
479
479
|
query_string_params = if query_string_params.any?
|
480
|
-
query_string_params.to_h { |p| p.split
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
481
481
|
else
|
482
482
|
{}
|
483
483
|
end
|
@@ -515,7 +515,7 @@ module Google
|
|
515
515
|
|
516
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_receive_trigger_webhook_request request_pb
|
517
517
|
query_string_params = if query_string_params.any?
|
518
|
-
query_string_params.to_h { |p| p.split
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
519
519
|
else
|
520
520
|
{}
|
521
521
|
end
|
@@ -553,7 +553,7 @@ module Google
|
|
553
553
|
|
554
554
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_worker_pool_request request_pb
|
555
555
|
query_string_params = if query_string_params.any?
|
556
|
-
query_string_params.to_h { |p| p.split
|
556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
557
557
|
else
|
558
558
|
{}
|
559
559
|
end
|
@@ -591,7 +591,7 @@ module Google
|
|
591
591
|
|
592
592
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_worker_pool_request request_pb
|
593
593
|
query_string_params = if query_string_params.any?
|
594
|
-
query_string_params.to_h { |p| p.split
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
595
595
|
else
|
596
596
|
{}
|
597
597
|
end
|
@@ -629,7 +629,7 @@ module Google
|
|
629
629
|
|
630
630
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_worker_pool_request request_pb
|
631
631
|
query_string_params = if query_string_params.any?
|
632
|
-
query_string_params.to_h { |p| p.split
|
632
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
633
633
|
else
|
634
634
|
{}
|
635
635
|
end
|
@@ -667,7 +667,7 @@ module Google
|
|
667
667
|
|
668
668
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_worker_pool_request request_pb
|
669
669
|
query_string_params = if query_string_params.any?
|
670
|
-
query_string_params.to_h { |p| p.split
|
670
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
671
671
|
else
|
672
672
|
{}
|
673
673
|
end
|
@@ -705,7 +705,7 @@ module Google
|
|
705
705
|
|
706
706
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_worker_pools_request request_pb
|
707
707
|
query_string_params = if query_string_params.any?
|
708
|
-
query_string_params.to_h { |p| p.split
|
708
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
709
709
|
else
|
710
710
|
{}
|
711
711
|
end
|