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 +4 -4
- data/lib/google/cloud/storage_insights/v1/storage_insights/client.rb +7 -7
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/client.rb +8 -8
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/service_stub.rb +9 -0
- data/lib/google/cloud/storage_insights/v1/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 441dbbe5031c6040f79b671756e103c8a8e66cb13e843d4427414417bb7cb575
|
|
4
|
+
data.tar.gz: 936a2aa95dae16439a8d95eb113124b0425d4e12c945024a67c25601aa05c64d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
#
|
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.
|
|
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
|
+
date: 2024-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|