google-cloud-policy_troubleshooter-v1 0.7.0 → 0.7.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: 66fb71509d300496ed1b2c218f0d540ce4461a7ac5e1b9fa297766065a2a36be
4
- data.tar.gz: 9396a1a2531c9eadaf08dc4315de023eaba45dbd680a480854be611fa9bc9142
3
+ metadata.gz: fa6e27cfe5b8974a20cd0aad57baf5b5a47ea5688f8d330bf6d7b710bbcc759d
4
+ data.tar.gz: fcd314d8b7495d51846935efe4acdc6d2137d5cd8187ff774cf27981202d14c5
5
5
  SHA512:
6
- metadata.gz: eb09b4a84a4e7fab59d898d45e41d46cdb2ea0847492a5e792a22001555227baddd25161d50af4eb073c6aafc67e2ee859b96abfafb049402863fa7170ddfee5
7
- data.tar.gz: 29e95a09e769e9befea80b92d7c156fa6cfabc3734cdface37ace59e8672497588c51086b6a4af44d4de868339610ca57cd7010d4b21c49865c4520bc69393fe
6
+ metadata.gz: 0d9c7c91eff4c865b5f0e12fe783a49e308a2770f20e5e15aa7ae89537ff73cb15f93f4ce7665d06c67ca5855e0c50a5a3bc129361c06163c74907bd852e336b
7
+ data.tar.gz: f87e86029e944eba2b965bec48ad4d6b630436af885d6aea2eb33c853d4364d126435c1eeead2ac6853673bb74e7b6b7fcd5e29145f5ad0c09ef370d7e401247
@@ -130,7 +130,7 @@ module Google
130
130
  credentials = @config.credentials
131
131
  # Use self-signed JWT if the endpoint is unchanged from default,
132
132
  # but only if the default endpoint does not have a region prefix.
133
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
133
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
134
134
  !@config.endpoint.split(".").first.include?("-")
135
135
  credentials ||= Credentials.default scope: @config.scope,
136
136
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -312,7 +312,9 @@ module Google
312
312
  class Configuration
313
313
  extend ::Gapic::Config
314
314
 
315
- config_attr :endpoint, "policytroubleshooter.googleapis.com", ::String
315
+ DEFAULT_ENDPOINT = "policytroubleshooter.googleapis.com"
316
+
317
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
316
318
  config_attr :credentials, nil do |value|
317
319
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
318
320
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -126,7 +126,7 @@ module Google
126
126
  credentials = @config.credentials
127
127
  # Use self-signed JWT if the endpoint is unchanged from default,
128
128
  # but only if the default endpoint does not have a region prefix.
129
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
129
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
130
130
  !@config.endpoint.split(".").first.include?("-")
131
131
  credentials ||= Credentials.default scope: @config.scope,
132
132
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -279,7 +279,9 @@ module Google
279
279
  class Configuration
280
280
  extend ::Gapic::Config
281
281
 
282
- config_attr :endpoint, "policytroubleshooter.googleapis.com", ::String
282
+ DEFAULT_ENDPOINT = "policytroubleshooter.googleapis.com"
283
+
284
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
283
285
  config_attr :credentials, nil do |value|
284
286
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
285
287
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_troubleshoot_iam_policy_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PolicyTroubleshooter
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.7.1"
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-cloud-policy_troubleshooter-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.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-06-02 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