google-cloud-service_directory-v1 0.10.0 → 0.10.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: 26a77adbf78b39f72358f943b5e20e4889a4e31f897204df3d678e5033f41710
4
- data.tar.gz: d124a1bb9c7da43a71be3f09c0368611091778be814f60a37155a9c26fe37107
3
+ metadata.gz: 175744e7698a1324da84c127e9fe7b7a847dc22032e1ee13f4adee403ae7bb7e
4
+ data.tar.gz: 8de87ac70a9759d0dcb9b7109b579be96e08197654c9b83b9b8e184f5022a549
5
5
  SHA512:
6
- metadata.gz: acd060c8a0eb9ca855f3e1dbf775db3413abb6252d47b03adf3a0f72d73147f2cae26a4a05e343d87bbc9e467ed2fd1ffe45c1757d547e327610da747a1bb0c4
7
- data.tar.gz: 8b961270e7cb154559a5d47aa50b73aff044cbb52a475a26c226f4cdb8409ea1b281290dd67b3d25e616db2e688195b0af165880654bdb3c57d92e1d2b883098
6
+ metadata.gz: 860661183685548f8ab20815b68e01621fdd6f9c9bed8d5ce3eb7dbcf5c05fed5bf61377e16aafc7fe1079d5246f6a8b8fba563f62af3e83c8fa02514619e50c
7
+ data.tar.gz: 7436c176b1bad1696022571cc1f1e2e22140cdc42774a6fef7f98d4f2afc0c491a642537d4d136b3921e792ec1c4480b9da006e5a79703967e1e676c67985ba6
@@ -152,13 +152,6 @@ module Google
152
152
  @quota_project_id = @config.quota_project
153
153
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
154
154
 
155
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
156
- config.credentials = credentials
157
- config.quota_project = @quota_project_id
158
- config.endpoint = @config.endpoint
159
- config.universe_domain = @config.universe_domain
160
- end
161
-
162
155
  @lookup_service_stub = ::Gapic::ServiceStub.new(
163
156
  ::Google::Cloud::ServiceDirectory::V1::LookupService::Stub,
164
157
  credentials: credentials,
@@ -169,6 +162,13 @@ module Google
169
162
  interceptors: @config.interceptors,
170
163
  channel_pool_config: @config.channel_pool
171
164
  )
165
+
166
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
167
+ config.credentials = credentials
168
+ config.quota_project = @quota_project_id
169
+ config.endpoint = @lookup_service_stub.endpoint
170
+ config.universe_domain = @lookup_service_stub.universe_domain
171
+ end
172
172
  end
173
173
 
174
174
  ##
@@ -149,20 +149,20 @@ module Google
149
149
  @quota_project_id = @config.quota_project
150
150
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
151
151
 
152
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
153
- config.credentials = credentials
154
- config.quota_project = @quota_project_id
155
- config.endpoint = @config.endpoint
156
- config.universe_domain = @config.universe_domain
157
- config.bindings_override = @config.bindings_override
158
- end
159
-
160
152
  @lookup_service_stub = ::Google::Cloud::ServiceDirectory::V1::LookupService::Rest::ServiceStub.new(
161
153
  endpoint: @config.endpoint,
162
154
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
163
155
  universe_domain: @config.universe_domain,
164
156
  credentials: credentials
165
157
  )
158
+
159
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
160
+ config.credentials = credentials
161
+ config.quota_project = @quota_project_id
162
+ config.endpoint = @lookup_service_stub.endpoint
163
+ config.universe_domain = @lookup_service_stub.universe_domain
164
+ config.bindings_override = @config.bindings_override
165
+ end
166
166
  end
167
167
 
168
168
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the resolve_service REST call
57
66
  #
@@ -166,13 +166,6 @@ module Google
166
166
  @quota_project_id = @config.quota_project
167
167
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
168
168
 
169
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
170
- config.credentials = credentials
171
- config.quota_project = @quota_project_id
172
- config.endpoint = @config.endpoint
173
- config.universe_domain = @config.universe_domain
174
- end
175
-
176
169
  @registration_service_stub = ::Gapic::ServiceStub.new(
177
170
  ::Google::Cloud::ServiceDirectory::V1::RegistrationService::Stub,
178
171
  credentials: credentials,
@@ -183,6 +176,13 @@ module Google
183
176
  interceptors: @config.interceptors,
184
177
  channel_pool_config: @config.channel_pool
185
178
  )
179
+
180
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
181
+ config.credentials = credentials
182
+ config.quota_project = @quota_project_id
183
+ config.endpoint = @registration_service_stub.endpoint
184
+ config.universe_domain = @registration_service_stub.universe_domain
185
+ end
186
186
  end
187
187
 
188
188
  ##
@@ -163,20 +163,20 @@ module Google
163
163
  @quota_project_id = @config.quota_project
164
164
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
165
165
 
166
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
167
- config.credentials = credentials
168
- config.quota_project = @quota_project_id
169
- config.endpoint = @config.endpoint
170
- config.universe_domain = @config.universe_domain
171
- config.bindings_override = @config.bindings_override
172
- end
173
-
174
166
  @registration_service_stub = ::Google::Cloud::ServiceDirectory::V1::RegistrationService::Rest::ServiceStub.new(
175
167
  endpoint: @config.endpoint,
176
168
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
177
169
  universe_domain: @config.universe_domain,
178
170
  credentials: credentials
179
171
  )
172
+
173
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
174
+ config.credentials = credentials
175
+ config.quota_project = @quota_project_id
176
+ config.endpoint = @registration_service_stub.endpoint
177
+ config.universe_domain = @registration_service_stub.universe_domain
178
+ config.bindings_override = @config.bindings_override
179
+ end
180
180
  end
181
181
 
182
182
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the create_namespace REST call
57
66
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceDirectory
23
23
  module V1
24
- VERSION = "0.10.0"
24
+ VERSION = "0.10.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-service_directory-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.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: 2024-01-11 00:00:00.000000000 Z
11
+ date: 2024-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common