google-cloud-storage_insights-v1 0.4.0 → 0.4.1

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: 20affb123b1d71953eaa0e24723068d611644770d38c7bd7938318bd02459708
4
- data.tar.gz: 3dca0eae86d90f4ac7a7eed44be2e5cfaa2d2c175247474c3cf6c43507c05403
3
+ metadata.gz: 441dbbe5031c6040f79b671756e103c8a8e66cb13e843d4427414417bb7cb575
4
+ data.tar.gz: 936a2aa95dae16439a8d95eb113124b0425d4e12c945024a67c25601aa05c64d
5
5
  SHA512:
6
- metadata.gz: 3072fa9c53a0c46b637a23bb8dcd2abcc3c56f0d23bb5ab3989ac3fd924244f9e78ce2bc021f2ad5d18181d1e96621099ffa1b138842b2c815e26ab9b0f39d4d
7
- data.tar.gz: 6e09ef2f3b6c3522850b1b30fd0f04716ec35d3633b519a2e0f13b17b242373516bc7ac7ef894736baa4ff354cbb990456971724e1c66376c000aacdfe3b30b6
6
+ metadata.gz: 7bfa9eda1a4d6e0b3acbf1a0febb203ce576b2853810e00f60486229b0d154fa6baab7b255c9ecd8a41510d6438ebccce95056034684b709050d9b96446bbf17
7
+ data.tar.gz: 6a6ebeaecd73639a4609567d2810ffda294cb66211662709fb319256a6ec741c9321b4476918a6a8cebb7cb3e4ac882ca6ad943fcf21fc883f500eaa3c54803e
@@ -169,13 +169,6 @@ module Google
169
169
  @quota_project_id = @config.quota_project
170
170
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
171
171
 
172
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
173
- config.credentials = credentials
174
- config.quota_project = @quota_project_id
175
- config.endpoint = @config.endpoint
176
- config.universe_domain = @config.universe_domain
177
- end
178
-
179
172
  @storage_insights_stub = ::Gapic::ServiceStub.new(
180
173
  ::Google::Cloud::StorageInsights::V1::StorageInsights::Stub,
181
174
  credentials: credentials,
@@ -186,6 +179,13 @@ module Google
186
179
  interceptors: @config.interceptors,
187
180
  channel_pool_config: @config.channel_pool
188
181
  )
182
+
183
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
184
+ config.credentials = credentials
185
+ config.quota_project = @quota_project_id
186
+ config.endpoint = @storage_insights_stub.endpoint
187
+ config.universe_domain = @storage_insights_stub.universe_domain
188
+ end
189
189
  end
190
190
 
191
191
  ##
@@ -166,20 +166,20 @@ 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::Rest::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
- config.bindings_override = @config.bindings_override
175
- end
176
-
177
169
  @storage_insights_stub = ::Google::Cloud::StorageInsights::V1::StorageInsights::Rest::ServiceStub.new(
178
170
  endpoint: @config.endpoint,
179
171
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
180
172
  universe_domain: @config.universe_domain,
181
173
  credentials: credentials
182
174
  )
175
+
176
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
177
+ config.credentials = credentials
178
+ config.quota_project = @quota_project_id
179
+ config.endpoint = @storage_insights_stub.endpoint
180
+ config.universe_domain = @storage_insights_stub.universe_domain
181
+ config.bindings_override = @config.bindings_override
182
+ end
183
183
  end
184
184
 
185
185
  ##
@@ -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 list_report_configs REST call
57
66
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module StorageInsights
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.4.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-storage_insights-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.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