google-cloud-chronicle-v1 0.4.0 → 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.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +6 -6
  4. data/lib/google/cloud/chronicle/v1/big_query_export_pb.rb +34 -0
  5. data/lib/google/cloud/chronicle/v1/big_query_export_service/client.rb +682 -0
  6. data/lib/google/cloud/chronicle/v1/big_query_export_service/credentials.rb +49 -0
  7. data/lib/google/cloud/chronicle/v1/big_query_export_service/paths.rb +71 -0
  8. data/lib/google/cloud/chronicle/v1/big_query_export_service/rest/client.rb +618 -0
  9. data/lib/google/cloud/chronicle/v1/big_query_export_service/rest/service_stub.rb +266 -0
  10. data/lib/google/cloud/chronicle/v1/big_query_export_service/rest.rb +52 -0
  11. data/lib/google/cloud/chronicle/v1/big_query_export_service.rb +55 -0
  12. data/lib/google/cloud/chronicle/v1/big_query_export_services_pb.rb +51 -0
  13. data/lib/google/cloud/chronicle/v1/dashboard_chart_pb.rb +83 -0
  14. data/lib/google/cloud/chronicle/v1/dashboard_chart_service/client.rb +584 -0
  15. data/lib/google/cloud/chronicle/v1/dashboard_chart_service/credentials.rb +49 -0
  16. data/lib/google/cloud/chronicle/v1/dashboard_chart_service/paths.rb +73 -0
  17. data/lib/google/cloud/chronicle/v1/dashboard_chart_service/rest/client.rb +527 -0
  18. data/lib/google/cloud/chronicle/v1/dashboard_chart_service/rest/service_stub.rb +203 -0
  19. data/lib/google/cloud/chronicle/v1/dashboard_chart_service/rest.rb +52 -0
  20. data/lib/google/cloud/chronicle/v1/dashboard_chart_service.rb +55 -0
  21. data/lib/google/cloud/chronicle/v1/dashboard_chart_services_pb.rb +47 -0
  22. data/lib/google/cloud/chronicle/v1/dashboard_query_pb.rb +58 -0
  23. data/lib/google/cloud/chronicle/v1/dashboard_query_service/client.rb +589 -0
  24. data/lib/google/cloud/chronicle/v1/dashboard_query_service/credentials.rb +49 -0
  25. data/lib/google/cloud/chronicle/v1/dashboard_query_service/paths.rb +94 -0
  26. data/lib/google/cloud/chronicle/v1/dashboard_query_service/rest/client.rb +532 -0
  27. data/lib/google/cloud/chronicle/v1/dashboard_query_service/rest/service_stub.rb +204 -0
  28. data/lib/google/cloud/chronicle/v1/dashboard_query_service/rest.rb +52 -0
  29. data/lib/google/cloud/chronicle/v1/dashboard_query_service.rb +55 -0
  30. data/lib/google/cloud/chronicle/v1/dashboard_query_services_pb.rb +47 -0
  31. data/lib/google/cloud/chronicle/v1/data_table_pb.rb +57 -0
  32. data/lib/google/cloud/chronicle/v1/data_table_service/client.rb +1915 -0
  33. data/lib/google/cloud/chronicle/v1/data_table_service/credentials.rb +49 -0
  34. data/lib/google/cloud/chronicle/v1/data_table_service/paths.rb +138 -0
  35. data/lib/google/cloud/chronicle/v1/data_table_service/rest/client.rb +1767 -0
  36. data/lib/google/cloud/chronicle/v1/data_table_service/rest/service_stub.rb +1004 -0
  37. data/lib/google/cloud/chronicle/v1/data_table_service/rest.rb +52 -0
  38. data/lib/google/cloud/chronicle/v1/data_table_service.rb +55 -0
  39. data/lib/google/cloud/chronicle/v1/data_table_services_pb.rb +73 -0
  40. data/lib/google/cloud/chronicle/v1/featured_content_metadata_pb.rb +25 -0
  41. data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_pb.rb +33 -0
  42. data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/client.rb +717 -0
  43. data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/credentials.rb +49 -0
  44. data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/paths.rb +136 -0
  45. data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest/client.rb +653 -0
  46. data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest/service_stub.rb +265 -0
  47. data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service/rest.rb +53 -0
  48. data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_service.rb +56 -0
  49. data/lib/google/cloud/chronicle/v1/featured_content_native_dashboard_services_pb.rb +50 -0
  50. data/lib/google/cloud/chronicle/v1/native_dashboard_pb.rb +61 -0
  51. data/lib/google/cloud/chronicle/v1/native_dashboard_service/client.rb +1611 -0
  52. data/lib/google/cloud/chronicle/v1/native_dashboard_service/credentials.rb +49 -0
  53. data/lib/google/cloud/chronicle/v1/native_dashboard_service/paths.rb +115 -0
  54. data/lib/google/cloud/chronicle/v1/native_dashboard_service/rest/client.rb +1484 -0
  55. data/lib/google/cloud/chronicle/v1/native_dashboard_service/rest/service_stub.rb +822 -0
  56. data/lib/google/cloud/chronicle/v1/native_dashboard_service/rest.rb +52 -0
  57. data/lib/google/cloud/chronicle/v1/native_dashboard_service.rb +55 -0
  58. data/lib/google/cloud/chronicle/v1/native_dashboard_services_pb.rb +67 -0
  59. data/lib/google/cloud/chronicle/v1/rest.rb +7 -1
  60. data/lib/google/cloud/chronicle/v1/version.rb +1 -1
  61. data/lib/google/cloud/chronicle/v1.rb +8 -2
  62. data/proto_docs/google/api/client.rb +149 -29
  63. data/proto_docs/google/cloud/chronicle/v1/big_query_export.rb +142 -0
  64. data/proto_docs/google/cloud/chronicle/v1/dashboard_chart.rb +923 -0
  65. data/proto_docs/google/cloud/chronicle/v1/dashboard_query.rb +653 -0
  66. data/proto_docs/google/cloud/chronicle/v1/data_table.rb +512 -0
  67. data/proto_docs/google/cloud/chronicle/v1/featured_content_metadata.rb +82 -0
  68. data/proto_docs/google/cloud/chronicle/v1/featured_content_native_dashboard.rb +141 -0
  69. data/proto_docs/google/cloud/chronicle/v1/native_dashboard.rb +502 -0
  70. data/proto_docs/google/type/date.rb +56 -0
  71. metadata +71 -9
@@ -0,0 +1,584 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/chronicle/v1/dashboard_chart_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Chronicle
25
+ module V1
26
+ module DashboardChartService
27
+ ##
28
+ # Client for the DashboardChartService service.
29
+ #
30
+ # A service providing functionality for managing dashboards' charts.
31
+ #
32
+ class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
36
+ # @private
37
+ DEFAULT_ENDPOINT_TEMPLATE = "chronicle.$UNIVERSE_DOMAIN$"
38
+
39
+ include Paths
40
+
41
+ # @private
42
+ attr_reader :dashboard_chart_service_stub
43
+
44
+ ##
45
+ # Configure the DashboardChartService Client class.
46
+ #
47
+ # See {::Google::Cloud::Chronicle::V1::DashboardChartService::Client::Configuration}
48
+ # for a description of the configuration fields.
49
+ #
50
+ # @example
51
+ #
52
+ # # Modify the configuration for all DashboardChartService clients
53
+ # ::Google::Cloud::Chronicle::V1::DashboardChartService::Client.configure do |config|
54
+ # config.timeout = 10.0
55
+ # end
56
+ #
57
+ # @yield [config] Configure the Client client.
58
+ # @yieldparam config [Client::Configuration]
59
+ #
60
+ # @return [Client::Configuration]
61
+ #
62
+ def self.configure
63
+ @configure ||= begin
64
+ namespace = ["Google", "Cloud", "Chronicle", "V1"]
65
+ parent_config = while namespace.any?
66
+ parent_name = namespace.join "::"
67
+ parent_const = const_get parent_name
68
+ break parent_const.configure if parent_const.respond_to? :configure
69
+ namespace.pop
70
+ end
71
+ default_config = Client::Configuration.new parent_config
72
+
73
+ default_config.rpcs.get_dashboard_chart.timeout = 60.0
74
+ default_config.rpcs.get_dashboard_chart.retry_policy = {
75
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
76
+ }
77
+
78
+ default_config.rpcs.batch_get_dashboard_charts.timeout = 60.0
79
+ default_config.rpcs.batch_get_dashboard_charts.retry_policy = {
80
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
81
+ }
82
+
83
+ default_config
84
+ end
85
+ yield @configure if block_given?
86
+ @configure
87
+ end
88
+
89
+ ##
90
+ # Configure the DashboardChartService Client instance.
91
+ #
92
+ # The configuration is set to the derived mode, meaning that values can be changed,
93
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
94
+ # should be made on {Client.configure}.
95
+ #
96
+ # See {::Google::Cloud::Chronicle::V1::DashboardChartService::Client::Configuration}
97
+ # for a description of the configuration fields.
98
+ #
99
+ # @yield [config] Configure the Client client.
100
+ # @yieldparam config [Client::Configuration]
101
+ #
102
+ # @return [Client::Configuration]
103
+ #
104
+ def configure
105
+ yield @config if block_given?
106
+ @config
107
+ end
108
+
109
+ ##
110
+ # The effective universe domain
111
+ #
112
+ # @return [String]
113
+ #
114
+ def universe_domain
115
+ @dashboard_chart_service_stub.universe_domain
116
+ end
117
+
118
+ ##
119
+ # Create a new DashboardChartService client object.
120
+ #
121
+ # @example
122
+ #
123
+ # # Create a client using the default configuration
124
+ # client = ::Google::Cloud::Chronicle::V1::DashboardChartService::Client.new
125
+ #
126
+ # # Create a client using a custom configuration
127
+ # client = ::Google::Cloud::Chronicle::V1::DashboardChartService::Client.new do |config|
128
+ # config.timeout = 10.0
129
+ # end
130
+ #
131
+ # @yield [config] Configure the DashboardChartService client.
132
+ # @yieldparam config [Client::Configuration]
133
+ #
134
+ def initialize
135
+ # These require statements are intentionally placed here to initialize
136
+ # the gRPC module only when it's required.
137
+ # See https://github.com/googleapis/toolkit/issues/446
138
+ require "gapic/grpc"
139
+ require "google/cloud/chronicle/v1/dashboard_chart_services_pb"
140
+
141
+ # Create the configuration object
142
+ @config = Configuration.new Client.configure
143
+
144
+ # Yield the configuration if needed
145
+ yield @config if block_given?
146
+
147
+ # Create credentials
148
+ credentials = @config.credentials
149
+ # Use self-signed JWT if the endpoint is unchanged from default,
150
+ # but only if the default endpoint does not have a region prefix.
151
+ enable_self_signed_jwt = @config.endpoint.nil? ||
152
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
153
+ !@config.endpoint.split(".").first.include?("-"))
154
+ credentials ||= Credentials.default scope: @config.scope,
155
+ enable_self_signed_jwt: enable_self_signed_jwt
156
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
157
+ credentials = Credentials.new credentials, scope: @config.scope
158
+ end
159
+ @quota_project_id = @config.quota_project
160
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
161
+
162
+ @dashboard_chart_service_stub = ::Gapic::ServiceStub.new(
163
+ ::Google::Cloud::Chronicle::V1::DashboardChartService::Stub,
164
+ credentials: credentials,
165
+ endpoint: @config.endpoint,
166
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
167
+ universe_domain: @config.universe_domain,
168
+ channel_args: @config.channel_args,
169
+ interceptors: @config.interceptors,
170
+ channel_pool_config: @config.channel_pool,
171
+ logger: @config.logger
172
+ )
173
+
174
+ @dashboard_chart_service_stub.stub_logger&.info do |entry|
175
+ entry.set_system_name
176
+ entry.set_service
177
+ entry.message = "Created client for #{entry.service}"
178
+ entry.set_credentials_fields credentials
179
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
180
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
181
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
182
+ end
183
+ end
184
+
185
+ ##
186
+ # The logger used for request/response debug logging.
187
+ #
188
+ # @return [Logger]
189
+ #
190
+ def logger
191
+ @dashboard_chart_service_stub.logger
192
+ end
193
+
194
+ # Service calls
195
+
196
+ ##
197
+ # Get a dashboard chart.
198
+ #
199
+ # @overload get_dashboard_chart(request, options = nil)
200
+ # Pass arguments to `get_dashboard_chart` via a request object, either of type
201
+ # {::Google::Cloud::Chronicle::V1::GetDashboardChartRequest} or an equivalent Hash.
202
+ #
203
+ # @param request [::Google::Cloud::Chronicle::V1::GetDashboardChartRequest, ::Hash]
204
+ # A request object representing the call parameters. Required. To specify no
205
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
206
+ # @param options [::Gapic::CallOptions, ::Hash]
207
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
208
+ #
209
+ # @overload get_dashboard_chart(name: nil)
210
+ # Pass arguments to `get_dashboard_chart` via keyword arguments. Note that at
211
+ # least one keyword argument is required. To specify no parameters, or to keep all
212
+ # the default parameter values, pass an empty Hash as a request object (see above).
213
+ #
214
+ # @param name [::String]
215
+ # Required. The name of the dashboardChart to retrieve.
216
+ # Format:
217
+ # projects/\\{project}/locations/\\{location}/instances/\\{instance}/dashboardCharts/\\{chart}
218
+ #
219
+ # @yield [response, operation] Access the result along with the RPC operation
220
+ # @yieldparam response [::Google::Cloud::Chronicle::V1::DashboardChart]
221
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
222
+ #
223
+ # @return [::Google::Cloud::Chronicle::V1::DashboardChart]
224
+ #
225
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
226
+ #
227
+ # @example Basic example
228
+ # require "google/cloud/chronicle/v1"
229
+ #
230
+ # # Create a client object. The client can be reused for multiple calls.
231
+ # client = Google::Cloud::Chronicle::V1::DashboardChartService::Client.new
232
+ #
233
+ # # Create a request. To set request fields, pass in keyword arguments.
234
+ # request = Google::Cloud::Chronicle::V1::GetDashboardChartRequest.new
235
+ #
236
+ # # Call the get_dashboard_chart method.
237
+ # result = client.get_dashboard_chart request
238
+ #
239
+ # # The returned object is of type Google::Cloud::Chronicle::V1::DashboardChart.
240
+ # p result
241
+ #
242
+ def get_dashboard_chart request, options = nil
243
+ raise ::ArgumentError, "request must be provided" if request.nil?
244
+
245
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::GetDashboardChartRequest
246
+
247
+ # Converts hash and nil to an options object
248
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
249
+
250
+ # Customize the options with defaults
251
+ metadata = @config.rpcs.get_dashboard_chart.metadata.to_h
252
+
253
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
254
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
255
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
256
+ gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
257
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
258
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
259
+
260
+ header_params = {}
261
+ if request.name
262
+ header_params["name"] = request.name
263
+ end
264
+
265
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
266
+ metadata[:"x-goog-request-params"] ||= request_params_header
267
+
268
+ options.apply_defaults timeout: @config.rpcs.get_dashboard_chart.timeout,
269
+ metadata: metadata,
270
+ retry_policy: @config.rpcs.get_dashboard_chart.retry_policy
271
+
272
+ options.apply_defaults timeout: @config.timeout,
273
+ metadata: @config.metadata,
274
+ retry_policy: @config.retry_policy
275
+
276
+ @dashboard_chart_service_stub.call_rpc :get_dashboard_chart, request, options: options do |response, operation|
277
+ yield response, operation if block_given?
278
+ end
279
+ rescue ::GRPC::BadStatus => e
280
+ raise ::Google::Cloud::Error.from_error(e)
281
+ end
282
+
283
+ ##
284
+ # Get dashboard charts in batches.
285
+ #
286
+ # @overload batch_get_dashboard_charts(request, options = nil)
287
+ # Pass arguments to `batch_get_dashboard_charts` via a request object, either of type
288
+ # {::Google::Cloud::Chronicle::V1::BatchGetDashboardChartsRequest} or an equivalent Hash.
289
+ #
290
+ # @param request [::Google::Cloud::Chronicle::V1::BatchGetDashboardChartsRequest, ::Hash]
291
+ # A request object representing the call parameters. Required. To specify no
292
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
293
+ # @param options [::Gapic::CallOptions, ::Hash]
294
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
295
+ #
296
+ # @overload batch_get_dashboard_charts(parent: nil, names: nil)
297
+ # Pass arguments to `batch_get_dashboard_charts` via keyword arguments. Note that at
298
+ # least one keyword argument is required. To specify no parameters, or to keep all
299
+ # the default parameter values, pass an empty Hash as a request object (see above).
300
+ #
301
+ # @param parent [::String]
302
+ # Required. The parent resource shared by all dashboard charts being
303
+ # retrieved. Format:
304
+ # projects/\\{project}/locations/\\{location}/instances/\\{instance} If this is
305
+ # set, the parent of all of the dashboard charts specified in `names` must
306
+ # match this field.
307
+ # @param names [::Array<::String>]
308
+ # Required. The names of the dashboard charts to get.
309
+ #
310
+ # @yield [response, operation] Access the result along with the RPC operation
311
+ # @yieldparam response [::Google::Cloud::Chronicle::V1::BatchGetDashboardChartsResponse]
312
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
313
+ #
314
+ # @return [::Google::Cloud::Chronicle::V1::BatchGetDashboardChartsResponse]
315
+ #
316
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
317
+ #
318
+ # @example Basic example
319
+ # require "google/cloud/chronicle/v1"
320
+ #
321
+ # # Create a client object. The client can be reused for multiple calls.
322
+ # client = Google::Cloud::Chronicle::V1::DashboardChartService::Client.new
323
+ #
324
+ # # Create a request. To set request fields, pass in keyword arguments.
325
+ # request = Google::Cloud::Chronicle::V1::BatchGetDashboardChartsRequest.new
326
+ #
327
+ # # Call the batch_get_dashboard_charts method.
328
+ # result = client.batch_get_dashboard_charts request
329
+ #
330
+ # # The returned object is of type Google::Cloud::Chronicle::V1::BatchGetDashboardChartsResponse.
331
+ # p result
332
+ #
333
+ def batch_get_dashboard_charts request, options = nil
334
+ raise ::ArgumentError, "request must be provided" if request.nil?
335
+
336
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::BatchGetDashboardChartsRequest
337
+
338
+ # Converts hash and nil to an options object
339
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
340
+
341
+ # Customize the options with defaults
342
+ metadata = @config.rpcs.batch_get_dashboard_charts.metadata.to_h
343
+
344
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
345
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
346
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
347
+ gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
348
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
349
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
350
+
351
+ header_params = {}
352
+ if request.parent
353
+ header_params["parent"] = request.parent
354
+ end
355
+
356
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
357
+ metadata[:"x-goog-request-params"] ||= request_params_header
358
+
359
+ options.apply_defaults timeout: @config.rpcs.batch_get_dashboard_charts.timeout,
360
+ metadata: metadata,
361
+ retry_policy: @config.rpcs.batch_get_dashboard_charts.retry_policy
362
+
363
+ options.apply_defaults timeout: @config.timeout,
364
+ metadata: @config.metadata,
365
+ retry_policy: @config.retry_policy
366
+
367
+ @dashboard_chart_service_stub.call_rpc :batch_get_dashboard_charts, request, options: options do |response, operation|
368
+ yield response, operation if block_given?
369
+ end
370
+ rescue ::GRPC::BadStatus => e
371
+ raise ::Google::Cloud::Error.from_error(e)
372
+ end
373
+
374
+ ##
375
+ # Configuration class for the DashboardChartService API.
376
+ #
377
+ # This class represents the configuration for DashboardChartService,
378
+ # providing control over timeouts, retry behavior, logging, transport
379
+ # parameters, and other low-level controls. Certain parameters can also be
380
+ # applied individually to specific RPCs. See
381
+ # {::Google::Cloud::Chronicle::V1::DashboardChartService::Client::Configuration::Rpcs}
382
+ # for a list of RPCs that can be configured independently.
383
+ #
384
+ # Configuration can be applied globally to all clients, or to a single client
385
+ # on construction.
386
+ #
387
+ # @example
388
+ #
389
+ # # Modify the global config, setting the timeout for
390
+ # # get_dashboard_chart to 20 seconds,
391
+ # # and all remaining timeouts to 10 seconds.
392
+ # ::Google::Cloud::Chronicle::V1::DashboardChartService::Client.configure do |config|
393
+ # config.timeout = 10.0
394
+ # config.rpcs.get_dashboard_chart.timeout = 20.0
395
+ # end
396
+ #
397
+ # # Apply the above configuration only to a new client.
398
+ # client = ::Google::Cloud::Chronicle::V1::DashboardChartService::Client.new do |config|
399
+ # config.timeout = 10.0
400
+ # config.rpcs.get_dashboard_chart.timeout = 20.0
401
+ # end
402
+ #
403
+ # @!attribute [rw] endpoint
404
+ # A custom service endpoint, as a hostname or hostname:port. The default is
405
+ # nil, indicating to use the default endpoint in the current universe domain.
406
+ # @return [::String,nil]
407
+ # @!attribute [rw] credentials
408
+ # Credentials to send with calls. You may provide any of the following types:
409
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
410
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
411
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
412
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
413
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
414
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
415
+ # * (`nil`) indicating no credentials
416
+ #
417
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
418
+ # is deprecated. Providing an unvalidated credential configuration to
419
+ # Google APIs can compromise the security of your systems and data.
420
+ #
421
+ # @example
422
+ #
423
+ # # The recommended way to provide credentials is to use the `make_creds` method
424
+ # # on the appropriate credentials class for your environment.
425
+ #
426
+ # require "googleauth"
427
+ #
428
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
429
+ # json_key_io: ::File.open("/path/to/keyfile.json")
430
+ # )
431
+ #
432
+ # client = ::Google::Cloud::Chronicle::V1::DashboardChartService::Client.new do |config|
433
+ # config.credentials = credentials
434
+ # end
435
+ #
436
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
437
+ # external source for authentication to Google Cloud, you must validate it before
438
+ # providing it to a Google API client library. Providing an unvalidated credential
439
+ # configuration to Google APIs can compromise the security of your systems and data.
440
+ # For more information, refer to [Validate credential configurations from external
441
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
442
+ # @return [::Object]
443
+ # @!attribute [rw] scope
444
+ # The OAuth scopes
445
+ # @return [::Array<::String>]
446
+ # @!attribute [rw] lib_name
447
+ # The library name as recorded in instrumentation and logging
448
+ # @return [::String]
449
+ # @!attribute [rw] lib_version
450
+ # The library version as recorded in instrumentation and logging
451
+ # @return [::String]
452
+ # @!attribute [rw] channel_args
453
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
454
+ # `GRPC::Core::Channel` object is provided as the credential.
455
+ # @return [::Hash]
456
+ # @!attribute [rw] interceptors
457
+ # An array of interceptors that are run before calls are executed.
458
+ # @return [::Array<::GRPC::ClientInterceptor>]
459
+ # @!attribute [rw] timeout
460
+ # The call timeout in seconds.
461
+ # @return [::Numeric]
462
+ # @!attribute [rw] metadata
463
+ # Additional gRPC headers to be sent with the call.
464
+ # @return [::Hash{::Symbol=>::String}]
465
+ # @!attribute [rw] retry_policy
466
+ # The retry policy. The value is a hash with the following keys:
467
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
468
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
469
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
470
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
471
+ # trigger a retry.
472
+ # @return [::Hash]
473
+ # @!attribute [rw] quota_project
474
+ # A separate project against which to charge quota.
475
+ # @return [::String]
476
+ # @!attribute [rw] universe_domain
477
+ # The universe domain within which to make requests. This determines the
478
+ # default endpoint URL. The default value of nil uses the environment
479
+ # universe (usually the default "googleapis.com" universe).
480
+ # @return [::String,nil]
481
+ # @!attribute [rw] logger
482
+ # A custom logger to use for request/response debug logging, or the value
483
+ # `:default` (the default) to construct a default logger, or `nil` to
484
+ # explicitly disable logging.
485
+ # @return [::Logger,:default,nil]
486
+ #
487
+ class Configuration
488
+ extend ::Gapic::Config
489
+
490
+ # @private
491
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
492
+ DEFAULT_ENDPOINT = "chronicle.googleapis.com"
493
+
494
+ config_attr :endpoint, nil, ::String, nil
495
+ config_attr :credentials, nil do |value|
496
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
497
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
498
+ allowed.any? { |klass| klass === value }
499
+ end
500
+ config_attr :scope, nil, ::String, ::Array, nil
501
+ config_attr :lib_name, nil, ::String, nil
502
+ config_attr :lib_version, nil, ::String, nil
503
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
504
+ config_attr :interceptors, nil, ::Array, nil
505
+ config_attr :timeout, nil, ::Numeric, nil
506
+ config_attr :metadata, nil, ::Hash, nil
507
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
508
+ config_attr :quota_project, nil, ::String, nil
509
+ config_attr :universe_domain, nil, ::String, nil
510
+ config_attr :logger, :default, ::Logger, nil, :default
511
+
512
+ # @private
513
+ def initialize parent_config = nil
514
+ @parent_config = parent_config unless parent_config.nil?
515
+
516
+ yield self if block_given?
517
+ end
518
+
519
+ ##
520
+ # Configurations for individual RPCs
521
+ # @return [Rpcs]
522
+ #
523
+ def rpcs
524
+ @rpcs ||= begin
525
+ parent_rpcs = nil
526
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
527
+ Rpcs.new parent_rpcs
528
+ end
529
+ end
530
+
531
+ ##
532
+ # Configuration for the channel pool
533
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
534
+ #
535
+ def channel_pool
536
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
537
+ end
538
+
539
+ ##
540
+ # Configuration RPC class for the DashboardChartService API.
541
+ #
542
+ # Includes fields providing the configuration for each RPC in this service.
543
+ # Each configuration object is of type `Gapic::Config::Method` and includes
544
+ # the following configuration fields:
545
+ #
546
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
547
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
548
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
549
+ # include the following keys:
550
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
551
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
552
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
553
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
554
+ # trigger a retry.
555
+ #
556
+ class Rpcs
557
+ ##
558
+ # RPC-specific configuration for `get_dashboard_chart`
559
+ # @return [::Gapic::Config::Method]
560
+ #
561
+ attr_reader :get_dashboard_chart
562
+ ##
563
+ # RPC-specific configuration for `batch_get_dashboard_charts`
564
+ # @return [::Gapic::Config::Method]
565
+ #
566
+ attr_reader :batch_get_dashboard_charts
567
+
568
+ # @private
569
+ def initialize parent_rpcs = nil
570
+ get_dashboard_chart_config = parent_rpcs.get_dashboard_chart if parent_rpcs.respond_to? :get_dashboard_chart
571
+ @get_dashboard_chart = ::Gapic::Config::Method.new get_dashboard_chart_config
572
+ batch_get_dashboard_charts_config = parent_rpcs.batch_get_dashboard_charts if parent_rpcs.respond_to? :batch_get_dashboard_charts
573
+ @batch_get_dashboard_charts = ::Gapic::Config::Method.new batch_get_dashboard_charts_config
574
+
575
+ yield self if block_given?
576
+ end
577
+ end
578
+ end
579
+ end
580
+ end
581
+ end
582
+ end
583
+ end
584
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Chronicle
24
+ module V1
25
+ module DashboardChartService
26
+ # Credentials for the DashboardChartService API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/chronicle",
30
+ "https://www.googleapis.com/auth/chronicle.readonly",
31
+ "https://www.googleapis.com/auth/cloud-platform"
32
+ ]
33
+ self.env_vars = [
34
+ "GOOGLE_CLOUD_CREDENTIALS",
35
+ "GOOGLE_CLOUD_KEYFILE",
36
+ "GCLOUD_KEYFILE",
37
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
38
+ "GOOGLE_CLOUD_KEYFILE_JSON",
39
+ "GCLOUD_KEYFILE_JSON"
40
+ ]
41
+ self.paths = [
42
+ "~/.config/google_cloud/application_default_credentials.json"
43
+ ]
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end