google-cloud-error_reporting-v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +75 -0
  6. data/lib/google-cloud-error_reporting-v1beta1.rb +21 -0
  7. data/lib/google/cloud/error_reporting/v1beta1.rb +37 -0
  8. data/lib/google/cloud/error_reporting/v1beta1/error_group_service.rb +49 -0
  9. data/lib/google/cloud/error_reporting/v1beta1/error_group_service/client.rb +456 -0
  10. data/lib/google/cloud/error_reporting/v1beta1/error_group_service/credentials.rb +51 -0
  11. data/lib/google/cloud/error_reporting/v1beta1/error_group_service/paths.rb +50 -0
  12. data/lib/google/cloud/error_reporting/v1beta1/error_stats_service.rb +50 -0
  13. data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/client.rb +587 -0
  14. data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/credentials.rb +51 -0
  15. data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/paths.rb +47 -0
  16. data/lib/google/cloud/error_reporting/v1beta1/report_errors_service.rb +49 -0
  17. data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/client.rb +385 -0
  18. data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/credentials.rb +51 -0
  19. data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/paths.rb +47 -0
  20. data/lib/google/cloud/error_reporting/v1beta1/version.rb +28 -0
  21. data/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb +65 -0
  22. data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb +31 -0
  23. data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_services_pb.rb +49 -0
  24. data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb +117 -0
  25. data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_services_pb.rb +51 -0
  26. data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb +39 -0
  27. data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb.rb +54 -0
  28. data/proto_docs/README.md +4 -0
  29. data/proto_docs/google/api/field_behavior.rb +59 -0
  30. data/proto_docs/google/api/resource.rb +247 -0
  31. data/proto_docs/google/devtools/clouderrorreporting/v1beta1/common.rb +183 -0
  32. data/proto_docs/google/devtools/clouderrorreporting/v1beta1/error_group_service.rb +49 -0
  33. data/proto_docs/google/devtools/clouderrorreporting/v1beta1/error_stats_service.rb +348 -0
  34. data/proto_docs/google/devtools/clouderrorreporting/v1beta1/report_errors_service.rb +92 -0
  35. data/proto_docs/google/protobuf/duration.rb +98 -0
  36. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  37. metadata +218 -0
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 ErrorReporting
24
+ module V1beta1
25
+ module ErrorStatsService
26
+ # Credentials for the ErrorStatsService API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/cloud-platform"
30
+ ]
31
+ self.env_vars = [
32
+ "ERROR_REPORTING_CREDENTIALS",
33
+ "ERROR_REPORTING_KEYFILE",
34
+ "GOOGLE_CLOUD_CREDENTIALS",
35
+ "GOOGLE_CLOUD_KEYFILE",
36
+ "GCLOUD_KEYFILE",
37
+ "ERROR_REPORTING_CREDENTIALS_JSON",
38
+ "ERROR_REPORTING_KEYFILE_JSON",
39
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
40
+ "GOOGLE_CLOUD_KEYFILE_JSON",
41
+ "GCLOUD_KEYFILE_JSON"
42
+ ]
43
+ self.paths = [
44
+ "~/.config/google_cloud/application_default_credentials.json"
45
+ ]
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 ErrorReporting
23
+ module V1beta1
24
+ module ErrorStatsService
25
+ # Path helper methods for the ErrorStatsService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Project resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}`
33
+ #
34
+ # @param project [String]
35
+ #
36
+ # @return [::String]
37
+ def project_path project:
38
+ "projects/#{project}"
39
+ end
40
+
41
+ extend self
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/error_reporting/v1beta1/version"
24
+
25
+ require "google/cloud/error_reporting/v1beta1/report_errors_service/credentials"
26
+ require "google/cloud/error_reporting/v1beta1/report_errors_service/paths"
27
+ require "google/cloud/error_reporting/v1beta1/report_errors_service/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module ErrorReporting
32
+ module V1beta1
33
+ ##
34
+ # An API for reporting error events.
35
+ #
36
+ # To load this service and instantiate a client:
37
+ #
38
+ # require "google/cloud/error_reporting/v1beta1/report_errors_service"
39
+ # client = ::Google::Cloud::ErrorReporting::V1beta1::ReportErrorsService::Client.new
40
+ #
41
+ module ReportErrorsService
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ helper_path = ::File.join __dir__, "report_errors_service", "helpers.rb"
49
+ require "google/cloud/error_reporting/v1beta1/report_errors_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,385 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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/devtools/clouderrorreporting/v1beta1/report_errors_service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module ErrorReporting
25
+ module V1beta1
26
+ module ReportErrorsService
27
+ ##
28
+ # Client for the ReportErrorsService service.
29
+ #
30
+ # An API for reporting error events.
31
+ #
32
+ class Client
33
+ include Paths
34
+
35
+ # @private
36
+ attr_reader :report_errors_service_stub
37
+
38
+ ##
39
+ # Configure the ReportErrorsService Client class.
40
+ #
41
+ # See {::Google::Cloud::ErrorReporting::V1beta1::ReportErrorsService::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # ## Example
45
+ #
46
+ # To modify the configuration for all ReportErrorsService clients:
47
+ #
48
+ # ::Google::Cloud::ErrorReporting::V1beta1::ReportErrorsService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
51
+ #
52
+ # @yield [config] Configure the Client client.
53
+ # @yieldparam config [Client::Configuration]
54
+ #
55
+ # @return [Client::Configuration]
56
+ #
57
+ def self.configure
58
+ @configure ||= begin
59
+ namespace = ["Google", "Cloud", "ErrorReporting", "V1beta1"]
60
+ parent_config = while namespace.any?
61
+ parent_name = namespace.join "::"
62
+ parent_const = const_get parent_name
63
+ break parent_const.configure if parent_const&.respond_to? :configure
64
+ namespace.pop
65
+ end
66
+ default_config = Client::Configuration.new parent_config
67
+
68
+ default_config.timeout = 600.0
69
+
70
+ default_config
71
+ end
72
+ yield @configure if block_given?
73
+ @configure
74
+ end
75
+
76
+ ##
77
+ # Configure the ReportErrorsService Client instance.
78
+ #
79
+ # The configuration is set to the derived mode, meaning that values can be changed,
80
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
81
+ # should be made on {Client.configure}.
82
+ #
83
+ # See {::Google::Cloud::ErrorReporting::V1beta1::ReportErrorsService::Client::Configuration}
84
+ # for a description of the configuration fields.
85
+ #
86
+ # @yield [config] Configure the Client client.
87
+ # @yieldparam config [Client::Configuration]
88
+ #
89
+ # @return [Client::Configuration]
90
+ #
91
+ def configure
92
+ yield @config if block_given?
93
+ @config
94
+ end
95
+
96
+ ##
97
+ # Create a new ReportErrorsService client object.
98
+ #
99
+ # ## Examples
100
+ #
101
+ # To create a new ReportErrorsService client with the default
102
+ # configuration:
103
+ #
104
+ # client = ::Google::Cloud::ErrorReporting::V1beta1::ReportErrorsService::Client.new
105
+ #
106
+ # To create a new ReportErrorsService client with a custom
107
+ # configuration:
108
+ #
109
+ # client = ::Google::Cloud::ErrorReporting::V1beta1::ReportErrorsService::Client.new do |config|
110
+ # config.timeout = 10.0
111
+ # end
112
+ #
113
+ # @yield [config] Configure the ReportErrorsService client.
114
+ # @yieldparam config [Client::Configuration]
115
+ #
116
+ def initialize
117
+ # These require statements are intentionally placed here to initialize
118
+ # the gRPC module only when it's required.
119
+ # See https://github.com/googleapis/toolkit/issues/446
120
+ require "gapic/grpc"
121
+ require "google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb"
122
+
123
+ # Create the configuration object
124
+ @config = Configuration.new Client.configure
125
+
126
+ # Yield the configuration if needed
127
+ yield @config if block_given?
128
+
129
+ # Create credentials
130
+ credentials = @config.credentials
131
+ credentials ||= Credentials.default scope: @config.scope
132
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
133
+ credentials = Credentials.new credentials, scope: @config.scope
134
+ end
135
+ @quota_project_id = @config.quota_project
136
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
137
+
138
+ @report_errors_service_stub = ::Gapic::ServiceStub.new(
139
+ ::Google::Cloud::ErrorReporting::V1beta1::ReportErrorsService::Stub,
140
+ credentials: credentials,
141
+ endpoint: @config.endpoint,
142
+ channel_args: @config.channel_args,
143
+ interceptors: @config.interceptors
144
+ )
145
+ end
146
+
147
+ # Service calls
148
+
149
+ ##
150
+ # Report an individual error event.
151
+ #
152
+ # This endpoint accepts **either** an OAuth token,
153
+ # **or** an [API key](https://support.google.com/cloud/answer/6158862)
154
+ # for authentication. To use an API key, append it to the URL as the value of
155
+ # a `key` parameter. For example:
156
+ #
157
+ # `POST
158
+ # https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456`
159
+ #
160
+ # @overload report_error_event(request, options = nil)
161
+ # Pass arguments to `report_error_event` via a request object, either of type
162
+ # {::Google::Cloud::ErrorReporting::V1beta1::ReportErrorEventRequest} or an equivalent Hash.
163
+ #
164
+ # @param request [::Google::Cloud::ErrorReporting::V1beta1::ReportErrorEventRequest, ::Hash]
165
+ # A request object representing the call parameters. Required. To specify no
166
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
167
+ # @param options [::Gapic::CallOptions, ::Hash]
168
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
169
+ #
170
+ # @overload report_error_event(project_name: nil, event: nil)
171
+ # Pass arguments to `report_error_event` via keyword arguments. Note that at
172
+ # least one keyword argument is required. To specify no parameters, or to keep all
173
+ # the default parameter values, pass an empty Hash as a request object (see above).
174
+ #
175
+ # @param project_name [::String]
176
+ # Required. The resource name of the Google Cloud Platform project. Written
177
+ # as `projects/` plus the
178
+ # [Google Cloud Platform project
179
+ # ID](https://support.google.com/cloud/answer/6158840). Example:
180
+ # `projects/my-project-123`.
181
+ # @param event [::Google::Cloud::ErrorReporting::V1beta1::ReportedErrorEvent, ::Hash]
182
+ # Required. The error event to be reported.
183
+ #
184
+ # @yield [response, operation] Access the result along with the RPC operation
185
+ # @yieldparam response [::Google::Cloud::ErrorReporting::V1beta1::ReportErrorEventResponse]
186
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
187
+ #
188
+ # @return [::Google::Cloud::ErrorReporting::V1beta1::ReportErrorEventResponse]
189
+ #
190
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
191
+ #
192
+ def report_error_event request, options = nil
193
+ raise ::ArgumentError, "request must be provided" if request.nil?
194
+
195
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ErrorReporting::V1beta1::ReportErrorEventRequest
196
+
197
+ # Converts hash and nil to an options object
198
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
199
+
200
+ # Customize the options with defaults
201
+ metadata = @config.rpcs.report_error_event.metadata.to_h
202
+
203
+ # Set x-goog-api-client and x-goog-user-project headers
204
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
205
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
206
+ gapic_version: ::Google::Cloud::ErrorReporting::V1beta1::VERSION
207
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
208
+
209
+ header_params = {
210
+ "project_name" => request.project_name
211
+ }
212
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
213
+ metadata[:"x-goog-request-params"] ||= request_params_header
214
+
215
+ options.apply_defaults timeout: @config.rpcs.report_error_event.timeout,
216
+ metadata: metadata,
217
+ retry_policy: @config.rpcs.report_error_event.retry_policy
218
+ options.apply_defaults metadata: @config.metadata,
219
+ retry_policy: @config.retry_policy
220
+
221
+ @report_errors_service_stub.call_rpc :report_error_event, request, options: options do |response, operation|
222
+ yield response, operation if block_given?
223
+ return response
224
+ end
225
+ rescue ::GRPC::BadStatus => e
226
+ raise ::Google::Cloud::Error.from_error(e)
227
+ end
228
+
229
+ ##
230
+ # Configuration class for the ReportErrorsService API.
231
+ #
232
+ # This class represents the configuration for ReportErrorsService,
233
+ # providing control over timeouts, retry behavior, logging, transport
234
+ # parameters, and other low-level controls. Certain parameters can also be
235
+ # applied individually to specific RPCs. See
236
+ # {::Google::Cloud::ErrorReporting::V1beta1::ReportErrorsService::Client::Configuration::Rpcs}
237
+ # for a list of RPCs that can be configured independently.
238
+ #
239
+ # Configuration can be applied globally to all clients, or to a single client
240
+ # on construction.
241
+ #
242
+ # # Examples
243
+ #
244
+ # To modify the global config, setting the timeout for report_error_event
245
+ # to 20 seconds, and all remaining timeouts to 10 seconds:
246
+ #
247
+ # ::Google::Cloud::ErrorReporting::V1beta1::ReportErrorsService::Client.configure do |config|
248
+ # config.timeout = 10.0
249
+ # config.rpcs.report_error_event.timeout = 20.0
250
+ # end
251
+ #
252
+ # To apply the above configuration only to a new client:
253
+ #
254
+ # client = ::Google::Cloud::ErrorReporting::V1beta1::ReportErrorsService::Client.new do |config|
255
+ # config.timeout = 10.0
256
+ # config.rpcs.report_error_event.timeout = 20.0
257
+ # end
258
+ #
259
+ # @!attribute [rw] endpoint
260
+ # The hostname or hostname:port of the service endpoint.
261
+ # Defaults to `"clouderrorreporting.googleapis.com"`.
262
+ # @return [::String]
263
+ # @!attribute [rw] credentials
264
+ # Credentials to send with calls. You may provide any of the following types:
265
+ # * (`String`) The path to a service account key file in JSON format
266
+ # * (`Hash`) A service account key as a Hash
267
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
268
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
269
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
270
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
271
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
272
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
273
+ # * (`nil`) indicating no credentials
274
+ # @return [::Object]
275
+ # @!attribute [rw] scope
276
+ # The OAuth scopes
277
+ # @return [::Array<::String>]
278
+ # @!attribute [rw] lib_name
279
+ # The library name as recorded in instrumentation and logging
280
+ # @return [::String]
281
+ # @!attribute [rw] lib_version
282
+ # The library version as recorded in instrumentation and logging
283
+ # @return [::String]
284
+ # @!attribute [rw] channel_args
285
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
286
+ # `GRPC::Core::Channel` object is provided as the credential.
287
+ # @return [::Hash]
288
+ # @!attribute [rw] interceptors
289
+ # An array of interceptors that are run before calls are executed.
290
+ # @return [::Array<::GRPC::ClientInterceptor>]
291
+ # @!attribute [rw] timeout
292
+ # The call timeout in seconds.
293
+ # @return [::Numeric]
294
+ # @!attribute [rw] metadata
295
+ # Additional gRPC headers to be sent with the call.
296
+ # @return [::Hash{::Symbol=>::String}]
297
+ # @!attribute [rw] retry_policy
298
+ # The retry policy. The value is a hash with the following keys:
299
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
300
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
301
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
302
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
303
+ # trigger a retry.
304
+ # @return [::Hash]
305
+ # @!attribute [rw] quota_project
306
+ # A separate project against which to charge quota.
307
+ # @return [::String]
308
+ #
309
+ class Configuration
310
+ extend ::Gapic::Config
311
+
312
+ config_attr :endpoint, "clouderrorreporting.googleapis.com", ::String
313
+ config_attr :credentials, nil do |value|
314
+ allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
315
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
316
+ allowed.any? { |klass| klass === value }
317
+ end
318
+ config_attr :scope, nil, ::String, ::Array, nil
319
+ config_attr :lib_name, nil, ::String, nil
320
+ config_attr :lib_version, nil, ::String, nil
321
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
322
+ config_attr :interceptors, nil, ::Array, nil
323
+ config_attr :timeout, nil, ::Numeric, nil
324
+ config_attr :metadata, nil, ::Hash, nil
325
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
326
+ config_attr :quota_project, nil, ::String, nil
327
+
328
+ # @private
329
+ def initialize parent_config = nil
330
+ @parent_config = parent_config unless parent_config.nil?
331
+
332
+ yield self if block_given?
333
+ end
334
+
335
+ ##
336
+ # Configurations for individual RPCs
337
+ # @return [Rpcs]
338
+ #
339
+ def rpcs
340
+ @rpcs ||= begin
341
+ parent_rpcs = nil
342
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
343
+ Rpcs.new parent_rpcs
344
+ end
345
+ end
346
+
347
+ ##
348
+ # Configuration RPC class for the ReportErrorsService API.
349
+ #
350
+ # Includes fields providing the configuration for each RPC in this service.
351
+ # Each configuration object is of type `Gapic::Config::Method` and includes
352
+ # the following configuration fields:
353
+ #
354
+ # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
355
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
356
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
357
+ # include the following keys:
358
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
359
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
360
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
361
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
362
+ # trigger a retry.
363
+ #
364
+ class Rpcs
365
+ ##
366
+ # RPC-specific configuration for `report_error_event`
367
+ # @return [::Gapic::Config::Method]
368
+ #
369
+ attr_reader :report_error_event
370
+
371
+ # @private
372
+ def initialize parent_rpcs = nil
373
+ report_error_event_config = parent_rpcs&.report_error_event if parent_rpcs&.respond_to? :report_error_event
374
+ @report_error_event = ::Gapic::Config::Method.new report_error_event_config
375
+
376
+ yield self if block_given?
377
+ end
378
+ end
379
+ end
380
+ end
381
+ end
382
+ end
383
+ end
384
+ end
385
+ end