google-iam-credentials-v1 0.6.0 → 0.6.1
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 +4 -4
- data/lib/google/iam/credentials/v1/iam_credentials/client.rb +4 -2
- data/lib/google/iam/credentials/v1/iam_credentials/rest/client.rb +4 -2
- data/lib/google/iam/credentials/v1/iam_credentials/rest/service_stub.rb +4 -4
- data/lib/google/iam/credentials/v1/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 956fc63f4085f9c63440438251ceef8aa494a7a0533cc04c342b3d18d82f9b61
|
|
4
|
+
data.tar.gz: e932423b2e70af08af1ebc424b80dc5d65744a681306eb4062652a9e3009dcfc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 301f51ca491ce51efcd384182712634404c42ca2e25ad5e1654e6e80ab30aae8d7d153a37e8cfe2cb7406b995713a3103d1295890d232be4e7bb08ac292dacc0
|
|
7
|
+
data.tar.gz: 72ce67c59f633c2f61292efe0ad16a3c72750a2fb00ebf9cfb609ddaf578fa7424e4a2f261588be35c48ce111735c49f91eeb139e32edb72e87d349d04a71809
|
|
@@ -151,7 +151,7 @@ module Google
|
|
|
151
151
|
credentials = @config.credentials
|
|
152
152
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
153
153
|
# but only if the default endpoint does not have a region prefix.
|
|
154
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
154
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
155
155
|
!@config.endpoint.split(".").first.include?("-")
|
|
156
156
|
credentials ||= Credentials.default scope: @config.scope,
|
|
157
157
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -670,7 +670,9 @@ module Google
|
|
|
670
670
|
class Configuration
|
|
671
671
|
extend ::Gapic::Config
|
|
672
672
|
|
|
673
|
-
|
|
673
|
+
DEFAULT_ENDPOINT = "iamcredentials.googleapis.com"
|
|
674
|
+
|
|
675
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
674
676
|
config_attr :credentials, nil do |value|
|
|
675
677
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
676
678
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -147,7 +147,7 @@ module Google
|
|
|
147
147
|
credentials = @config.credentials
|
|
148
148
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
149
149
|
# but only if the default endpoint does not have a region prefix.
|
|
150
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
150
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
151
151
|
!@config.endpoint.split(".").first.include?("-")
|
|
152
152
|
credentials ||= Credentials.default scope: @config.scope,
|
|
153
153
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -560,7 +560,9 @@ module Google
|
|
|
560
560
|
class Configuration
|
|
561
561
|
extend ::Gapic::Config
|
|
562
562
|
|
|
563
|
-
|
|
563
|
+
DEFAULT_ENDPOINT = "iamcredentials.googleapis.com"
|
|
564
|
+
|
|
565
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
564
566
|
config_attr :credentials, nil do |value|
|
|
565
567
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
566
568
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_generate_access_token_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_generate_id_token_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_sign_blob_request request_pb
|
|
137
137
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
139
|
else
|
|
140
140
|
{}
|
|
141
141
|
end
|
|
@@ -173,7 +173,7 @@ module Google
|
|
|
173
173
|
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_sign_jwt_request request_pb
|
|
175
175
|
query_string_params = if query_string_params.any?
|
|
176
|
-
query_string_params.to_h { |p| p.split
|
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
177
177
|
else
|
|
178
178
|
{}
|
|
179
179
|
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.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-06-06 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.
|
|
19
|
+
version: 0.19.1
|
|
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.19.
|
|
29
|
+
version: 0.19.1
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|