google-cloud-build-v1 0.15.0 → 0.17.0

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: d8e2e42d05626b161c76efe7a9797b73233e0cebcfdbd2aef02471bd405176f3
4
- data.tar.gz: 6410292a553cea7acc1413dec792f4852c974411cbd0ae567004c0c60d80d818
3
+ metadata.gz: 2cd9e9721415a854a240c4f6dc5ae70d700f273c508aa130c4424aadeba55ef6
4
+ data.tar.gz: f36eb6225f16c725e902aad2db985d907129454c561c75d4633569ea8fbe9ebf
5
5
  SHA512:
6
- metadata.gz: 7db23a0a424c2f5893214c7843ca7445a8e994c85c208058de585f1918824cce8a620bbc282d991aa663d959d9e03578c5000832520a3b739ca0426c7fcbdf05
7
- data.tar.gz: 590f8ef8c5d05451478c29293d7d53b336828edf28798dc041a5a39d80685930290eab28afbb5e4f8def4273e6ad15c3f30359481023504e595d781bc8b43f89
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 == Client.configure.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/{workerPool}/workerPools/{workerPool}`.
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
- config_attr :endpoint, "cloudbuild.googleapis.com", ::String
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
- config_attr :endpoint, "cloudbuild.googleapis.com", ::String
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 == Client.configure.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/{workerPool}/workerPools/{workerPool}`.
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
- config_attr :endpoint, "cloudbuild.googleapis.com", ::String
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
- config_attr :endpoint, "cloudbuild.googleapis.com", ::String
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
708
+ query_string_params.to_h { |p| p.split "=", 2 }
709
709
  else
710
710
  {}
711
711
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Build
23
23
  module V1
24
- VERSION = "0.15.0"
24
+ VERSION = "0.17.0"
25
25
  end
26
26
  end
27
27
  end