google-cloud-pubsub-v1 0.20.1 → 0.20.2
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: 5c4ad31b7fba0941ac331f0c4dce8fce269220daa35c28319c0b47a9670ec8ce
|
4
|
+
data.tar.gz: 3d00ae547c0716674a2041a0752a3f94c190dd5ebce17c26516d95288bc10e7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2193843c3ad756620ee68d816a760c35f81d021d9c8e5af23e8f55f5c21d706bf29d6319df492cc44de171681738560ff8ce988b7bbc71e3bb540fda2cc040b
|
7
|
+
data.tar.gz: 714c5000a89f215969db48c8d14d3728bfb1057dba8674a787e3f85e21813ce4b3345d216a57341294c41e8cdefdb72e4b5061f80482c91dca58d04b6274d5c7
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# legacy class.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "pubsub.$UNIVERSE_DOMAIN$"
|
37
|
+
|
35
38
|
# @private
|
36
39
|
attr_reader :iam_policy_stub
|
37
40
|
|
@@ -83,8 +86,9 @@ module Google
|
|
83
86
|
credentials = @config.credentials
|
84
87
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
85
88
|
# but only if the default endpoint does not have a region prefix.
|
86
|
-
enable_self_signed_jwt = @config.endpoint
|
87
|
-
|
89
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
90
|
+
(@config.endpoint == Client.configure.endpoint &&
|
91
|
+
!@config.endpoint.split(".").first.include?("-"))
|
88
92
|
credentials ||= Credentials.default scope: @config.scope,
|
89
93
|
enable_self_signed_jwt: enable_self_signed_jwt
|
90
94
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -95,8 +99,10 @@ module Google
|
|
95
99
|
|
96
100
|
@iam_policy_stub = ::Gapic::ServiceStub.new(
|
97
101
|
::Google::Iam::V1::IAMPolicy::Stub,
|
98
|
-
credentials:
|
99
|
-
endpoint:
|
102
|
+
credentials: credentials,
|
103
|
+
endpoint: @config.endpoint,
|
104
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
105
|
+
universe_domain: @config.universe_domain,
|
100
106
|
channel_args: @config.channel_args,
|
101
107
|
interceptors: @config.interceptors
|
102
108
|
)
|
@@ -242,7 +248,7 @@ module Google
|
|
242
248
|
class Configuration
|
243
249
|
extend ::Gapic::Config
|
244
250
|
|
245
|
-
config_attr :endpoint,
|
251
|
+
config_attr :endpoint, nil, ::String, nil
|
246
252
|
config_attr :credentials, nil do |value|
|
247
253
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
248
254
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -257,6 +263,7 @@ module Google
|
|
257
263
|
config_attr :metadata, nil, ::Hash, nil
|
258
264
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
259
265
|
config_attr :quota_project, nil, ::String, nil
|
266
|
+
config_attr :universe_domain, nil, ::String, nil
|
260
267
|
|
261
268
|
# @private
|
262
269
|
def initialize parent_config = nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-pubsub-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|