google-iam-v1 0.5.0 → 0.5.1

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: b1d20c9cb30dee20c05255e4de239cf6ac7bcc989c3d788aa1ff81458f6a3b8d
4
- data.tar.gz: dbbe18420e20e0990885e7566f6208a498c17b58be30e0d89e4597a30bff26ce
3
+ metadata.gz: cdf39c7168923d42da12b4a48cc578e98046eec98d14eede2e0c6be5361c31da
4
+ data.tar.gz: eb37494ccefbe1a2af0731a48b46e044fd220acb700388dbf129f6eb9a25d669
5
5
  SHA512:
6
- metadata.gz: c1a50876f2fd07fe86ab8a317211dbfbfe2d646f29b0d1d9421837be9c808efe551128bda221b1e30b681baf02098c9d34448dfeffc49e338424ebce1ee30190
7
- data.tar.gz: eb6c8ba123bf22daa15a8ded7c1bf68b344e6813205f70fa4daaf03104c1704dab85d4c94d5676793cabb7c83b6217d353cec1b348c0074e9dca05c1b0762f96
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 == Client.configure.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
- config_attr :endpoint, "iam-meta-api.googleapis.com", ::String
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 == Client.configure.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
- config_attr :endpoint, "iam-meta-api.googleapis.com", ::String
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("=", 2) }
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("=", 2) }
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("=", 2) }
143
+ query_string_params.to_h { |p| p.split "=", 2 }
144
144
  else
145
145
  {}
146
146
  end
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Iam
22
22
  module V1
23
- VERSION = "0.5.0"
23
+ VERSION = "0.5.1"
24
24
  end
25
25
  end
26
26
  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.0
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-05-31 00:00:00.000000000 Z
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.0
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.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a