google-iam-credentials-v1 0.3.2 → 0.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ee976989804c904afd4dc4b04e797030364c226b0f97441520a8238420dc659
|
4
|
+
data.tar.gz: 270bbf5f53ea3d65656f58d1a8fd48236cc679790e6d3fa547771bb53d6a609e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
52
|
+
# @example
|
53
53
|
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
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
|
-
#
|
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
|
-
#
|
133
|
-
#
|
126
|
+
# # Create a client using the default configuration
|
127
|
+
# client = ::Google::Iam::Credentials::V1::IAMCredentials::Client.new
|
134
128
|
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
535
|
-
#
|
536
|
-
#
|
537
|
-
# to 20 seconds,
|
538
|
-
#
|
539
|
-
#
|
540
|
-
#
|
541
|
-
#
|
542
|
-
#
|
543
|
-
#
|
544
|
-
#
|
545
|
-
#
|
546
|
-
#
|
547
|
-
#
|
548
|
-
#
|
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.
|
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.
|
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-
|
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.
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|