google-cloud-chronicle-v1 0.7.0 → 0.8.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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/chronicle/v1/reference_list_pb.rb +4 -1
  3. data/lib/google/cloud/chronicle/v1/reference_list_service/client.rb +104 -0
  4. data/lib/google/cloud/chronicle/v1/reference_list_service/credentials.rb +2 -0
  5. data/lib/google/cloud/chronicle/v1/reference_list_service/rest/client.rb +97 -0
  6. data/lib/google/cloud/chronicle/v1/reference_list_service/rest/service_stub.rb +62 -0
  7. data/lib/google/cloud/chronicle/v1/reference_list_services_pb.rb +2 -0
  8. data/lib/google/cloud/chronicle/v1/rest.rb +1 -0
  9. data/lib/google/cloud/chronicle/v1/rule_execution_error_pb.rb +30 -0
  10. data/lib/google/cloud/chronicle/v1/rule_execution_error_service/client.rb +522 -0
  11. data/lib/google/cloud/chronicle/v1/rule_execution_error_service/credentials.rb +49 -0
  12. data/lib/google/cloud/chronicle/v1/rule_execution_error_service/paths.rb +52 -0
  13. data/lib/google/cloud/chronicle/v1/rule_execution_error_service/rest/client.rb +472 -0
  14. data/lib/google/cloud/chronicle/v1/rule_execution_error_service/rest/service_stub.rb +142 -0
  15. data/lib/google/cloud/chronicle/v1/rule_execution_error_service/rest.rb +53 -0
  16. data/lib/google/cloud/chronicle/v1/rule_execution_error_service.rb +56 -0
  17. data/lib/google/cloud/chronicle/v1/rule_execution_error_services_pb.rb +46 -0
  18. data/lib/google/cloud/chronicle/v1/rule_pb.rb +3 -1
  19. data/lib/google/cloud/chronicle/v1/rule_service/client.rb +101 -0
  20. data/lib/google/cloud/chronicle/v1/rule_service/credentials.rb +2 -0
  21. data/lib/google/cloud/chronicle/v1/rule_service/rest/client.rb +94 -0
  22. data/lib/google/cloud/chronicle/v1/rule_service/rest/service_stub.rb +62 -0
  23. data/lib/google/cloud/chronicle/v1/rule_services_pb.rb +2 -0
  24. data/lib/google/cloud/chronicle/v1/version.rb +1 -1
  25. data/lib/google/cloud/chronicle/v1.rb +1 -0
  26. data/proto_docs/google/cloud/chronicle/v1/reference_list.rb +43 -0
  27. data/proto_docs/google/cloud/chronicle/v1/rule.rb +27 -0
  28. data/proto_docs/google/cloud/chronicle/v1/rule_execution_error.rb +116 -0
  29. metadata +11 -1
@@ -0,0 +1,522 @@
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/rule_execution_error_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Chronicle
25
+ module V1
26
+ module RuleExecutionErrorService
27
+ ##
28
+ # Client for the RuleExecutionErrorService service.
29
+ #
30
+ # RuleExecutionErrorService contains endpoints related to rule execution
31
+ # errors.
32
+ #
33
+ class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
37
+ # @private
38
+ DEFAULT_ENDPOINT_TEMPLATE = "chronicle.$UNIVERSE_DOMAIN$"
39
+
40
+ include Paths
41
+
42
+ # @private
43
+ attr_reader :rule_execution_error_service_stub
44
+
45
+ ##
46
+ # Configure the RuleExecutionErrorService Client class.
47
+ #
48
+ # See {::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all RuleExecutionErrorService clients
54
+ # ::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client.configure do |config|
55
+ # config.timeout = 10.0
56
+ # end
57
+ #
58
+ # @yield [config] Configure the Client client.
59
+ # @yieldparam config [Client::Configuration]
60
+ #
61
+ # @return [Client::Configuration]
62
+ #
63
+ def self.configure
64
+ @configure ||= begin
65
+ namespace = ["Google", "Cloud", "Chronicle", "V1"]
66
+ parent_config = while namespace.any?
67
+ parent_name = namespace.join "::"
68
+ parent_const = const_get parent_name
69
+ break parent_const.configure if parent_const.respond_to? :configure
70
+ namespace.pop
71
+ end
72
+ default_config = Client::Configuration.new parent_config
73
+
74
+ default_config.rpcs.list_rule_execution_errors.timeout = 600.0
75
+ default_config.rpcs.list_rule_execution_errors.retry_policy = {
76
+ initial_delay: 1.0, max_delay: 600.0, multiplier: 1.3, retry_codes: [14]
77
+ }
78
+
79
+ default_config
80
+ end
81
+ yield @configure if block_given?
82
+ @configure
83
+ end
84
+
85
+ ##
86
+ # Configure the RuleExecutionErrorService Client instance.
87
+ #
88
+ # The configuration is set to the derived mode, meaning that values can be changed,
89
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
90
+ # should be made on {Client.configure}.
91
+ #
92
+ # See {::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client::Configuration}
93
+ # for a description of the configuration fields.
94
+ #
95
+ # @yield [config] Configure the Client client.
96
+ # @yieldparam config [Client::Configuration]
97
+ #
98
+ # @return [Client::Configuration]
99
+ #
100
+ def configure
101
+ yield @config if block_given?
102
+ @config
103
+ end
104
+
105
+ ##
106
+ # The effective universe domain
107
+ #
108
+ # @return [String]
109
+ #
110
+ def universe_domain
111
+ @rule_execution_error_service_stub.universe_domain
112
+ end
113
+
114
+ ##
115
+ # Create a new RuleExecutionErrorService client object.
116
+ #
117
+ # @example
118
+ #
119
+ # # Create a client using the default configuration
120
+ # client = ::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client.new
121
+ #
122
+ # # Create a client using a custom configuration
123
+ # client = ::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client.new do |config|
124
+ # config.timeout = 10.0
125
+ # end
126
+ #
127
+ # @yield [config] Configure the RuleExecutionErrorService client.
128
+ # @yieldparam config [Client::Configuration]
129
+ #
130
+ def initialize
131
+ # These require statements are intentionally placed here to initialize
132
+ # the gRPC module only when it's required.
133
+ # See https://github.com/googleapis/toolkit/issues/446
134
+ require "gapic/grpc"
135
+ require "google/cloud/chronicle/v1/rule_execution_error_services_pb"
136
+
137
+ # Create the configuration object
138
+ @config = Configuration.new Client.configure
139
+
140
+ # Yield the configuration if needed
141
+ yield @config if block_given?
142
+
143
+ # Create credentials
144
+ credentials = @config.credentials
145
+ # Use self-signed JWT if the endpoint is unchanged from default,
146
+ # but only if the default endpoint does not have a region prefix.
147
+ enable_self_signed_jwt = @config.endpoint.nil? ||
148
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
149
+ !@config.endpoint.split(".").first.include?("-"))
150
+ credentials ||= Credentials.default scope: @config.scope,
151
+ enable_self_signed_jwt: enable_self_signed_jwt
152
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
153
+ credentials = Credentials.new credentials, scope: @config.scope
154
+ end
155
+ @quota_project_id = @config.quota_project
156
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
157
+
158
+ @rule_execution_error_service_stub = ::Gapic::ServiceStub.new(
159
+ ::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Stub,
160
+ credentials: credentials,
161
+ endpoint: @config.endpoint,
162
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
163
+ universe_domain: @config.universe_domain,
164
+ channel_args: @config.channel_args,
165
+ interceptors: @config.interceptors,
166
+ channel_pool_config: @config.channel_pool,
167
+ logger: @config.logger
168
+ )
169
+
170
+ @rule_execution_error_service_stub.stub_logger&.info do |entry|
171
+ entry.set_system_name
172
+ entry.set_service
173
+ entry.message = "Created client for #{entry.service}"
174
+ entry.set_credentials_fields credentials
175
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
176
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
177
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
178
+ end
179
+ end
180
+
181
+ ##
182
+ # The logger used for request/response debug logging.
183
+ #
184
+ # @return [Logger]
185
+ #
186
+ def logger
187
+ @rule_execution_error_service_stub.logger
188
+ end
189
+
190
+ # Service calls
191
+
192
+ ##
193
+ # Lists rule execution errors.
194
+ #
195
+ # @overload list_rule_execution_errors(request, options = nil)
196
+ # Pass arguments to `list_rule_execution_errors` via a request object, either of type
197
+ # {::Google::Cloud::Chronicle::V1::ListRuleExecutionErrorsRequest} or an equivalent Hash.
198
+ #
199
+ # @param request [::Google::Cloud::Chronicle::V1::ListRuleExecutionErrorsRequest, ::Hash]
200
+ # A request object representing the call parameters. Required. To specify no
201
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
202
+ # @param options [::Gapic::CallOptions, ::Hash]
203
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
204
+ #
205
+ # @overload list_rule_execution_errors(parent: nil, page_size: nil, page_token: nil, filter: nil)
206
+ # Pass arguments to `list_rule_execution_errors` via keyword arguments. Note that at
207
+ # least one keyword argument is required. To specify no parameters, or to keep all
208
+ # the default parameter values, pass an empty Hash as a request object (see above).
209
+ #
210
+ # @param parent [::String]
211
+ # Required. The instance to list rule execution errors from.
212
+ # Format:
213
+ # projects/\\{project}/locations/\\{location}/instances/\\{instance}
214
+ # @param page_size [::Integer]
215
+ # The maximum number of rule execution errors to return. The service may
216
+ # return fewer than this value. If unspecified, at most 1000 rule execution
217
+ # errors will be returned. The maximum value is 10000; values above 10000
218
+ # will be coerced to 10000.
219
+ # @param page_token [::String]
220
+ # A page token, received from a previous `ListRuleExecutionErrors` call.
221
+ # Provide this to retrieve the subsequent page.
222
+ #
223
+ # When paginating, all other parameters provided to `ListRuleExecutionErrors`
224
+ # must match the call that provided the page token.
225
+ # @param filter [::String]
226
+ # A filter that can be used to retrieve specific rule execution errors.
227
+ # Only the following filters are allowed:
228
+ # ```
229
+ # rule = "\\{Rule.name}"
230
+ # curated_rule = "\\{CuratedRule.name}"
231
+ # ```
232
+ # The value for rule or curated_rule must be a valid rule resource name or a
233
+ # valid curated rule resource name specified in quotes.
234
+ #
235
+ # For 'rule', an optional 'revision_id' can be specified which can be used to
236
+ # fetch errors for a given revision of the rule. A '-' is also allowed to
237
+ # fetch errors across all revisions of the rule. If unspecified, only errors
238
+ # corresponding to the most recent revision of the rule will be returned. So
239
+ # these variations are all allowed:
240
+ # ```
241
+ # rule = "\\{Rule.name}"
242
+ # rule = "\\{Rule.name}@\\{Rule.revision_id}"
243
+ # rule = "\\{Rule.name}@-"
244
+ # ```
245
+ # Revision IDs are not supported for curated rules.
246
+ #
247
+ # @yield [response, operation] Access the result along with the RPC operation
248
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::RuleExecutionError>]
249
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
250
+ #
251
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::RuleExecutionError>]
252
+ #
253
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
254
+ #
255
+ # @example Basic example
256
+ # require "google/cloud/chronicle/v1"
257
+ #
258
+ # # Create a client object. The client can be reused for multiple calls.
259
+ # client = Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client.new
260
+ #
261
+ # # Create a request. To set request fields, pass in keyword arguments.
262
+ # request = Google::Cloud::Chronicle::V1::ListRuleExecutionErrorsRequest.new
263
+ #
264
+ # # Call the list_rule_execution_errors method.
265
+ # result = client.list_rule_execution_errors request
266
+ #
267
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
268
+ # # over elements, and API calls will be issued to fetch pages as needed.
269
+ # result.each do |item|
270
+ # # Each element is of type ::Google::Cloud::Chronicle::V1::RuleExecutionError.
271
+ # p item
272
+ # end
273
+ #
274
+ def list_rule_execution_errors request, options = nil
275
+ raise ::ArgumentError, "request must be provided" if request.nil?
276
+
277
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::ListRuleExecutionErrorsRequest
278
+
279
+ # Converts hash and nil to an options object
280
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
281
+
282
+ # Customize the options with defaults
283
+ metadata = @config.rpcs.list_rule_execution_errors.metadata.to_h
284
+
285
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
286
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
287
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
288
+ gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
289
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
290
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
291
+
292
+ header_params = {}
293
+ if request.parent
294
+ header_params["parent"] = request.parent
295
+ end
296
+
297
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
298
+ metadata[:"x-goog-request-params"] ||= request_params_header
299
+
300
+ options.apply_defaults timeout: @config.rpcs.list_rule_execution_errors.timeout,
301
+ metadata: metadata,
302
+ retry_policy: @config.rpcs.list_rule_execution_errors.retry_policy
303
+
304
+ options.apply_defaults timeout: @config.timeout,
305
+ metadata: @config.metadata,
306
+ retry_policy: @config.retry_policy
307
+
308
+ @rule_execution_error_service_stub.call_rpc :list_rule_execution_errors, request, options: options do |response, operation|
309
+ response = ::Gapic::PagedEnumerable.new @rule_execution_error_service_stub, :list_rule_execution_errors, request, response, operation, options
310
+ yield response, operation if block_given?
311
+ throw :response, response
312
+ end
313
+ rescue ::GRPC::BadStatus => e
314
+ raise ::Google::Cloud::Error.from_error(e)
315
+ end
316
+
317
+ ##
318
+ # Configuration class for the RuleExecutionErrorService API.
319
+ #
320
+ # This class represents the configuration for RuleExecutionErrorService,
321
+ # providing control over timeouts, retry behavior, logging, transport
322
+ # parameters, and other low-level controls. Certain parameters can also be
323
+ # applied individually to specific RPCs. See
324
+ # {::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client::Configuration::Rpcs}
325
+ # for a list of RPCs that can be configured independently.
326
+ #
327
+ # Configuration can be applied globally to all clients, or to a single client
328
+ # on construction.
329
+ #
330
+ # @example
331
+ #
332
+ # # Modify the global config, setting the timeout for
333
+ # # list_rule_execution_errors to 20 seconds,
334
+ # # and all remaining timeouts to 10 seconds.
335
+ # ::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client.configure do |config|
336
+ # config.timeout = 10.0
337
+ # config.rpcs.list_rule_execution_errors.timeout = 20.0
338
+ # end
339
+ #
340
+ # # Apply the above configuration only to a new client.
341
+ # client = ::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client.new do |config|
342
+ # config.timeout = 10.0
343
+ # config.rpcs.list_rule_execution_errors.timeout = 20.0
344
+ # end
345
+ #
346
+ # @!attribute [rw] endpoint
347
+ # A custom service endpoint, as a hostname or hostname:port. The default is
348
+ # nil, indicating to use the default endpoint in the current universe domain.
349
+ # @return [::String,nil]
350
+ # @!attribute [rw] credentials
351
+ # Credentials to send with calls. You may provide any of the following types:
352
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
353
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
354
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
355
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
356
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
357
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
358
+ # * (`nil`) indicating no credentials
359
+ #
360
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
361
+ # is deprecated. Providing an unvalidated credential configuration to
362
+ # Google APIs can compromise the security of your systems and data.
363
+ #
364
+ # @example
365
+ #
366
+ # # The recommended way to provide credentials is to use the `make_creds` method
367
+ # # on the appropriate credentials class for your environment.
368
+ #
369
+ # require "googleauth"
370
+ #
371
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
372
+ # json_key_io: ::File.open("/path/to/keyfile.json")
373
+ # )
374
+ #
375
+ # client = ::Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client.new do |config|
376
+ # config.credentials = credentials
377
+ # end
378
+ #
379
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
380
+ # external source for authentication to Google Cloud, you must validate it before
381
+ # providing it to a Google API client library. Providing an unvalidated credential
382
+ # configuration to Google APIs can compromise the security of your systems and data.
383
+ # For more information, refer to [Validate credential configurations from external
384
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
385
+ # @return [::Object]
386
+ # @!attribute [rw] scope
387
+ # The OAuth scopes
388
+ # @return [::Array<::String>]
389
+ # @!attribute [rw] lib_name
390
+ # The library name as recorded in instrumentation and logging
391
+ # @return [::String]
392
+ # @!attribute [rw] lib_version
393
+ # The library version as recorded in instrumentation and logging
394
+ # @return [::String]
395
+ # @!attribute [rw] channel_args
396
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
397
+ # `GRPC::Core::Channel` object is provided as the credential.
398
+ # @return [::Hash]
399
+ # @!attribute [rw] interceptors
400
+ # An array of interceptors that are run before calls are executed.
401
+ # @return [::Array<::GRPC::ClientInterceptor>]
402
+ # @!attribute [rw] timeout
403
+ # The call timeout in seconds.
404
+ # @return [::Numeric]
405
+ # @!attribute [rw] metadata
406
+ # Additional gRPC headers to be sent with the call.
407
+ # @return [::Hash{::Symbol=>::String}]
408
+ # @!attribute [rw] retry_policy
409
+ # The retry policy. The value is a hash with the following keys:
410
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
411
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
412
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
413
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
414
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
415
+ # trigger a retry.
416
+ # @return [::Hash]
417
+ # @!attribute [rw] quota_project
418
+ # A separate project against which to charge quota.
419
+ # @return [::String]
420
+ # @!attribute [rw] universe_domain
421
+ # The universe domain within which to make requests. This determines the
422
+ # default endpoint URL. The default value of nil uses the environment
423
+ # universe (usually the default "googleapis.com" universe).
424
+ # @return [::String,nil]
425
+ # @!attribute [rw] logger
426
+ # A custom logger to use for request/response debug logging, or the value
427
+ # `:default` (the default) to construct a default logger, or `nil` to
428
+ # explicitly disable logging.
429
+ # @return [::Logger,:default,nil]
430
+ #
431
+ class Configuration
432
+ extend ::Gapic::Config
433
+
434
+ # @private
435
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
436
+ DEFAULT_ENDPOINT = "chronicle.googleapis.com"
437
+
438
+ config_attr :endpoint, nil, ::String, nil
439
+ config_attr :credentials, nil do |value|
440
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
441
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
442
+ allowed.any? { |klass| klass === value }
443
+ end
444
+ config_attr :scope, nil, ::String, ::Array, nil
445
+ config_attr :lib_name, nil, ::String, nil
446
+ config_attr :lib_version, nil, ::String, nil
447
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
448
+ config_attr :interceptors, nil, ::Array, nil
449
+ config_attr :timeout, nil, ::Numeric, nil
450
+ config_attr :metadata, nil, ::Hash, nil
451
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
452
+ config_attr :quota_project, nil, ::String, nil
453
+ config_attr :universe_domain, nil, ::String, nil
454
+ config_attr :logger, :default, ::Logger, nil, :default
455
+
456
+ # @private
457
+ def initialize parent_config = nil
458
+ @parent_config = parent_config unless parent_config.nil?
459
+
460
+ yield self if block_given?
461
+ end
462
+
463
+ ##
464
+ # Configurations for individual RPCs
465
+ # @return [Rpcs]
466
+ #
467
+ def rpcs
468
+ @rpcs ||= begin
469
+ parent_rpcs = nil
470
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
471
+ Rpcs.new parent_rpcs
472
+ end
473
+ end
474
+
475
+ ##
476
+ # Configuration for the channel pool
477
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
478
+ #
479
+ def channel_pool
480
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
481
+ end
482
+
483
+ ##
484
+ # Configuration RPC class for the RuleExecutionErrorService API.
485
+ #
486
+ # Includes fields providing the configuration for each RPC in this service.
487
+ # Each configuration object is of type `Gapic::Config::Method` and includes
488
+ # the following configuration fields:
489
+ #
490
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
491
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
492
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
493
+ # include the following keys:
494
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
495
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
496
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
497
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
498
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
499
+ # trigger a retry.
500
+ #
501
+ class Rpcs
502
+ ##
503
+ # RPC-specific configuration for `list_rule_execution_errors`
504
+ # @return [::Gapic::Config::Method]
505
+ #
506
+ attr_reader :list_rule_execution_errors
507
+
508
+ # @private
509
+ def initialize parent_rpcs = nil
510
+ list_rule_execution_errors_config = parent_rpcs.list_rule_execution_errors if parent_rpcs.respond_to? :list_rule_execution_errors
511
+ @list_rule_execution_errors = ::Gapic::Config::Method.new list_rule_execution_errors_config
512
+
513
+ yield self if block_given?
514
+ end
515
+ end
516
+ end
517
+ end
518
+ end
519
+ end
520
+ end
521
+ end
522
+ 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 RuleExecutionErrorService
26
+ # Credentials for the RuleExecutionErrorService 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
@@ -0,0 +1,52 @@
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
+
20
+ module Google
21
+ module Cloud
22
+ module Chronicle
23
+ module V1
24
+ module RuleExecutionErrorService
25
+ # Path helper methods for the RuleExecutionErrorService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Instance resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/instances/{instance}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param instance [String]
37
+ #
38
+ # @return [::String]
39
+ def instance_path project:, location:, instance:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/instances/#{instance}"
44
+ end
45
+
46
+ extend self
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end