google-cloud-binary_authorization-v1beta1 0.13.0 → 0.14.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: 5b22b8f44a57ed81ce0d0242c6ed50da246017cead627603d073f5dfc9e03224
4
- data.tar.gz: 3eeb4ba28b5fc69c136f0f15d827a6e52295c86fa12b5d4cb2579c322f721334
3
+ metadata.gz: ef8e90a0bca04376c531dd4857c38436fbdd9f85e459cbe436845bfd949fd344
4
+ data.tar.gz: 04a9d1b6c8d9f86ba773d2d26ce25e64782b3d75f984b89c5c09f5cdde8ead62
5
5
  SHA512:
6
- metadata.gz: 55ef2a0e0c2ad44a22292170c4e58c42e5c939a1554d4bc26cc007189d0924637f1a4ef75fe237bdb8305d491bc65e59e4899238255d02a874df33a09de0b390
7
- data.tar.gz: dc45e5daeece4f5c1a5487fe6d664b730aec5c6a62cba6ffb2806f05bf2c1261c4bc74a56f966aa6959b82247ab4314799c7c428284efe7360f1eb64a1699d59
6
+ metadata.gz: 1d09ab1328896956d83e32c428aa3d1a594e6c58a4d3e493b7ee26c1cec95f63f34e05c9b1178e4607142c046d8462b1ee7bc9432e0cc106e4d90242c2d41cc6
7
+ data.tar.gz: bef8a56221a44fa303d18bd33cb1db9e03c8344a0f545caba1d026cada779a7fda6a3d0d50aee716149103af903a5e954ac00b8fbe2ac2e0c433247a5cf92939
data/README.md CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://cloud.google.com/binary-authorization/)
44
44
  for general usage information.
45
45
 
46
- ## Enabling Logging
47
-
48
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
- that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
-
54
- Configuring a Ruby stdlib logger:
46
+ ## Debug Logging
47
+
48
+ This library comes with opt-in Debug Logging that can help you troubleshoot
49
+ your application's integration with the API. When logging is activated, key
50
+ events such as requests and responses, along with data payloads and metadata
51
+ such as headers and client configuration, are logged to the standard error
52
+ stream.
53
+
54
+ **WARNING:** Client Library Debug Logging includes your data payloads in
55
+ plaintext, which could include sensitive data such as PII for yourself or your
56
+ customers, private keys, or other security data that could be compromising if
57
+ leaked. Always practice good data hygiene with your application logs, and follow
58
+ the principle of least access. Google also recommends that Client Library Debug
59
+ Logging be enabled only temporarily during active debugging, and not used
60
+ permanently in production.
61
+
62
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
63
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
64
+ list of client library gem names. This will select the default logging behavior,
65
+ which writes logs to the standard error stream. On a local workstation, this may
66
+ result in logs appearing on the console. When running on a Google Cloud hosting
67
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
68
+ results in logs appearing alongside your application logs in the
69
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
70
+
71
+ You can customize logging by modifying the `logger` configuration when
72
+ constructing a client object. For example:
55
73
 
56
74
  ```ruby
75
+ require "google/cloud/binary_authorization/v1beta1"
57
76
  require "logger"
58
77
 
59
- module MyLogger
60
- LOGGER = Logger.new $stderr, level: Logger::WARN
61
- def logger
62
- LOGGER
63
- end
64
- end
65
-
66
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
67
- module GRPC
68
- extend MyLogger
78
+ client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new do |config|
79
+ config.logger = Logger.new "my-app.log"
69
80
  end
70
81
  ```
71
82
 
72
-
73
83
  ## Google Cloud Samples
74
84
 
75
85
  To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
@@ -36,6 +36,9 @@ module Google
36
36
  # * {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor Attestor}
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "binaryauthorization.$UNIVERSE_DOMAIN$"
41
44
 
@@ -192,8 +195,28 @@ module Google
192
195
  universe_domain: @config.universe_domain,
193
196
  channel_args: @config.channel_args,
194
197
  interceptors: @config.interceptors,
195
- channel_pool_config: @config.channel_pool
198
+ channel_pool_config: @config.channel_pool,
199
+ logger: @config.logger
196
200
  )
201
+
202
+ @binauthz_management_service_stub.stub_logger&.info do |entry|
203
+ entry.set_system_name
204
+ entry.set_service
205
+ entry.message = "Created client for #{entry.service}"
206
+ entry.set_credentials_fields credentials
207
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
208
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
209
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
210
+ end
211
+ end
212
+
213
+ ##
214
+ # The logger used for request/response debug logging.
215
+ #
216
+ # @return [Logger]
217
+ #
218
+ def logger
219
+ @binauthz_management_service_stub.logger
197
220
  end
198
221
 
199
222
  # Service calls
@@ -260,10 +283,11 @@ module Google
260
283
  # Customize the options with defaults
261
284
  metadata = @config.rpcs.get_policy.metadata.to_h
262
285
 
263
- # Set x-goog-api-client and x-goog-user-project headers
286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
264
287
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
265
288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
266
289
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
290
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
267
291
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
268
292
 
269
293
  header_params = {}
@@ -284,7 +308,6 @@ module Google
284
308
 
285
309
  @binauthz_management_service_stub.call_rpc :get_policy, request, options: options do |response, operation|
286
310
  yield response, operation if block_given?
287
- return response
288
311
  end
289
312
  rescue ::GRPC::BadStatus => e
290
313
  raise ::Google::Cloud::Error.from_error(e)
@@ -351,10 +374,11 @@ module Google
351
374
  # Customize the options with defaults
352
375
  metadata = @config.rpcs.update_policy.metadata.to_h
353
376
 
354
- # Set x-goog-api-client and x-goog-user-project headers
377
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
378
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
379
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
380
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
381
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
358
382
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
359
383
 
360
384
  header_params = {}
@@ -375,7 +399,6 @@ module Google
375
399
 
376
400
  @binauthz_management_service_stub.call_rpc :update_policy, request, options: options do |response, operation|
377
401
  yield response, operation if block_given?
378
- return response
379
402
  end
380
403
  rescue ::GRPC::BadStatus => e
381
404
  raise ::Google::Cloud::Error.from_error(e)
@@ -445,10 +468,11 @@ module Google
445
468
  # Customize the options with defaults
446
469
  metadata = @config.rpcs.create_attestor.metadata.to_h
447
470
 
448
- # Set x-goog-api-client and x-goog-user-project headers
471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
449
472
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
450
473
  lib_name: @config.lib_name, lib_version: @config.lib_version,
451
474
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
475
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
452
476
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
453
477
 
454
478
  header_params = {}
@@ -469,7 +493,6 @@ module Google
469
493
 
470
494
  @binauthz_management_service_stub.call_rpc :create_attestor, request, options: options do |response, operation|
471
495
  yield response, operation if block_given?
472
- return response
473
496
  end
474
497
  rescue ::GRPC::BadStatus => e
475
498
  raise ::Google::Cloud::Error.from_error(e)
@@ -532,10 +555,11 @@ module Google
532
555
  # Customize the options with defaults
533
556
  metadata = @config.rpcs.get_attestor.metadata.to_h
534
557
 
535
- # Set x-goog-api-client and x-goog-user-project headers
558
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
536
559
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
537
560
  lib_name: @config.lib_name, lib_version: @config.lib_version,
538
561
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
562
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
539
563
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
540
564
 
541
565
  header_params = {}
@@ -556,7 +580,6 @@ module Google
556
580
 
557
581
  @binauthz_management_service_stub.call_rpc :get_attestor, request, options: options do |response, operation|
558
582
  yield response, operation if block_given?
559
- return response
560
583
  end
561
584
  rescue ::GRPC::BadStatus => e
562
585
  raise ::Google::Cloud::Error.from_error(e)
@@ -620,10 +643,11 @@ module Google
620
643
  # Customize the options with defaults
621
644
  metadata = @config.rpcs.update_attestor.metadata.to_h
622
645
 
623
- # Set x-goog-api-client and x-goog-user-project headers
646
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
624
647
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
625
648
  lib_name: @config.lib_name, lib_version: @config.lib_version,
626
649
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
650
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
627
651
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
628
652
 
629
653
  header_params = {}
@@ -644,7 +668,6 @@ module Google
644
668
 
645
669
  @binauthz_management_service_stub.call_rpc :update_attestor, request, options: options do |response, operation|
646
670
  yield response, operation if block_given?
647
- return response
648
671
  end
649
672
  rescue ::GRPC::BadStatus => e
650
673
  raise ::Google::Cloud::Error.from_error(e)
@@ -718,10 +741,11 @@ module Google
718
741
  # Customize the options with defaults
719
742
  metadata = @config.rpcs.list_attestors.metadata.to_h
720
743
 
721
- # Set x-goog-api-client and x-goog-user-project headers
744
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
722
745
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
723
746
  lib_name: @config.lib_name, lib_version: @config.lib_version,
724
747
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
748
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
725
749
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
726
750
 
727
751
  header_params = {}
@@ -743,7 +767,7 @@ module Google
743
767
  @binauthz_management_service_stub.call_rpc :list_attestors, request, options: options do |response, operation|
744
768
  response = ::Gapic::PagedEnumerable.new @binauthz_management_service_stub, :list_attestors, request, response, operation, options
745
769
  yield response, operation if block_given?
746
- return response
770
+ throw :response, response
747
771
  end
748
772
  rescue ::GRPC::BadStatus => e
749
773
  raise ::Google::Cloud::Error.from_error(e)
@@ -806,10 +830,11 @@ module Google
806
830
  # Customize the options with defaults
807
831
  metadata = @config.rpcs.delete_attestor.metadata.to_h
808
832
 
809
- # Set x-goog-api-client and x-goog-user-project headers
833
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
810
834
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
811
835
  lib_name: @config.lib_name, lib_version: @config.lib_version,
812
836
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
837
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
813
838
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
814
839
 
815
840
  header_params = {}
@@ -830,7 +855,6 @@ module Google
830
855
 
831
856
  @binauthz_management_service_stub.call_rpc :delete_attestor, request, options: options do |response, operation|
832
857
  yield response, operation if block_given?
833
- return response
834
858
  end
835
859
  rescue ::GRPC::BadStatus => e
836
860
  raise ::Google::Cloud::Error.from_error(e)
@@ -919,6 +943,11 @@ module Google
919
943
  # default endpoint URL. The default value of nil uses the environment
920
944
  # universe (usually the default "googleapis.com" universe).
921
945
  # @return [::String,nil]
946
+ # @!attribute [rw] logger
947
+ # A custom logger to use for request/response debug logging, or the value
948
+ # `:default` (the default) to construct a default logger, or `nil` to
949
+ # explicitly disable logging.
950
+ # @return [::Logger,:default,nil]
922
951
  #
923
952
  class Configuration
924
953
  extend ::Gapic::Config
@@ -943,6 +972,7 @@ module Google
943
972
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
944
973
  config_attr :quota_project, nil, ::String, nil
945
974
  config_attr :universe_domain, nil, ::String, nil
975
+ config_attr :logger, :default, ::Logger, nil, :default
946
976
 
947
977
  # @private
948
978
  def initialize parent_config = nil
@@ -38,6 +38,9 @@ module Google
38
38
  # * {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor Attestor}
39
39
  #
40
40
  class Client
41
+ # @private
42
+ API_VERSION = ""
43
+
41
44
  # @private
42
45
  DEFAULT_ENDPOINT_TEMPLATE = "binaryauthorization.$UNIVERSE_DOMAIN$"
43
46
 
@@ -185,8 +188,28 @@ module Google
185
188
  endpoint: @config.endpoint,
186
189
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
187
190
  universe_domain: @config.universe_domain,
188
- credentials: credentials
191
+ credentials: credentials,
192
+ logger: @config.logger
189
193
  )
194
+
195
+ @binauthz_management_service_stub.logger(stub: true)&.info do |entry|
196
+ entry.set_system_name
197
+ entry.set_service
198
+ entry.message = "Created client for #{entry.service}"
199
+ entry.set_credentials_fields credentials
200
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
201
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
202
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
203
+ end
204
+ end
205
+
206
+ ##
207
+ # The logger used for request/response debug logging.
208
+ #
209
+ # @return [Logger]
210
+ #
211
+ def logger
212
+ @binauthz_management_service_stub.logger
190
213
  end
191
214
 
192
215
  # Service calls
@@ -252,12 +275,13 @@ module Google
252
275
  # Customize the options with defaults
253
276
  call_metadata = @config.rpcs.get_policy.metadata.to_h
254
277
 
255
- # Set x-goog-api-client and x-goog-user-project headers
278
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
256
279
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
257
280
  lib_name: @config.lib_name, lib_version: @config.lib_version,
258
281
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION,
259
282
  transports_version_send: [:rest]
260
283
 
284
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
261
285
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
262
286
 
263
287
  options.apply_defaults timeout: @config.rpcs.get_policy.timeout,
@@ -270,7 +294,6 @@ module Google
270
294
 
271
295
  @binauthz_management_service_stub.get_policy request, options do |result, operation|
272
296
  yield result, operation if block_given?
273
- return result
274
297
  end
275
298
  rescue ::Gapic::Rest::Error => e
276
299
  raise ::Google::Cloud::Error.from_error(e)
@@ -336,12 +359,13 @@ module Google
336
359
  # Customize the options with defaults
337
360
  call_metadata = @config.rpcs.update_policy.metadata.to_h
338
361
 
339
- # Set x-goog-api-client and x-goog-user-project headers
362
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
340
363
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
341
364
  lib_name: @config.lib_name, lib_version: @config.lib_version,
342
365
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION,
343
366
  transports_version_send: [:rest]
344
367
 
368
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
345
369
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
346
370
 
347
371
  options.apply_defaults timeout: @config.rpcs.update_policy.timeout,
@@ -354,7 +378,6 @@ module Google
354
378
 
355
379
  @binauthz_management_service_stub.update_policy request, options do |result, operation|
356
380
  yield result, operation if block_given?
357
- return result
358
381
  end
359
382
  rescue ::Gapic::Rest::Error => e
360
383
  raise ::Google::Cloud::Error.from_error(e)
@@ -423,12 +446,13 @@ module Google
423
446
  # Customize the options with defaults
424
447
  call_metadata = @config.rpcs.create_attestor.metadata.to_h
425
448
 
426
- # Set x-goog-api-client and x-goog-user-project headers
449
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
427
450
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
428
451
  lib_name: @config.lib_name, lib_version: @config.lib_version,
429
452
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION,
430
453
  transports_version_send: [:rest]
431
454
 
455
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
432
456
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
433
457
 
434
458
  options.apply_defaults timeout: @config.rpcs.create_attestor.timeout,
@@ -441,7 +465,6 @@ module Google
441
465
 
442
466
  @binauthz_management_service_stub.create_attestor request, options do |result, operation|
443
467
  yield result, operation if block_given?
444
- return result
445
468
  end
446
469
  rescue ::Gapic::Rest::Error => e
447
470
  raise ::Google::Cloud::Error.from_error(e)
@@ -503,12 +526,13 @@ module Google
503
526
  # Customize the options with defaults
504
527
  call_metadata = @config.rpcs.get_attestor.metadata.to_h
505
528
 
506
- # Set x-goog-api-client and x-goog-user-project headers
529
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
507
530
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
508
531
  lib_name: @config.lib_name, lib_version: @config.lib_version,
509
532
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION,
510
533
  transports_version_send: [:rest]
511
534
 
535
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
512
536
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
513
537
 
514
538
  options.apply_defaults timeout: @config.rpcs.get_attestor.timeout,
@@ -521,7 +545,6 @@ module Google
521
545
 
522
546
  @binauthz_management_service_stub.get_attestor request, options do |result, operation|
523
547
  yield result, operation if block_given?
524
- return result
525
548
  end
526
549
  rescue ::Gapic::Rest::Error => e
527
550
  raise ::Google::Cloud::Error.from_error(e)
@@ -584,12 +607,13 @@ module Google
584
607
  # Customize the options with defaults
585
608
  call_metadata = @config.rpcs.update_attestor.metadata.to_h
586
609
 
587
- # Set x-goog-api-client and x-goog-user-project headers
610
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
588
611
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
589
612
  lib_name: @config.lib_name, lib_version: @config.lib_version,
590
613
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION,
591
614
  transports_version_send: [:rest]
592
615
 
616
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
593
617
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
594
618
 
595
619
  options.apply_defaults timeout: @config.rpcs.update_attestor.timeout,
@@ -602,7 +626,6 @@ module Google
602
626
 
603
627
  @binauthz_management_service_stub.update_attestor request, options do |result, operation|
604
628
  yield result, operation if block_given?
605
- return result
606
629
  end
607
630
  rescue ::Gapic::Rest::Error => e
608
631
  raise ::Google::Cloud::Error.from_error(e)
@@ -675,12 +698,13 @@ module Google
675
698
  # Customize the options with defaults
676
699
  call_metadata = @config.rpcs.list_attestors.metadata.to_h
677
700
 
678
- # Set x-goog-api-client and x-goog-user-project headers
701
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
679
702
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
680
703
  lib_name: @config.lib_name, lib_version: @config.lib_version,
681
704
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION,
682
705
  transports_version_send: [:rest]
683
706
 
707
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
684
708
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
685
709
 
686
710
  options.apply_defaults timeout: @config.rpcs.list_attestors.timeout,
@@ -694,7 +718,7 @@ module Google
694
718
  @binauthz_management_service_stub.list_attestors request, options do |result, operation|
695
719
  result = ::Gapic::Rest::PagedEnumerable.new @binauthz_management_service_stub, :list_attestors, "attestors", request, result, options
696
720
  yield result, operation if block_given?
697
- return result
721
+ throw :response, result
698
722
  end
699
723
  rescue ::Gapic::Rest::Error => e
700
724
  raise ::Google::Cloud::Error.from_error(e)
@@ -756,12 +780,13 @@ module Google
756
780
  # Customize the options with defaults
757
781
  call_metadata = @config.rpcs.delete_attestor.metadata.to_h
758
782
 
759
- # Set x-goog-api-client and x-goog-user-project headers
783
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
760
784
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
761
785
  lib_name: @config.lib_name, lib_version: @config.lib_version,
762
786
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION,
763
787
  transports_version_send: [:rest]
764
788
 
789
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
765
790
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
766
791
 
767
792
  options.apply_defaults timeout: @config.rpcs.delete_attestor.timeout,
@@ -774,7 +799,6 @@ module Google
774
799
 
775
800
  @binauthz_management_service_stub.delete_attestor request, options do |result, operation|
776
801
  yield result, operation if block_given?
777
- return result
778
802
  end
779
803
  rescue ::Gapic::Rest::Error => e
780
804
  raise ::Google::Cloud::Error.from_error(e)
@@ -854,6 +878,11 @@ module Google
854
878
  # default endpoint URL. The default value of nil uses the environment
855
879
  # universe (usually the default "googleapis.com" universe).
856
880
  # @return [::String,nil]
881
+ # @!attribute [rw] logger
882
+ # A custom logger to use for request/response debug logging, or the value
883
+ # `:default` (the default) to construct a default logger, or `nil` to
884
+ # explicitly disable logging.
885
+ # @return [::Logger,:default,nil]
857
886
  #
858
887
  class Configuration
859
888
  extend ::Gapic::Config
@@ -875,6 +904,7 @@ module Google
875
904
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
876
905
  config_attr :quota_project, nil, ::String, nil
877
906
  config_attr :universe_domain, nil, ::String, nil
907
+ config_attr :logger, :default, ::Logger, nil, :default
878
908
 
879
909
  # @private
880
910
  def initialize parent_config = nil
@@ -30,7 +30,8 @@ module Google
30
30
  # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
- def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
34
35
  # These require statements are intentionally placed here to initialize
35
36
  # the REST modules only when it's required.
36
37
  require "gapic/rest"
@@ -40,7 +41,9 @@ module Google
40
41
  universe_domain: universe_domain,
41
42
  credentials: credentials,
42
43
  numeric_enums: true,
43
- raise_faraday_errors: false
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
44
47
  end
45
48
 
46
49
  ##
@@ -61,6 +64,15 @@ module Google
61
64
  @client_stub.endpoint
62
65
  end
63
66
 
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
64
76
  ##
65
77
  # Baseline implementation for the get_policy REST call
66
78
  #
@@ -87,16 +99,18 @@ module Google
87
99
 
88
100
  response = @client_stub.make_http_request(
89
101
  verb,
90
- uri: uri,
91
- body: body || "",
92
- params: query_string_params,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "get_policy",
93
106
  options: options
94
107
  )
95
108
  operation = ::Gapic::Rest::TransportOperation.new response
96
109
  result = ::Google::Cloud::BinaryAuthorization::V1beta1::Policy.decode_json response.body, ignore_unknown_fields: true
97
-
98
- yield result, operation if block_given?
99
- result
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
100
114
  end
101
115
 
102
116
  ##
@@ -125,16 +139,18 @@ module Google
125
139
 
126
140
  response = @client_stub.make_http_request(
127
141
  verb,
128
- uri: uri,
129
- body: body || "",
130
- params: query_string_params,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "update_policy",
131
146
  options: options
132
147
  )
133
148
  operation = ::Gapic::Rest::TransportOperation.new response
134
149
  result = ::Google::Cloud::BinaryAuthorization::V1beta1::Policy.decode_json response.body, ignore_unknown_fields: true
135
-
136
- yield result, operation if block_given?
137
- result
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
138
154
  end
139
155
 
140
156
  ##
@@ -163,16 +179,18 @@ module Google
163
179
 
164
180
  response = @client_stub.make_http_request(
165
181
  verb,
166
- uri: uri,
167
- body: body || "",
168
- params: query_string_params,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "create_attestor",
169
186
  options: options
170
187
  )
171
188
  operation = ::Gapic::Rest::TransportOperation.new response
172
189
  result = ::Google::Cloud::BinaryAuthorization::V1beta1::Attestor.decode_json response.body, ignore_unknown_fields: true
173
-
174
- yield result, operation if block_given?
175
- result
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
176
194
  end
177
195
 
178
196
  ##
@@ -201,16 +219,18 @@ module Google
201
219
 
202
220
  response = @client_stub.make_http_request(
203
221
  verb,
204
- uri: uri,
205
- body: body || "",
206
- params: query_string_params,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "get_attestor",
207
226
  options: options
208
227
  )
209
228
  operation = ::Gapic::Rest::TransportOperation.new response
210
229
  result = ::Google::Cloud::BinaryAuthorization::V1beta1::Attestor.decode_json response.body, ignore_unknown_fields: true
211
-
212
- yield result, operation if block_given?
213
- result
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
214
234
  end
215
235
 
216
236
  ##
@@ -239,16 +259,18 @@ module Google
239
259
 
240
260
  response = @client_stub.make_http_request(
241
261
  verb,
242
- uri: uri,
243
- body: body || "",
244
- params: query_string_params,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "update_attestor",
245
266
  options: options
246
267
  )
247
268
  operation = ::Gapic::Rest::TransportOperation.new response
248
269
  result = ::Google::Cloud::BinaryAuthorization::V1beta1::Attestor.decode_json response.body, ignore_unknown_fields: true
249
-
250
- yield result, operation if block_given?
251
- result
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
252
274
  end
253
275
 
254
276
  ##
@@ -277,16 +299,18 @@ module Google
277
299
 
278
300
  response = @client_stub.make_http_request(
279
301
  verb,
280
- uri: uri,
281
- body: body || "",
282
- params: query_string_params,
302
+ uri: uri,
303
+ body: body || "",
304
+ params: query_string_params,
305
+ method_name: "list_attestors",
283
306
  options: options
284
307
  )
285
308
  operation = ::Gapic::Rest::TransportOperation.new response
286
309
  result = ::Google::Cloud::BinaryAuthorization::V1beta1::ListAttestorsResponse.decode_json response.body, ignore_unknown_fields: true
287
-
288
- yield result, operation if block_given?
289
- result
310
+ catch :response do
311
+ yield result, operation if block_given?
312
+ result
313
+ end
290
314
  end
291
315
 
292
316
  ##
@@ -315,16 +339,18 @@ module Google
315
339
 
316
340
  response = @client_stub.make_http_request(
317
341
  verb,
318
- uri: uri,
319
- body: body || "",
320
- params: query_string_params,
342
+ uri: uri,
343
+ body: body || "",
344
+ params: query_string_params,
345
+ method_name: "delete_attestor",
321
346
  options: options
322
347
  )
323
348
  operation = ::Gapic::Rest::TransportOperation.new response
324
349
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
325
-
326
- yield result, operation if block_given?
327
- result
350
+ catch :response do
351
+ yield result, operation if block_given?
352
+ result
353
+ end
328
354
  end
329
355
 
330
356
  ##
@@ -30,6 +30,9 @@ module Google
30
30
  # API for working with the system policy.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "binaryauthorization.$UNIVERSE_DOMAIN$"
35
38
 
@@ -154,8 +157,28 @@ module Google
154
157
  universe_domain: @config.universe_domain,
155
158
  channel_args: @config.channel_args,
156
159
  interceptors: @config.interceptors,
157
- channel_pool_config: @config.channel_pool
160
+ channel_pool_config: @config.channel_pool,
161
+ logger: @config.logger
158
162
  )
163
+
164
+ @system_policy_stub.stub_logger&.info do |entry|
165
+ entry.set_system_name
166
+ entry.set_service
167
+ entry.message = "Created client for #{entry.service}"
168
+ entry.set_credentials_fields credentials
169
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
170
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
171
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
172
+ end
173
+ end
174
+
175
+ ##
176
+ # The logger used for request/response debug logging.
177
+ #
178
+ # @return [Logger]
179
+ #
180
+ def logger
181
+ @system_policy_stub.logger
159
182
  end
160
183
 
161
184
  # Service calls
@@ -216,10 +239,11 @@ module Google
216
239
  # Customize the options with defaults
217
240
  metadata = @config.rpcs.get_system_policy.metadata.to_h
218
241
 
219
- # Set x-goog-api-client and x-goog-user-project headers
242
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
220
243
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
221
244
  lib_name: @config.lib_name, lib_version: @config.lib_version,
222
245
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
246
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
223
247
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
224
248
 
225
249
  header_params = {}
@@ -240,7 +264,6 @@ module Google
240
264
 
241
265
  @system_policy_stub.call_rpc :get_system_policy, request, options: options do |response, operation|
242
266
  yield response, operation if block_given?
243
- return response
244
267
  end
245
268
  rescue ::GRPC::BadStatus => e
246
269
  raise ::Google::Cloud::Error.from_error(e)
@@ -329,6 +352,11 @@ module Google
329
352
  # default endpoint URL. The default value of nil uses the environment
330
353
  # universe (usually the default "googleapis.com" universe).
331
354
  # @return [::String,nil]
355
+ # @!attribute [rw] logger
356
+ # A custom logger to use for request/response debug logging, or the value
357
+ # `:default` (the default) to construct a default logger, or `nil` to
358
+ # explicitly disable logging.
359
+ # @return [::Logger,:default,nil]
332
360
  #
333
361
  class Configuration
334
362
  extend ::Gapic::Config
@@ -353,6 +381,7 @@ module Google
353
381
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
354
382
  config_attr :quota_project, nil, ::String, nil
355
383
  config_attr :universe_domain, nil, ::String, nil
384
+ config_attr :logger, :default, ::Logger, nil, :default
356
385
 
357
386
  # @private
358
387
  def initialize parent_config = nil
@@ -32,6 +32,9 @@ module Google
32
32
  # API for working with the system policy.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "binaryauthorization.$UNIVERSE_DOMAIN$"
37
40
 
@@ -147,8 +150,28 @@ module Google
147
150
  endpoint: @config.endpoint,
148
151
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
149
152
  universe_domain: @config.universe_domain,
150
- credentials: credentials
153
+ credentials: credentials,
154
+ logger: @config.logger
151
155
  )
156
+
157
+ @system_policy_stub.logger(stub: true)&.info do |entry|
158
+ entry.set_system_name
159
+ entry.set_service
160
+ entry.message = "Created client for #{entry.service}"
161
+ entry.set_credentials_fields credentials
162
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
163
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
164
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
165
+ end
166
+ end
167
+
168
+ ##
169
+ # The logger used for request/response debug logging.
170
+ #
171
+ # @return [Logger]
172
+ #
173
+ def logger
174
+ @system_policy_stub.logger
152
175
  end
153
176
 
154
177
  # Service calls
@@ -208,12 +231,13 @@ module Google
208
231
  # Customize the options with defaults
209
232
  call_metadata = @config.rpcs.get_system_policy.metadata.to_h
210
233
 
211
- # Set x-goog-api-client and x-goog-user-project headers
234
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
212
235
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
213
236
  lib_name: @config.lib_name, lib_version: @config.lib_version,
214
237
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION,
215
238
  transports_version_send: [:rest]
216
239
 
240
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
217
241
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
218
242
 
219
243
  options.apply_defaults timeout: @config.rpcs.get_system_policy.timeout,
@@ -226,7 +250,6 @@ module Google
226
250
 
227
251
  @system_policy_stub.get_system_policy request, options do |result, operation|
228
252
  yield result, operation if block_given?
229
- return result
230
253
  end
231
254
  rescue ::Gapic::Rest::Error => e
232
255
  raise ::Google::Cloud::Error.from_error(e)
@@ -306,6 +329,11 @@ module Google
306
329
  # default endpoint URL. The default value of nil uses the environment
307
330
  # universe (usually the default "googleapis.com" universe).
308
331
  # @return [::String,nil]
332
+ # @!attribute [rw] logger
333
+ # A custom logger to use for request/response debug logging, or the value
334
+ # `:default` (the default) to construct a default logger, or `nil` to
335
+ # explicitly disable logging.
336
+ # @return [::Logger,:default,nil]
309
337
  #
310
338
  class Configuration
311
339
  extend ::Gapic::Config
@@ -327,6 +355,7 @@ module Google
327
355
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
328
356
  config_attr :quota_project, nil, ::String, nil
329
357
  config_attr :universe_domain, nil, ::String, nil
358
+ config_attr :logger, :default, ::Logger, nil, :default
330
359
 
331
360
  # @private
332
361
  def initialize parent_config = nil
@@ -30,7 +30,8 @@ module Google
30
30
  # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
- def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
34
35
  # These require statements are intentionally placed here to initialize
35
36
  # the REST modules only when it's required.
36
37
  require "gapic/rest"
@@ -40,7 +41,9 @@ module Google
40
41
  universe_domain: universe_domain,
41
42
  credentials: credentials,
42
43
  numeric_enums: true,
43
- raise_faraday_errors: false
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
44
47
  end
45
48
 
46
49
  ##
@@ -61,6 +64,15 @@ module Google
61
64
  @client_stub.endpoint
62
65
  end
63
66
 
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
64
76
  ##
65
77
  # Baseline implementation for the get_system_policy REST call
66
78
  #
@@ -87,16 +99,18 @@ module Google
87
99
 
88
100
  response = @client_stub.make_http_request(
89
101
  verb,
90
- uri: uri,
91
- body: body || "",
92
- params: query_string_params,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "get_system_policy",
93
106
  options: options
94
107
  )
95
108
  operation = ::Gapic::Rest::TransportOperation.new response
96
109
  result = ::Google::Cloud::BinaryAuthorization::V1beta1::Policy.decode_json response.body, ignore_unknown_fields: true
97
-
98
- yield result, operation if block_given?
99
- result
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
100
114
  end
101
115
 
102
116
  ##
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module BinaryAuthorization
23
23
  module V1beta1
24
- VERSION = "0.13.0"
24
+ VERSION = "0.14.0"
25
25
  end
26
26
  end
27
27
  end
@@ -28,6 +28,9 @@ module Google
28
28
  # @!attribute [rw] destinations
29
29
  # @return [::Array<::Google::Api::ClientLibraryDestination>]
30
30
  # The destination where API teams want this client library to be published.
31
+ # @!attribute [rw] selective_gapic_generation
32
+ # @return [::Google::Api::SelectiveGapicGeneration]
33
+ # Configuration for which RPCs should be generated in the GAPIC client.
31
34
  class CommonLanguageSettings
32
35
  include ::Google::Protobuf::MessageExts
33
36
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -118,6 +121,10 @@ module Google
118
121
  # @return [::String]
119
122
  # Optional link to proto reference documentation. Example:
120
123
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
124
+ # @!attribute [rw] rest_reference_documentation_uri
125
+ # @return [::String]
126
+ # Optional link to REST reference documentation. Example:
127
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
128
  class Publishing
122
129
  include ::Google::Protobuf::MessageExts
123
130
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,9 +199,32 @@ module Google
192
199
  # @!attribute [rw] common
193
200
  # @return [::Google::Api::CommonLanguageSettings]
194
201
  # Some settings.
202
+ # @!attribute [rw] experimental_features
203
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
204
+ # Experimental features to be included during client library generation.
195
205
  class PythonSettings
196
206
  include ::Google::Protobuf::MessageExts
197
207
  extend ::Google::Protobuf::MessageExts::ClassMethods
208
+
209
+ # Experimental features to be included during client library generation.
210
+ # These fields will be deprecated once the feature graduates and is enabled
211
+ # by default.
212
+ # @!attribute [rw] rest_async_io_enabled
213
+ # @return [::Boolean]
214
+ # Enables generation of asynchronous REST clients if `rest` transport is
215
+ # enabled. By default, asynchronous REST clients will not be generated.
216
+ # This feature will be enabled by default 1 month after launching the
217
+ # feature in preview packages.
218
+ # @!attribute [rw] protobuf_pythonic_types_enabled
219
+ # @return [::Boolean]
220
+ # Enables generation of protobuf code using new types that are more
221
+ # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
+ # enabled by default 1 month after launching the feature in preview
223
+ # packages.
224
+ class ExperimentalFeatures
225
+ include ::Google::Protobuf::MessageExts
226
+ extend ::Google::Protobuf::MessageExts::ClassMethods
227
+ end
198
228
  end
199
229
 
200
230
  # Settings for Node client libraries.
@@ -276,9 +306,28 @@ module Google
276
306
  # @!attribute [rw] common
277
307
  # @return [::Google::Api::CommonLanguageSettings]
278
308
  # Some settings.
309
+ # @!attribute [rw] renamed_services
310
+ # @return [::Google::Protobuf::Map{::String => ::String}]
311
+ # Map of service names to renamed services. Keys are the package relative
312
+ # service names and values are the name to be used for the service client
313
+ # and call options.
314
+ #
315
+ # publishing:
316
+ # go_settings:
317
+ # renamed_services:
318
+ # Publisher: TopicAdmin
279
319
  class GoSettings
280
320
  include ::Google::Protobuf::MessageExts
281
321
  extend ::Google::Protobuf::MessageExts::ClassMethods
322
+
323
+ # @!attribute [rw] key
324
+ # @return [::String]
325
+ # @!attribute [rw] value
326
+ # @return [::String]
327
+ class RenamedServicesEntry
328
+ include ::Google::Protobuf::MessageExts
329
+ extend ::Google::Protobuf::MessageExts::ClassMethods
330
+ end
282
331
  end
283
332
 
284
333
  # Describes the generator configuration for a method.
@@ -286,6 +335,13 @@ module Google
286
335
  # @return [::String]
287
336
  # The fully qualified name of the method, for which the options below apply.
288
337
  # This is used to find the method to apply the options.
338
+ #
339
+ # Example:
340
+ #
341
+ # publishing:
342
+ # method_settings:
343
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
344
+ # # method settings for CreateFolder...
289
345
  # @!attribute [rw] long_running
290
346
  # @return [::Google::Api::MethodSettings::LongRunning]
291
347
  # Describes settings to use for long-running operations when generating
@@ -294,17 +350,14 @@ module Google
294
350
  #
295
351
  # Example of a YAML configuration::
296
352
  #
297
- # publishing:
298
- # method_settings:
353
+ # publishing:
354
+ # method_settings:
299
355
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
356
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
357
+ # initial_poll_delay: 60s # 1 minute
303
358
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
359
+ # max_poll_delay: 360s # 6 minutes
360
+ # total_poll_timeout: 54000s # 90 minutes
308
361
  # @!attribute [rw] auto_populated_fields
309
362
  # @return [::Array<::String>]
310
363
  # List of top-level fields of the request message, that should be
@@ -313,8 +366,8 @@ module Google
313
366
  #
314
367
  # Example of a YAML configuration:
315
368
  #
316
- # publishing:
317
- # method_settings:
369
+ # publishing:
370
+ # method_settings:
318
371
  # - selector: google.example.v1.ExampleService.CreateExample
319
372
  # auto_populated_fields:
320
373
  # - request_id
@@ -350,6 +403,17 @@ module Google
350
403
  end
351
404
  end
352
405
 
406
+ # This message is used to configure the generation of a subset of the RPCs in
407
+ # a service for client libraries.
408
+ # @!attribute [rw] methods
409
+ # @return [::Array<::String>]
410
+ # An allowlist of the fully qualified names of RPCs that should be included
411
+ # on public client surfaces.
412
+ class SelectiveGapicGeneration
413
+ include ::Google::Protobuf::MessageExts
414
+ extend ::Google::Protobuf::MessageExts::ClassMethods
415
+ end
416
+
353
417
  # The organization for which the client libraries are being published.
354
418
  # Affects the url where generated docs are published, etc.
355
419
  module ClientLibraryOrganization
@@ -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-binary_authorization-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
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-02-26 00:00:00.000000000 Z
11
+ date: 2024-12-10 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.21.1
19
+ version: 0.24.0
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.21.1
29
+ version: 0.24.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
- rubygems_version: 3.5.6
114
+ rubygems_version: 3.5.23
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: The management interface for Binary Authorization, a system providing policy