google-cloud-access_approval-v1 0.4.2 → 0.4.3

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: 54b1b9a27a8376ef30c5d6f229c0d120d1efba16e6c90b618b5fe7ad4e353c18
4
- data.tar.gz: b02af0fddbdf43cb1281d085e90a0c65246e2c31e783fd7bc82d6f97d3a7d9b5
3
+ metadata.gz: b6d16f7955018ed8762958c423b5dd6ef5b32d2ac3b8721521ab504752f0e549
4
+ data.tar.gz: e6256ae30a98af72f74307dbee5c71a8465c10e7c2931355632cc9e09d4c2444
5
5
  SHA512:
6
- metadata.gz: 4e0d0d7a556edfe4d3cd218205869a769c457b170221291de6999413eb738fda6cd740c366ad194ecc1be6d30e3c66198665a917e948b135ad0658843b17bc9d
7
- data.tar.gz: 84a50d02ea8631d88c449ffa4fa8539265935c5b7b44ce3b991fa953920486d94fdff97e3b3355bb5e8aa6fb9e507d5d29f3ec0745737e28bb9e52963dfb0683
6
+ metadata.gz: 1f714a6151e101cfff7cda2d670507b62bc996231deb8cb1c1e32f968a894042cbd56362ebc82c963c272a24cae58c6e454e35fe6025e723040ba805f323f933
7
+ data.tar.gz: ef4038cec13569d9d832c082e5e408dcb212db827a94e19c249dd1f5b5869bb562577a26b8c1f01319e22ebbddd448fb55c1b0f1ef40f547806c594a1c0a38ec
@@ -71,13 +71,12 @@ module Google
71
71
  # See {::Google::Cloud::AccessApproval::V1::AccessApproval::Client::Configuration}
72
72
  # for a description of the configuration fields.
73
73
  #
74
- # ## Example
74
+ # @example
75
75
  #
76
- # To modify the configuration for all AccessApproval clients:
77
- #
78
- # ::Google::Cloud::AccessApproval::V1::AccessApproval::Client.configure do |config|
79
- # config.timeout = 10.0
80
- # end
76
+ # # Modify the configuration for all AccessApproval clients
77
+ # ::Google::Cloud::AccessApproval::V1::AccessApproval::Client.configure do |config|
78
+ # config.timeout = 10.0
79
+ # end
81
80
  #
82
81
  # @yield [config] Configure the Client client.
83
82
  # @yieldparam config [Client::Configuration]
@@ -147,19 +146,15 @@ module Google
147
146
  ##
148
147
  # Create a new AccessApproval client object.
149
148
  #
150
- # ## Examples
151
- #
152
- # To create a new AccessApproval client with the default
153
- # configuration:
149
+ # @example
154
150
  #
155
- # client = ::Google::Cloud::AccessApproval::V1::AccessApproval::Client.new
151
+ # # Create a client using the default configuration
152
+ # client = ::Google::Cloud::AccessApproval::V1::AccessApproval::Client.new
156
153
  #
157
- # To create a new AccessApproval client with a custom
158
- # configuration:
159
- #
160
- # client = ::Google::Cloud::AccessApproval::V1::AccessApproval::Client.new do |config|
161
- # config.timeout = 10.0
162
- # end
154
+ # # Create a client using a custom configuration
155
+ # client = ::Google::Cloud::AccessApproval::V1::AccessApproval::Client.new do |config|
156
+ # config.timeout = 10.0
157
+ # end
163
158
  #
164
159
  # @yield [config] Configure the AccessApproval client.
165
160
  # @yieldparam config [Client::Configuration]
@@ -179,10 +174,9 @@ module Google
179
174
 
180
175
  # Create credentials
181
176
  credentials = @config.credentials
182
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
177
+ # Use self-signed JWT if the endpoint is unchanged from default,
183
178
  # but only if the default endpoint does not have a region prefix.
184
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
185
- @config.endpoint == Client.configure.endpoint &&
179
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
186
180
  !@config.endpoint.split(".").first.include?("-")
187
181
  credentials ||= Credentials.default scope: @config.scope,
188
182
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -274,7 +268,9 @@ module Google
274
268
  options.apply_defaults timeout: @config.rpcs.list_approval_requests.timeout,
275
269
  metadata: metadata,
276
270
  retry_policy: @config.rpcs.list_approval_requests.retry_policy
277
- options.apply_defaults metadata: @config.metadata,
271
+
272
+ options.apply_defaults timeout: @config.timeout,
273
+ metadata: @config.metadata,
278
274
  retry_policy: @config.retry_policy
279
275
 
280
276
  @access_approval_stub.call_rpc :list_approval_requests, request, options: options do |response, operation|
@@ -341,7 +337,9 @@ module Google
341
337
  options.apply_defaults timeout: @config.rpcs.get_approval_request.timeout,
342
338
  metadata: metadata,
343
339
  retry_policy: @config.rpcs.get_approval_request.retry_policy
344
- options.apply_defaults metadata: @config.metadata,
340
+
341
+ options.apply_defaults timeout: @config.timeout,
342
+ metadata: @config.metadata,
345
343
  retry_policy: @config.retry_policy
346
344
 
347
345
  @access_approval_stub.call_rpc :get_approval_request, request, options: options do |response, operation|
@@ -412,7 +410,9 @@ module Google
412
410
  options.apply_defaults timeout: @config.rpcs.approve_approval_request.timeout,
413
411
  metadata: metadata,
414
412
  retry_policy: @config.rpcs.approve_approval_request.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
  @access_approval_stub.call_rpc :approve_approval_request, request, options: options do |response, operation|
@@ -487,7 +487,9 @@ module Google
487
487
  options.apply_defaults timeout: @config.rpcs.dismiss_approval_request.timeout,
488
488
  metadata: metadata,
489
489
  retry_policy: @config.rpcs.dismiss_approval_request.retry_policy
490
- options.apply_defaults metadata: @config.metadata,
490
+
491
+ options.apply_defaults timeout: @config.timeout,
492
+ metadata: @config.metadata,
491
493
  retry_policy: @config.retry_policy
492
494
 
493
495
  @access_approval_stub.call_rpc :dismiss_approval_request, request, options: options do |response, operation|
@@ -553,7 +555,9 @@ module Google
553
555
  options.apply_defaults timeout: @config.rpcs.get_access_approval_settings.timeout,
554
556
  metadata: metadata,
555
557
  retry_policy: @config.rpcs.get_access_approval_settings.retry_policy
556
- options.apply_defaults metadata: @config.metadata,
558
+
559
+ options.apply_defaults timeout: @config.timeout,
560
+ metadata: @config.metadata,
557
561
  retry_policy: @config.retry_policy
558
562
 
559
563
  @access_approval_stub.call_rpc :get_access_approval_settings, request, options: options do |response, operation|
@@ -631,7 +635,9 @@ module Google
631
635
  options.apply_defaults timeout: @config.rpcs.update_access_approval_settings.timeout,
632
636
  metadata: metadata,
633
637
  retry_policy: @config.rpcs.update_access_approval_settings.retry_policy
634
- options.apply_defaults metadata: @config.metadata,
638
+
639
+ options.apply_defaults timeout: @config.timeout,
640
+ metadata: @config.metadata,
635
641
  retry_policy: @config.retry_policy
636
642
 
637
643
  @access_approval_stub.call_rpc :update_access_approval_settings, request, options: options do |response, operation|
@@ -702,7 +708,9 @@ module Google
702
708
  options.apply_defaults timeout: @config.rpcs.delete_access_approval_settings.timeout,
703
709
  metadata: metadata,
704
710
  retry_policy: @config.rpcs.delete_access_approval_settings.retry_policy
705
- options.apply_defaults metadata: @config.metadata,
711
+
712
+ options.apply_defaults timeout: @config.timeout,
713
+ metadata: @config.metadata,
706
714
  retry_policy: @config.retry_policy
707
715
 
708
716
  @access_approval_stub.call_rpc :delete_access_approval_settings, request, options: options do |response, operation|
@@ -726,22 +734,21 @@ module Google
726
734
  # Configuration can be applied globally to all clients, or to a single client
727
735
  # on construction.
728
736
  #
729
- # # Examples
730
- #
731
- # To modify the global config, setting the timeout for list_approval_requests
732
- # to 20 seconds, and all remaining timeouts to 10 seconds:
733
- #
734
- # ::Google::Cloud::AccessApproval::V1::AccessApproval::Client.configure do |config|
735
- # config.timeout = 10.0
736
- # config.rpcs.list_approval_requests.timeout = 20.0
737
- # end
738
- #
739
- # To apply the above configuration only to a new client:
740
- #
741
- # client = ::Google::Cloud::AccessApproval::V1::AccessApproval::Client.new do |config|
742
- # config.timeout = 10.0
743
- # config.rpcs.list_approval_requests.timeout = 20.0
744
- # end
737
+ # @example
738
+ #
739
+ # # Modify the global config, setting the timeout for
740
+ # # list_approval_requests to 20 seconds,
741
+ # # and all remaining timeouts to 10 seconds.
742
+ # ::Google::Cloud::AccessApproval::V1::AccessApproval::Client.configure do |config|
743
+ # config.timeout = 10.0
744
+ # config.rpcs.list_approval_requests.timeout = 20.0
745
+ # end
746
+ #
747
+ # # Apply the above configuration only to a new client.
748
+ # client = ::Google::Cloud::AccessApproval::V1::AccessApproval::Client.new do |config|
749
+ # config.timeout = 10.0
750
+ # config.rpcs.list_approval_requests.timeout = 20.0
751
+ # end
745
752
  #
746
753
  # @!attribute [rw] endpoint
747
754
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AccessApproval
23
23
  module V1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.3"
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-access_approval-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
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-07-12 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