google-cloud-storage_insights-v1 0.5.1 → 0.6.0
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/README.md +30 -20
- data/lib/google/cloud/storage_insights/v1/storage_insights/client.rb +30 -8
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/client.rb +28 -8
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/service_stub.rb +70 -44
- data/lib/google/cloud/storage_insights/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bf16fe552f717324df1aa8b402898ebc2fc319d7aaad151655ffa0ff305c5f1
|
4
|
+
data.tar.gz: 7a426ce3dec5d21dbe95b4b8295f3f7fa9c054bb26d6e6307f4e6f343d648d12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e81a758672f1c4174bfa1aefaee8edf766d98e8c8a868587880bcad087cedf8a26d4efc4c890db5431bdec6f8730efd12b798121b81a4c1d438cc2a9ee07dde
|
7
|
+
data.tar.gz: 14cb526aa7421fc8379d8f0c188e131d53060d6f885c16a403de68c78e308a08c74a3ae681ac1d78defa60b06503d220da4cd3f4ce41bfa6db4d49a8a2d35c75
|
data/README.md
CHANGED
@@ -42,33 +42,43 @@ for class and method documentation.
|
|
42
42
|
See also the [Product Documentation](https://cloud.google.com/storage/docs/insights/storage-insights)
|
43
43
|
for general usage information.
|
44
44
|
|
45
|
-
##
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
45
|
+
## Debug Logging
|
46
|
+
|
47
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
48
|
+
your application's integration with the API. When logging is activated, key
|
49
|
+
events such as requests and responses, along with data payloads and metadata
|
50
|
+
such as headers and client configuration, are logged to the standard error
|
51
|
+
stream.
|
52
|
+
|
53
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
54
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
55
|
+
customers, private keys, or other security data that could be compromising if
|
56
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
57
|
+
the principle of least access. Google also recommends that Client Library Debug
|
58
|
+
Logging be enabled only temporarily during active debugging, and not used
|
59
|
+
permanently in production.
|
60
|
+
|
61
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
62
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
63
|
+
list of client library gem names. This will select the default logging behavior,
|
64
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
65
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
66
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
67
|
+
results in logs appearing alongside your application logs in the
|
68
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
69
|
+
|
70
|
+
You can customize logging by modifying the `logger` configuration when
|
71
|
+
constructing a client object. For example:
|
54
72
|
|
55
73
|
```ruby
|
74
|
+
require "google/cloud/storage_insights/v1"
|
56
75
|
require "logger"
|
57
76
|
|
58
|
-
|
59
|
-
|
60
|
-
def logger
|
61
|
-
LOGGER
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
66
|
-
module GRPC
|
67
|
-
extend MyLogger
|
77
|
+
client = ::Google::Cloud::StorageInsights::V1::StorageInsights::Client.new do |config|
|
78
|
+
config.logger = Logger.new "my-app.log"
|
68
79
|
end
|
69
80
|
```
|
70
81
|
|
71
|
-
|
72
82
|
## Google Cloud Samples
|
73
83
|
|
74
84
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
@@ -180,14 +180,26 @@ module Google
|
|
180
180
|
universe_domain: @config.universe_domain,
|
181
181
|
channel_args: @config.channel_args,
|
182
182
|
interceptors: @config.interceptors,
|
183
|
-
channel_pool_config: @config.channel_pool
|
183
|
+
channel_pool_config: @config.channel_pool,
|
184
|
+
logger: @config.logger
|
184
185
|
)
|
185
186
|
|
187
|
+
@storage_insights_stub.stub_logger&.info do |entry|
|
188
|
+
entry.set_system_name
|
189
|
+
entry.set_service
|
190
|
+
entry.message = "Created client for #{entry.service}"
|
191
|
+
entry.set_credentials_fields credentials
|
192
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
193
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
194
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
195
|
+
end
|
196
|
+
|
186
197
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
187
198
|
config.credentials = credentials
|
188
199
|
config.quota_project = @quota_project_id
|
189
200
|
config.endpoint = @storage_insights_stub.endpoint
|
190
201
|
config.universe_domain = @storage_insights_stub.universe_domain
|
202
|
+
config.logger = @storage_insights_stub.logger if config.respond_to? :logger=
|
191
203
|
end
|
192
204
|
end
|
193
205
|
|
@@ -198,6 +210,15 @@ module Google
|
|
198
210
|
#
|
199
211
|
attr_reader :location_client
|
200
212
|
|
213
|
+
##
|
214
|
+
# The logger used for request/response debug logging.
|
215
|
+
#
|
216
|
+
# @return [Logger]
|
217
|
+
#
|
218
|
+
def logger
|
219
|
+
@storage_insights_stub.logger
|
220
|
+
end
|
221
|
+
|
201
222
|
# Service calls
|
202
223
|
|
203
224
|
##
|
@@ -294,7 +315,7 @@ module Google
|
|
294
315
|
@storage_insights_stub.call_rpc :list_report_configs, request, options: options do |response, operation|
|
295
316
|
response = ::Gapic::PagedEnumerable.new @storage_insights_stub, :list_report_configs, request, response, operation, options
|
296
317
|
yield response, operation if block_given?
|
297
|
-
|
318
|
+
throw :response, response
|
298
319
|
end
|
299
320
|
rescue ::GRPC::BadStatus => e
|
300
321
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -380,7 +401,6 @@ module Google
|
|
380
401
|
|
381
402
|
@storage_insights_stub.call_rpc :get_report_config, request, options: options do |response, operation|
|
382
403
|
yield response, operation if block_given?
|
383
|
-
return response
|
384
404
|
end
|
385
405
|
rescue ::GRPC::BadStatus => e
|
386
406
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -482,7 +502,6 @@ module Google
|
|
482
502
|
|
483
503
|
@storage_insights_stub.call_rpc :create_report_config, request, options: options do |response, operation|
|
484
504
|
yield response, operation if block_given?
|
485
|
-
return response
|
486
505
|
end
|
487
506
|
rescue ::GRPC::BadStatus => e
|
488
507
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -588,7 +607,6 @@ module Google
|
|
588
607
|
|
589
608
|
@storage_insights_stub.call_rpc :update_report_config, request, options: options do |response, operation|
|
590
609
|
yield response, operation if block_given?
|
591
|
-
return response
|
592
610
|
end
|
593
611
|
rescue ::GRPC::BadStatus => e
|
594
612
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -690,7 +708,6 @@ module Google
|
|
690
708
|
|
691
709
|
@storage_insights_stub.call_rpc :delete_report_config, request, options: options do |response, operation|
|
692
710
|
yield response, operation if block_given?
|
693
|
-
return response
|
694
711
|
end
|
695
712
|
rescue ::GRPC::BadStatus => e
|
696
713
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -790,7 +807,7 @@ module Google
|
|
790
807
|
@storage_insights_stub.call_rpc :list_report_details, request, options: options do |response, operation|
|
791
808
|
response = ::Gapic::PagedEnumerable.new @storage_insights_stub, :list_report_details, request, response, operation, options
|
792
809
|
yield response, operation if block_given?
|
793
|
-
|
810
|
+
throw :response, response
|
794
811
|
end
|
795
812
|
rescue ::GRPC::BadStatus => e
|
796
813
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -876,7 +893,6 @@ module Google
|
|
876
893
|
|
877
894
|
@storage_insights_stub.call_rpc :get_report_detail, request, options: options do |response, operation|
|
878
895
|
yield response, operation if block_given?
|
879
|
-
return response
|
880
896
|
end
|
881
897
|
rescue ::GRPC::BadStatus => e
|
882
898
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -965,6 +981,11 @@ module Google
|
|
965
981
|
# default endpoint URL. The default value of nil uses the environment
|
966
982
|
# universe (usually the default "googleapis.com" universe).
|
967
983
|
# @return [::String,nil]
|
984
|
+
# @!attribute [rw] logger
|
985
|
+
# A custom logger to use for request/response debug logging, or the value
|
986
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
987
|
+
# explicitly disable logging.
|
988
|
+
# @return [::Logger,:default,nil]
|
968
989
|
#
|
969
990
|
class Configuration
|
970
991
|
extend ::Gapic::Config
|
@@ -989,6 +1010,7 @@ module Google
|
|
989
1010
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
990
1011
|
config_attr :quota_project, nil, ::String, nil
|
991
1012
|
config_attr :universe_domain, nil, ::String, nil
|
1013
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
992
1014
|
|
993
1015
|
# @private
|
994
1016
|
def initialize parent_config = nil
|
@@ -173,15 +173,27 @@ module Google
|
|
173
173
|
endpoint: @config.endpoint,
|
174
174
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
175
175
|
universe_domain: @config.universe_domain,
|
176
|
-
credentials: credentials
|
176
|
+
credentials: credentials,
|
177
|
+
logger: @config.logger
|
177
178
|
)
|
178
179
|
|
180
|
+
@storage_insights_stub.logger(stub: true)&.info do |entry|
|
181
|
+
entry.set_system_name
|
182
|
+
entry.set_service
|
183
|
+
entry.message = "Created client for #{entry.service}"
|
184
|
+
entry.set_credentials_fields credentials
|
185
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
186
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
187
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
188
|
+
end
|
189
|
+
|
179
190
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
180
191
|
config.credentials = credentials
|
181
192
|
config.quota_project = @quota_project_id
|
182
193
|
config.endpoint = @storage_insights_stub.endpoint
|
183
194
|
config.universe_domain = @storage_insights_stub.universe_domain
|
184
195
|
config.bindings_override = @config.bindings_override
|
196
|
+
config.logger = @storage_insights_stub.logger if config.respond_to? :logger=
|
185
197
|
end
|
186
198
|
end
|
187
199
|
|
@@ -192,6 +204,15 @@ module Google
|
|
192
204
|
#
|
193
205
|
attr_reader :location_client
|
194
206
|
|
207
|
+
##
|
208
|
+
# The logger used for request/response debug logging.
|
209
|
+
#
|
210
|
+
# @return [Logger]
|
211
|
+
#
|
212
|
+
def logger
|
213
|
+
@storage_insights_stub.logger
|
214
|
+
end
|
215
|
+
|
195
216
|
# Service calls
|
196
217
|
|
197
218
|
##
|
@@ -280,7 +301,6 @@ module Google
|
|
280
301
|
|
281
302
|
@storage_insights_stub.list_report_configs request, options do |result, operation|
|
282
303
|
yield result, operation if block_given?
|
283
|
-
return result
|
284
304
|
end
|
285
305
|
rescue ::Gapic::Rest::Error => e
|
286
306
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -359,7 +379,6 @@ module Google
|
|
359
379
|
|
360
380
|
@storage_insights_stub.get_report_config request, options do |result, operation|
|
361
381
|
yield result, operation if block_given?
|
362
|
-
return result
|
363
382
|
end
|
364
383
|
rescue ::Gapic::Rest::Error => e
|
365
384
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -454,7 +473,6 @@ module Google
|
|
454
473
|
|
455
474
|
@storage_insights_stub.create_report_config request, options do |result, operation|
|
456
475
|
yield result, operation if block_given?
|
457
|
-
return result
|
458
476
|
end
|
459
477
|
rescue ::Gapic::Rest::Error => e
|
460
478
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -553,7 +571,6 @@ module Google
|
|
553
571
|
|
554
572
|
@storage_insights_stub.update_report_config request, options do |result, operation|
|
555
573
|
yield result, operation if block_given?
|
556
|
-
return result
|
557
574
|
end
|
558
575
|
rescue ::Gapic::Rest::Error => e
|
559
576
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -648,7 +665,6 @@ module Google
|
|
648
665
|
|
649
666
|
@storage_insights_stub.delete_report_config request, options do |result, operation|
|
650
667
|
yield result, operation if block_given?
|
651
|
-
return result
|
652
668
|
end
|
653
669
|
rescue ::Gapic::Rest::Error => e
|
654
670
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -740,7 +756,6 @@ module Google
|
|
740
756
|
|
741
757
|
@storage_insights_stub.list_report_details request, options do |result, operation|
|
742
758
|
yield result, operation if block_given?
|
743
|
-
return result
|
744
759
|
end
|
745
760
|
rescue ::Gapic::Rest::Error => e
|
746
761
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -819,7 +834,6 @@ module Google
|
|
819
834
|
|
820
835
|
@storage_insights_stub.get_report_detail request, options do |result, operation|
|
821
836
|
yield result, operation if block_given?
|
822
|
-
return result
|
823
837
|
end
|
824
838
|
rescue ::Gapic::Rest::Error => e
|
825
839
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -899,6 +913,11 @@ module Google
|
|
899
913
|
# default endpoint URL. The default value of nil uses the environment
|
900
914
|
# universe (usually the default "googleapis.com" universe).
|
901
915
|
# @return [::String,nil]
|
916
|
+
# @!attribute [rw] logger
|
917
|
+
# A custom logger to use for request/response debug logging, or the value
|
918
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
919
|
+
# explicitly disable logging.
|
920
|
+
# @return [::Logger,:default,nil]
|
902
921
|
#
|
903
922
|
class Configuration
|
904
923
|
extend ::Gapic::Config
|
@@ -927,6 +946,7 @@ module Google
|
|
927
946
|
# by the host service.
|
928
947
|
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
929
948
|
config_attr :bindings_override, {}, ::Hash, nil
|
949
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
930
950
|
|
931
951
|
# @private
|
932
952
|
def initialize parent_config = nil
|
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the list_report_configs REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "list_report_configs",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::StorageInsights::V1::ListReportConfigsResponse.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "get_report_config",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::StorageInsights::V1::ReportConfig.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -163,16 +179,18 @@ module Google
|
|
163
179
|
|
164
180
|
response = @client_stub.make_http_request(
|
165
181
|
verb,
|
166
|
-
uri:
|
167
|
-
body:
|
168
|
-
params:
|
182
|
+
uri: uri,
|
183
|
+
body: body || "",
|
184
|
+
params: query_string_params,
|
185
|
+
method_name: "create_report_config",
|
169
186
|
options: options
|
170
187
|
)
|
171
188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
172
189
|
result = ::Google::Cloud::StorageInsights::V1::ReportConfig.decode_json response.body, ignore_unknown_fields: true
|
173
|
-
|
174
|
-
|
175
|
-
|
190
|
+
catch :response do
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
176
194
|
end
|
177
195
|
|
178
196
|
##
|
@@ -201,16 +219,18 @@ module Google
|
|
201
219
|
|
202
220
|
response = @client_stub.make_http_request(
|
203
221
|
verb,
|
204
|
-
uri:
|
205
|
-
body:
|
206
|
-
params:
|
222
|
+
uri: uri,
|
223
|
+
body: body || "",
|
224
|
+
params: query_string_params,
|
225
|
+
method_name: "update_report_config",
|
207
226
|
options: options
|
208
227
|
)
|
209
228
|
operation = ::Gapic::Rest::TransportOperation.new response
|
210
229
|
result = ::Google::Cloud::StorageInsights::V1::ReportConfig.decode_json response.body, ignore_unknown_fields: true
|
211
|
-
|
212
|
-
|
213
|
-
|
230
|
+
catch :response do
|
231
|
+
yield result, operation if block_given?
|
232
|
+
result
|
233
|
+
end
|
214
234
|
end
|
215
235
|
|
216
236
|
##
|
@@ -239,16 +259,18 @@ module Google
|
|
239
259
|
|
240
260
|
response = @client_stub.make_http_request(
|
241
261
|
verb,
|
242
|
-
uri:
|
243
|
-
body:
|
244
|
-
params:
|
262
|
+
uri: uri,
|
263
|
+
body: body || "",
|
264
|
+
params: query_string_params,
|
265
|
+
method_name: "delete_report_config",
|
245
266
|
options: options
|
246
267
|
)
|
247
268
|
operation = ::Gapic::Rest::TransportOperation.new response
|
248
269
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
249
|
-
|
250
|
-
|
251
|
-
|
270
|
+
catch :response do
|
271
|
+
yield result, operation if block_given?
|
272
|
+
result
|
273
|
+
end
|
252
274
|
end
|
253
275
|
|
254
276
|
##
|
@@ -277,16 +299,18 @@ module Google
|
|
277
299
|
|
278
300
|
response = @client_stub.make_http_request(
|
279
301
|
verb,
|
280
|
-
uri:
|
281
|
-
body:
|
282
|
-
params:
|
302
|
+
uri: uri,
|
303
|
+
body: body || "",
|
304
|
+
params: query_string_params,
|
305
|
+
method_name: "list_report_details",
|
283
306
|
options: options
|
284
307
|
)
|
285
308
|
operation = ::Gapic::Rest::TransportOperation.new response
|
286
309
|
result = ::Google::Cloud::StorageInsights::V1::ListReportDetailsResponse.decode_json response.body, ignore_unknown_fields: true
|
287
|
-
|
288
|
-
|
289
|
-
|
310
|
+
catch :response do
|
311
|
+
yield result, operation if block_given?
|
312
|
+
result
|
313
|
+
end
|
290
314
|
end
|
291
315
|
|
292
316
|
##
|
@@ -315,16 +339,18 @@ module Google
|
|
315
339
|
|
316
340
|
response = @client_stub.make_http_request(
|
317
341
|
verb,
|
318
|
-
uri:
|
319
|
-
body:
|
320
|
-
params:
|
342
|
+
uri: uri,
|
343
|
+
body: body || "",
|
344
|
+
params: query_string_params,
|
345
|
+
method_name: "get_report_detail",
|
321
346
|
options: options
|
322
347
|
)
|
323
348
|
operation = ::Gapic::Rest::TransportOperation.new response
|
324
349
|
result = ::Google::Cloud::StorageInsights::V1::ReportDetail.decode_json response.body, ignore_unknown_fields: true
|
325
|
-
|
326
|
-
|
327
|
-
|
350
|
+
catch :response do
|
351
|
+
yield result, operation if block_given?
|
352
|
+
result
|
353
|
+
end
|
328
354
|
end
|
329
355
|
|
330
356
|
##
|
@@ -28,6 +28,9 @@ module Google
|
|
28
28
|
# @!attribute [rw] destinations
|
29
29
|
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
30
30
|
# The destination where API teams want this client library to be published.
|
31
|
+
# @!attribute [rw] selective_gapic_generation
|
32
|
+
# @return [::Google::Api::SelectiveGapicGeneration]
|
33
|
+
# Configuration for which RPCs should be generated in the GAPIC client.
|
31
34
|
class CommonLanguageSettings
|
32
35
|
include ::Google::Protobuf::MessageExts
|
33
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -212,6 +215,12 @@ module Google
|
|
212
215
|
# enabled. By default, asynchronous REST clients will not be generated.
|
213
216
|
# This feature will be enabled by default 1 month after launching the
|
214
217
|
# feature in preview packages.
|
218
|
+
# @!attribute [rw] protobuf_pythonic_types_enabled
|
219
|
+
# @return [::Boolean]
|
220
|
+
# Enables generation of protobuf code using new types that are more
|
221
|
+
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
|
+
# enabled by default 1 month after launching the feature in preview
|
223
|
+
# packages.
|
215
224
|
class ExperimentalFeatures
|
216
225
|
include ::Google::Protobuf::MessageExts
|
217
226
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -297,9 +306,28 @@ module Google
|
|
297
306
|
# @!attribute [rw] common
|
298
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
299
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
300
319
|
class GoSettings
|
301
320
|
include ::Google::Protobuf::MessageExts
|
302
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
303
331
|
end
|
304
332
|
|
305
333
|
# Describes the generator configuration for a method.
|
@@ -375,6 +403,17 @@ module Google
|
|
375
403
|
end
|
376
404
|
end
|
377
405
|
|
406
|
+
# This message is used to configure the generation of a subset of the RPCs in
|
407
|
+
# a service for client libraries.
|
408
|
+
# @!attribute [rw] methods
|
409
|
+
# @return [::Array<::String>]
|
410
|
+
# An allowlist of the fully qualified names of RPCs that should be included
|
411
|
+
# on public client surfaces.
|
412
|
+
class SelectiveGapicGeneration
|
413
|
+
include ::Google::Protobuf::MessageExts
|
414
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
415
|
+
end
|
416
|
+
|
378
417
|
# The organization for which the client libraries are being published.
|
379
418
|
# Affects the url where generated docs are published, etc.
|
380
419
|
module ClientLibraryOrganization
|
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
|
+
version: 0.6.0
|
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-
|
11
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.24.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.24.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
|
-
rubygems_version: 3.5.
|
127
|
+
rubygems_version: 3.5.23
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Provides insights capability on Google Cloud Storage.
|