google-iam-credentials-v1 0.3.2 → 0.3.3

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: ff1fa7efdc0e2d581032349a5c9d76a4436774d1ea4870970f256c1869f07fbd
4
- data.tar.gz: 4399a0b70eb2cfd9dc820c23281d9382cadaf22e62904fbfe6da00587353edd9
3
+ metadata.gz: 8ee976989804c904afd4dc4b04e797030364c226b0f97441520a8238420dc659
4
+ data.tar.gz: 270bbf5f53ea3d65656f58d1a8fd48236cc679790e6d3fa547771bb53d6a609e
5
5
  SHA512:
6
- metadata.gz: '091e5a60ab72d66f181666d2ce8a30a4ed3ed461c19bcdf53da6ebdee377e6b0298a5d6ea790b657e95f2bcd4286f4895b9311947b4856c4fea0a3c462709361'
7
- data.tar.gz: cb8a601e9bf1a09408997d49c838316c1bc029fd9c4739b8a6ef2495137e7c6da686de2c2cfc522f492054bccb74e5055d640ec31d9fd5c5638374213bd72a5f
6
+ metadata.gz: 4a59240159962b9ea832acc07445af28d28c6038b645d9e83d373872c32a28e8177f8fd25a98f8434efdc0dad405162391dda8543b65edd7995a8ec5ea1c959a
7
+ data.tar.gz: 8d50a77306272cd1291276fb183f01e0cdd57204d95a4f7e5599bdfaee0a4b6998f752080aee110b0d24ca80f0dcd1f60ea6e1ea37256bb8b04356a47707c859
@@ -49,13 +49,12 @@ module Google
49
49
  # See {::Google::Iam::Credentials::V1::IAMCredentials::Client::Configuration}
50
50
  # for a description of the configuration fields.
51
51
  #
52
- # ## Example
52
+ # @example
53
53
  #
54
- # To modify the configuration for all IAMCredentials clients:
55
- #
56
- # ::Google::Iam::Credentials::V1::IAMCredentials::Client.configure do |config|
57
- # config.timeout = 10.0
58
- # end
54
+ # # Modify the configuration for all IAMCredentials clients
55
+ # ::Google::Iam::Credentials::V1::IAMCredentials::Client.configure do |config|
56
+ # config.timeout = 10.0
57
+ # end
59
58
  #
60
59
  # @yield [config] Configure the Client client.
61
60
  # @yieldparam config [Client::Configuration]
@@ -122,19 +121,15 @@ module Google
122
121
  ##
123
122
  # Create a new IAMCredentials client object.
124
123
  #
125
- # ## Examples
126
- #
127
- # To create a new IAMCredentials client with the default
128
- # configuration:
129
- #
130
- # client = ::Google::Iam::Credentials::V1::IAMCredentials::Client.new
124
+ # @example
131
125
  #
132
- # To create a new IAMCredentials client with a custom
133
- # configuration:
126
+ # # Create a client using the default configuration
127
+ # client = ::Google::Iam::Credentials::V1::IAMCredentials::Client.new
134
128
  #
135
- # client = ::Google::Iam::Credentials::V1::IAMCredentials::Client.new do |config|
136
- # config.timeout = 10.0
137
- # end
129
+ # # Create a client using a custom configuration
130
+ # client = ::Google::Iam::Credentials::V1::IAMCredentials::Client.new do |config|
131
+ # config.timeout = 10.0
132
+ # end
138
133
  #
139
134
  # @yield [config] Configure the IAMCredentials client.
140
135
  # @yieldparam config [Client::Configuration]
@@ -154,10 +149,9 @@ module Google
154
149
 
155
150
  # Create credentials
156
151
  credentials = @config.credentials
157
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
152
+ # Use self-signed JWT if the endpoint is unchanged from default,
158
153
  # but only if the default endpoint does not have a region prefix.
159
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
160
- @config.endpoint == Client.configure.endpoint &&
154
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
161
155
  !@config.endpoint.split(".").first.include?("-")
162
156
  credentials ||= Credentials.default scope: @config.scope,
163
157
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -257,7 +251,9 @@ module Google
257
251
  options.apply_defaults timeout: @config.rpcs.generate_access_token.timeout,
258
252
  metadata: metadata,
259
253
  retry_policy: @config.rpcs.generate_access_token.retry_policy
260
- options.apply_defaults metadata: @config.metadata,
254
+
255
+ options.apply_defaults timeout: @config.timeout,
256
+ metadata: @config.metadata,
261
257
  retry_policy: @config.retry_policy
262
258
 
263
259
  @iam_credentials_stub.call_rpc :generate_access_token, request, options: options do |response, operation|
@@ -343,7 +339,9 @@ module Google
343
339
  options.apply_defaults timeout: @config.rpcs.generate_id_token.timeout,
344
340
  metadata: metadata,
345
341
  retry_policy: @config.rpcs.generate_id_token.retry_policy
346
- options.apply_defaults metadata: @config.metadata,
342
+
343
+ options.apply_defaults timeout: @config.timeout,
344
+ metadata: @config.metadata,
347
345
  retry_policy: @config.retry_policy
348
346
 
349
347
  @iam_credentials_stub.call_rpc :generate_id_token, request, options: options do |response, operation|
@@ -425,7 +423,9 @@ module Google
425
423
  options.apply_defaults timeout: @config.rpcs.sign_blob.timeout,
426
424
  metadata: metadata,
427
425
  retry_policy: @config.rpcs.sign_blob.retry_policy
428
- options.apply_defaults metadata: @config.metadata,
426
+
427
+ options.apply_defaults timeout: @config.timeout,
428
+ metadata: @config.metadata,
429
429
  retry_policy: @config.retry_policy
430
430
 
431
431
  @iam_credentials_stub.call_rpc :sign_blob, request, options: options do |response, operation|
@@ -507,7 +507,9 @@ module Google
507
507
  options.apply_defaults timeout: @config.rpcs.sign_jwt.timeout,
508
508
  metadata: metadata,
509
509
  retry_policy: @config.rpcs.sign_jwt.retry_policy
510
- options.apply_defaults metadata: @config.metadata,
510
+
511
+ options.apply_defaults timeout: @config.timeout,
512
+ metadata: @config.metadata,
511
513
  retry_policy: @config.retry_policy
512
514
 
513
515
  @iam_credentials_stub.call_rpc :sign_jwt, request, options: options do |response, operation|
@@ -531,22 +533,21 @@ module Google
531
533
  # Configuration can be applied globally to all clients, or to a single client
532
534
  # on construction.
533
535
  #
534
- # # Examples
535
- #
536
- # To modify the global config, setting the timeout for generate_access_token
537
- # to 20 seconds, and all remaining timeouts to 10 seconds:
538
- #
539
- # ::Google::Iam::Credentials::V1::IAMCredentials::Client.configure do |config|
540
- # config.timeout = 10.0
541
- # config.rpcs.generate_access_token.timeout = 20.0
542
- # end
543
- #
544
- # To apply the above configuration only to a new client:
545
- #
546
- # client = ::Google::Iam::Credentials::V1::IAMCredentials::Client.new do |config|
547
- # config.timeout = 10.0
548
- # config.rpcs.generate_access_token.timeout = 20.0
549
- # end
536
+ # @example
537
+ #
538
+ # # Modify the global config, setting the timeout for
539
+ # # generate_access_token to 20 seconds,
540
+ # # and all remaining timeouts to 10 seconds.
541
+ # ::Google::Iam::Credentials::V1::IAMCredentials::Client.configure do |config|
542
+ # config.timeout = 10.0
543
+ # config.rpcs.generate_access_token.timeout = 20.0
544
+ # end
545
+ #
546
+ # # Apply the above configuration only to a new client.
547
+ # client = ::Google::Iam::Credentials::V1::IAMCredentials::Client.new do |config|
548
+ # config.timeout = 10.0
549
+ # config.rpcs.generate_access_token.timeout = 20.0
550
+ # end
550
551
  #
551
552
  # @!attribute [rw] endpoint
552
553
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Iam
22
22
  module Credentials
23
23
  module V1
24
- VERSION = "0.3.2"
24
+ VERSION = "0.3.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-iam-credentials-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.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