google-cloud-storage_insights-v1 0.5.1 → 0.7.0

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: 6f7a5d1d6a5c3c188b1e4e998fc12494595869283658320c3399c9cdf40d6c14
4
- data.tar.gz: fce79b8431beb01926c794ad4fdd5228a671e5e7baea64c6f0f265242d34770a
3
+ metadata.gz: 294d1f996098f348f5da7ca48ef302b041a992388aa79467abddcf3971cf3b68
4
+ data.tar.gz: 057a39456e0bcdd95b3e6879d650f78ad3626d735802274b5df861fbee3edb5c
5
5
  SHA512:
6
- metadata.gz: 63e895f29a549690705be64855813b1313ac843b7a04b7dd27aaceed65da22519080f3ba57be1528ce530a69cd22cf94adc129822a163fac261936917d75939f
7
- data.tar.gz: 4b5457fde15cabcf83c46cd67744c8f207915b8d89d7418f2c6777219cff177cc0a9ebc6da33f2655d67254b80fdb53055dcfd1d79ec8b932a9cf106db10e8a0
6
+ metadata.gz: 4d563d5a48b88aa679cfc94b9eeb4418d71caffc3a595cbcc3102356220673cd07ac809a7e9f57a8ad8bd2f06d6b132b82eb199919f35f1998899760fb2f0bd1
7
+ data.tar.gz: d51343394915a624d8d65f4af781c7aa0f9882c3b773a7560020524911db52938e1f3b52d703ebcae6cb94c1d68d11b4624e800633c420d7d9988c6c87126b25
data/README.md CHANGED
@@ -42,40 +42,50 @@ 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
- ## Enabling Logging
46
-
47
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
48
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
49
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
50
- that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
51
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
52
-
53
- Configuring a Ruby stdlib logger:
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
- module MyLogger
59
- LOGGER = Logger.new $stderr, level: Logger::WARN
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).
75
85
 
76
86
  ## Supported Ruby Versions
77
87
 
78
- This library is supported on Ruby 2.7+.
88
+ This library is supported on Ruby 3.0+.
79
89
 
80
90
  Google provides official support for Ruby versions that are actively supported
81
91
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -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
- return response
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
- return response
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)
@@ -926,6 +942,13 @@ module Google
926
942
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
927
943
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
928
944
  # * (`nil`) indicating no credentials
945
+ #
946
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
947
+ # external source for authentication to Google Cloud, you must validate it before
948
+ # providing it to a Google API client library. Providing an unvalidated credential
949
+ # configuration to Google APIs can compromise the security of your systems and data.
950
+ # For more information, refer to [Validate credential configurations from external
951
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
929
952
  # @return [::Object]
930
953
  # @!attribute [rw] scope
931
954
  # The OAuth scopes
@@ -965,6 +988,11 @@ module Google
965
988
  # default endpoint URL. The default value of nil uses the environment
966
989
  # universe (usually the default "googleapis.com" universe).
967
990
  # @return [::String,nil]
991
+ # @!attribute [rw] logger
992
+ # A custom logger to use for request/response debug logging, or the value
993
+ # `:default` (the default) to construct a default logger, or `nil` to
994
+ # explicitly disable logging.
995
+ # @return [::Logger,:default,nil]
968
996
  #
969
997
  class Configuration
970
998
  extend ::Gapic::Config
@@ -989,6 +1017,7 @@ module Google
989
1017
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
990
1018
  config_attr :quota_project, nil, ::String, nil
991
1019
  config_attr :universe_domain, nil, ::String, nil
1020
+ config_attr :logger, :default, ::Logger, nil, :default
992
1021
 
993
1022
  # @private
994
1023
  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)
@@ -867,6 +881,13 @@ module Google
867
881
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
868
882
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
869
883
  # * (`nil`) indicating no credentials
884
+ #
885
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
886
+ # external source for authentication to Google Cloud, you must validate it before
887
+ # providing it to a Google API client library. Providing an unvalidated credential
888
+ # configuration to Google APIs can compromise the security of your systems and data.
889
+ # For more information, refer to [Validate credential configurations from external
890
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
870
891
  # @return [::Object]
871
892
  # @!attribute [rw] scope
872
893
  # The OAuth scopes
@@ -899,6 +920,11 @@ module Google
899
920
  # default endpoint URL. The default value of nil uses the environment
900
921
  # universe (usually the default "googleapis.com" universe).
901
922
  # @return [::String,nil]
923
+ # @!attribute [rw] logger
924
+ # A custom logger to use for request/response debug logging, or the value
925
+ # `:default` (the default) to construct a default logger, or `nil` to
926
+ # explicitly disable logging.
927
+ # @return [::Logger,:default,nil]
902
928
  #
903
929
  class Configuration
904
930
  extend ::Gapic::Config
@@ -927,6 +953,7 @@ module Google
927
953
  # by the host service.
928
954
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
929
955
  config_attr :bindings_override, {}, ::Hash, nil
956
+ config_attr :logger, :default, ::Logger, nil, :default
930
957
 
931
958
  # @private
932
959
  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
- def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
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
- raise_faraday_errors: false
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: uri,
91
- body: body || "",
92
- params: query_string_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
- yield result, operation if block_given?
99
- result
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: uri,
129
- body: body || "",
130
- params: query_string_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
- yield result, operation if block_given?
137
- result
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: uri,
167
- body: body || "",
168
- params: query_string_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
- yield result, operation if block_given?
175
- result
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: uri,
205
- body: body || "",
206
- params: query_string_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
- yield result, operation if block_given?
213
- result
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: uri,
243
- body: body || "",
244
- params: query_string_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
- yield result, operation if block_given?
251
- result
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: uri,
281
- body: body || "",
282
- params: query_string_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
- yield result, operation if block_given?
289
- result
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: uri,
319
- body: body || "",
320
- params: query_string_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
- yield result, operation if block_given?
327
- result
350
+ catch :response do
351
+ yield result, operation if block_given?
352
+ result
353
+ end
328
354
  end
329
355
 
330
356
  ##
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module StorageInsights
23
23
  module V1
24
- VERSION = "0.5.1"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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
@@ -402,9 +402,13 @@ module Google
402
402
  # @!attribute [rw] csv_options
403
403
  # @return [::Google::Cloud::StorageInsights::V1::CSVOptions]
404
404
  # Options for CSV formatted reports.
405
+ #
406
+ # Note: The following fields are mutually exclusive: `csv_options`, `parquet_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.
405
407
  # @!attribute [rw] parquet_options
406
408
  # @return [::Google::Cloud::StorageInsights::V1::ParquetOptions]
407
409
  # Options for Parquet formatted reports.
410
+ #
411
+ # Note: The following fields are mutually exclusive: `parquet_options`, `csv_options`. If a field in that set is populated, all other fields in the set will automatically be cleared.
408
412
  # @!attribute [rw] object_metadata_report_options
409
413
  # @return [::Google::Cloud::StorageInsights::V1::ObjectMetadataReportOptions]
410
414
  # Report for exporting object metadata.
@@ -75,9 +75,13 @@ module Google
75
75
  # UTC offset. Must be whole seconds, between -18 hours and +18 hours.
76
76
  # For example, a UTC offset of -4:00 would be represented as
77
77
  # { seconds: -14400 }.
78
+ #
79
+ # Note: The following fields are mutually exclusive: `utc_offset`, `time_zone`. If a field in that set is populated, all other fields in the set will automatically be cleared.
78
80
  # @!attribute [rw] time_zone
79
81
  # @return [::Google::Type::TimeZone]
80
82
  # Time zone.
83
+ #
84
+ # Note: The following fields are mutually exclusive: `time_zone`, `utc_offset`. If a field in that set is populated, all other fields in the set will automatically be cleared.
81
85
  class DateTime
82
86
  include ::Google::Protobuf::MessageExts
83
87
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-storage_insights-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-08-30 00:00:00.000000000 Z
10
+ date: 2025-01-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.21.1
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.21.1
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -109,7 +108,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
109
108
  licenses:
110
109
  - Apache-2.0
111
110
  metadata: {}
112
- post_install_message:
113
111
  rdoc_options: []
114
112
  require_paths:
115
113
  - lib
@@ -117,15 +115,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
115
  requirements:
118
116
  - - ">="
119
117
  - !ruby/object:Gem::Version
120
- version: '2.7'
118
+ version: '3.0'
121
119
  required_rubygems_version: !ruby/object:Gem::Requirement
122
120
  requirements:
123
121
  - - ">="
124
122
  - !ruby/object:Gem::Version
125
123
  version: '0'
126
124
  requirements: []
127
- rubygems_version: 3.5.6
128
- signing_key:
125
+ rubygems_version: 3.6.2
129
126
  specification_version: 4
130
127
  summary: Provides insights capability on Google Cloud Storage.
131
128
  test_files: []