google-iam-v1 0.5.0 → 0.5.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdf39c7168923d42da12b4a48cc578e98046eec98d14eede2e0c6be5361c31da
|
4
|
+
data.tar.gz: eb37494ccefbe1a2af0731a48b46e044fd220acb700388dbf129f6eb9a25d669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b156d6b4f370fa10f17c6530ac4efd345b1d6c70b15a3d37987e6bc96d6f2c13e3136ec51e5df306e0f70922303ab475a24df506c0fd3101345eee3bd9fefc77
|
7
|
+
data.tar.gz: 5bb3f72557a091fbc68aae713a194dfc60c8bd5964fd19f8cdf5f26a3c22879b8f31d4108d2d92ce4b4161cab6e79447721e221d4a07cde79f7bc38b198a3b2e
|
@@ -145,7 +145,7 @@ module Google
|
|
145
145
|
credentials = @config.credentials
|
146
146
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
147
147
|
# but only if the default endpoint does not have a region prefix.
|
148
|
-
enable_self_signed_jwt = @config.endpoint ==
|
148
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
149
149
|
!@config.endpoint.split(".").first.include?("-")
|
150
150
|
credentials ||= Credentials.default scope: @config.scope,
|
151
151
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -536,7 +536,9 @@ module Google
|
|
536
536
|
class Configuration
|
537
537
|
extend ::Gapic::Config
|
538
538
|
|
539
|
-
|
539
|
+
DEFAULT_ENDPOINT = "iam-meta-api.googleapis.com"
|
540
|
+
|
541
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
540
542
|
config_attr :credentials, nil do |value|
|
541
543
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
542
544
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -141,7 +141,7 @@ module Google
|
|
141
141
|
credentials = @config.credentials
|
142
142
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
143
143
|
# but only if the default endpoint does not have a region prefix.
|
144
|
-
enable_self_signed_jwt = @config.endpoint ==
|
144
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
145
145
|
!@config.endpoint.split(".").first.include?("-")
|
146
146
|
credentials ||= Credentials.default scope: @config.scope,
|
147
147
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -455,7 +455,9 @@ module Google
|
|
455
455
|
class Configuration
|
456
456
|
extend ::Gapic::Config
|
457
457
|
|
458
|
-
|
458
|
+
DEFAULT_ENDPOINT = "iam-meta-api.googleapis.com"
|
459
|
+
|
460
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
459
461
|
config_attr :credentials, nil do |value|
|
460
462
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
461
463
|
allowed.any? { |klass| klass === value }
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb, bindings_override: bindings_override
|
62
62
|
query_string_params = if query_string_params.any?
|
63
|
-
query_string_params.to_h { |p| p.split
|
63
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
64
64
|
else
|
65
65
|
{}
|
66
66
|
end
|
@@ -100,7 +100,7 @@ module Google
|
|
100
100
|
|
101
101
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb, bindings_override: bindings_override
|
102
102
|
query_string_params = if query_string_params.any?
|
103
|
-
query_string_params.to_h { |p| p.split
|
103
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
104
104
|
else
|
105
105
|
{}
|
106
106
|
end
|
@@ -140,7 +140,7 @@ module Google
|
|
140
140
|
|
141
141
|
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb, bindings_override: bindings_override
|
142
142
|
query_string_params = if query_string_params.any?
|
143
|
-
query_string_params.to_h { |p| p.split
|
143
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
144
144
|
else
|
145
145
|
{}
|
146
146
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-iam-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.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
|