google-cloud-pubsub-v1 0.20.1 → 0.20.2

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: 6639128a22c1cbe8201f8caa384ff84f096e9422a9ca4bf0c447f9af487fe726
4
- data.tar.gz: ef9ca3ae1525e3dcc846acc8076c9f18af7815aa1a913db7813137bd1f874c17
3
+ metadata.gz: 5c4ad31b7fba0941ac331f0c4dce8fce269220daa35c28319c0b47a9670ec8ce
4
+ data.tar.gz: 3d00ae547c0716674a2041a0752a3f94c190dd5ebce17c26516d95288bc10e7b
5
5
  SHA512:
6
- metadata.gz: a9996f0310778f78d21b1492204795c18b546a469c103d0315a5d29b9186dd18fb7d62595d1d3622f076f4599a66d5757b8f233f3126e50405d97b8895a3543b
7
- data.tar.gz: bc61c235cab9c61a9ee0bb3a2798d6f73240f2cbc975a79a5f8e0369ac131fee0eb545df8c61ee70903284f254c08782c7bcd3eb3541d3b332d235aa2042f70e
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 == Client.configure.endpoint &&
87
- !@config.endpoint.split(".").first.include?("-")
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: credentials,
99
- endpoint: @config.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, "pubsub.googleapis.com", ::String
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PubSub
23
23
  module V1
24
- VERSION = "0.20.1"
24
+ VERSION = "0.20.2"
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-pubsub-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
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-12 00:00:00.000000000 Z
11
+ date: 2024-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common