google-cloud-binary_authorization-v1beta1 0.3.3 → 0.3.4

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: a11b9430128518601ed19b5a754f04e48198d91ae6cb3c49ca4558251e771fc0
4
- data.tar.gz: 3908b55ebafd9c6d8cc8c26992d6f64d4aa8c8cbde7ff5812242716390cbca91
3
+ metadata.gz: 0b2409e68ea2a91e67465a81c38b4f7d8da7cc0880180287e2e3f50f62a030c6
4
+ data.tar.gz: 8c0093f6dda1fee6797b5a0d5e62475abbcaebfb4193b25aff7c81421a20a2db
5
5
  SHA512:
6
- metadata.gz: e118d761339dd4fac8e380add6d0fc927920e392e3a76a4c5b6b5cb29c1685de1da06a87dd507a7e97dd087f3631bbf9f1388c8839470018dfecac9b8f08c632
7
- data.tar.gz: 38a3d01da37c2313686fdb64ed64d1b377edb63d27d0229589f8bc9707d627045da273b8fe3a90a234e737e430fca9c0480483282565a10088268f279703b87a
6
+ metadata.gz: 43b6ba3464e0b63b7ef496a35aee3406a00ea7aa9aa9d22037fae12434b51a8a4e218b7c6fef00f301109fd174ac3f0ae63e5f9239e0fdb9dbe03e5ae7206458
7
+ data.tar.gz: 9e0d97ec9a80a0818257f6dddc208b377bf44702795171027a6e98b511968f0b0c864aa1df74a31558ef8bd3c875b6f9777e82a197820ec05d64fa8fd1f09d18
@@ -47,13 +47,12 @@ module Google
47
47
  # See {::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client::Configuration}
48
48
  # for a description of the configuration fields.
49
49
  #
50
- # ## Example
50
+ # @example
51
51
  #
52
- # To modify the configuration for all BinauthzManagementService clients:
53
- #
54
- # ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.configure do |config|
55
- # config.timeout = 10.0
56
- # end
52
+ # # Modify the configuration for all BinauthzManagementService clients
53
+ # ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.configure do |config|
54
+ # config.timeout = 10.0
55
+ # end
57
56
  #
58
57
  # @yield [config] Configure the Client client.
59
58
  # @yieldparam config [Client::Configuration]
@@ -132,19 +131,15 @@ module Google
132
131
  ##
133
132
  # Create a new BinauthzManagementService client object.
134
133
  #
135
- # ## Examples
136
- #
137
- # To create a new BinauthzManagementService client with the default
138
- # configuration:
134
+ # @example
139
135
  #
140
- # client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new
136
+ # # Create a client using the default configuration
137
+ # client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new
141
138
  #
142
- # To create a new BinauthzManagementService client with a custom
143
- # configuration:
144
- #
145
- # client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new do |config|
146
- # config.timeout = 10.0
147
- # end
139
+ # # Create a client using a custom configuration
140
+ # client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new do |config|
141
+ # config.timeout = 10.0
142
+ # end
148
143
  #
149
144
  # @yield [config] Configure the BinauthzManagementService client.
150
145
  # @yieldparam config [Client::Configuration]
@@ -164,10 +159,9 @@ module Google
164
159
 
165
160
  # Create credentials
166
161
  credentials = @config.credentials
167
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
162
+ # Use self-signed JWT if the endpoint is unchanged from default,
168
163
  # but only if the default endpoint does not have a region prefix.
169
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
170
- @config.endpoint == Client.configure.endpoint &&
164
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
171
165
  !@config.endpoint.split(".").first.include?("-")
172
166
  credentials ||= Credentials.default scope: @config.scope,
173
167
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -254,7 +248,9 @@ module Google
254
248
  options.apply_defaults timeout: @config.rpcs.get_policy.timeout,
255
249
  metadata: metadata,
256
250
  retry_policy: @config.rpcs.get_policy.retry_policy
257
- options.apply_defaults metadata: @config.metadata,
251
+
252
+ options.apply_defaults timeout: @config.timeout,
253
+ metadata: @config.metadata,
258
254
  retry_policy: @config.retry_policy
259
255
 
260
256
  @binauthz_management_service_stub.call_rpc :get_policy, request, options: options do |response, operation|
@@ -330,7 +326,9 @@ module Google
330
326
  options.apply_defaults timeout: @config.rpcs.update_policy.timeout,
331
327
  metadata: metadata,
332
328
  retry_policy: @config.rpcs.update_policy.retry_policy
333
- options.apply_defaults metadata: @config.metadata,
329
+
330
+ options.apply_defaults timeout: @config.timeout,
331
+ metadata: @config.metadata,
334
332
  retry_policy: @config.retry_policy
335
333
 
336
334
  @binauthz_management_service_stub.call_rpc :update_policy, request, options: options do |response, operation|
@@ -412,7 +410,9 @@ module Google
412
410
  options.apply_defaults timeout: @config.rpcs.create_attestor.timeout,
413
411
  metadata: metadata,
414
412
  retry_policy: @config.rpcs.create_attestor.retry_policy
415
- options.apply_defaults metadata: @config.metadata,
413
+
414
+ options.apply_defaults timeout: @config.timeout,
415
+ metadata: @config.metadata,
416
416
  retry_policy: @config.retry_policy
417
417
 
418
418
  @binauthz_management_service_stub.call_rpc :create_attestor, request, options: options do |response, operation|
@@ -483,7 +483,9 @@ module Google
483
483
  options.apply_defaults timeout: @config.rpcs.get_attestor.timeout,
484
484
  metadata: metadata,
485
485
  retry_policy: @config.rpcs.get_attestor.retry_policy
486
- options.apply_defaults metadata: @config.metadata,
486
+
487
+ options.apply_defaults timeout: @config.timeout,
488
+ metadata: @config.metadata,
487
489
  retry_policy: @config.retry_policy
488
490
 
489
491
  @binauthz_management_service_stub.call_rpc :get_attestor, request, options: options do |response, operation|
@@ -557,7 +559,9 @@ module Google
557
559
  options.apply_defaults timeout: @config.rpcs.update_attestor.timeout,
558
560
  metadata: metadata,
559
561
  retry_policy: @config.rpcs.update_attestor.retry_policy
560
- options.apply_defaults metadata: @config.metadata,
562
+
563
+ options.apply_defaults timeout: @config.timeout,
564
+ metadata: @config.metadata,
561
565
  retry_policy: @config.retry_policy
562
566
 
563
567
  @binauthz_management_service_stub.call_rpc :update_attestor, request, options: options do |response, operation|
@@ -634,7 +638,9 @@ module Google
634
638
  options.apply_defaults timeout: @config.rpcs.list_attestors.timeout,
635
639
  metadata: metadata,
636
640
  retry_policy: @config.rpcs.list_attestors.retry_policy
637
- options.apply_defaults metadata: @config.metadata,
641
+
642
+ options.apply_defaults timeout: @config.timeout,
643
+ metadata: @config.metadata,
638
644
  retry_policy: @config.retry_policy
639
645
 
640
646
  @binauthz_management_service_stub.call_rpc :list_attestors, request, options: options do |response, operation|
@@ -706,7 +712,9 @@ module Google
706
712
  options.apply_defaults timeout: @config.rpcs.delete_attestor.timeout,
707
713
  metadata: metadata,
708
714
  retry_policy: @config.rpcs.delete_attestor.retry_policy
709
- options.apply_defaults metadata: @config.metadata,
715
+
716
+ options.apply_defaults timeout: @config.timeout,
717
+ metadata: @config.metadata,
710
718
  retry_policy: @config.retry_policy
711
719
 
712
720
  @binauthz_management_service_stub.call_rpc :delete_attestor, request, options: options do |response, operation|
@@ -730,22 +738,21 @@ module Google
730
738
  # Configuration can be applied globally to all clients, or to a single client
731
739
  # on construction.
732
740
  #
733
- # # Examples
734
- #
735
- # To modify the global config, setting the timeout for get_policy
736
- # to 20 seconds, and all remaining timeouts to 10 seconds:
737
- #
738
- # ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.configure do |config|
739
- # config.timeout = 10.0
740
- # config.rpcs.get_policy.timeout = 20.0
741
- # end
742
- #
743
- # To apply the above configuration only to a new client:
744
- #
745
- # client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new do |config|
746
- # config.timeout = 10.0
747
- # config.rpcs.get_policy.timeout = 20.0
748
- # end
741
+ # @example
742
+ #
743
+ # # Modify the global config, setting the timeout for
744
+ # # get_policy to 20 seconds,
745
+ # # and all remaining timeouts to 10 seconds.
746
+ # ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.configure do |config|
747
+ # config.timeout = 10.0
748
+ # config.rpcs.get_policy.timeout = 20.0
749
+ # end
750
+ #
751
+ # # Apply the above configuration only to a new client.
752
+ # client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new do |config|
753
+ # config.timeout = 10.0
754
+ # config.rpcs.get_policy.timeout = 20.0
755
+ # end
749
756
  #
750
757
  # @!attribute [rw] endpoint
751
758
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module BinaryAuthorization
23
23
  module V1beta1
24
- VERSION = "0.3.3"
24
+ VERSION = "0.3.4"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-binary_authorization-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
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-08-05 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a