google-cloud-error_reporting-v1beta1 0.1.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,3 +35,6 @@ module Google
35
35
  end
36
36
  end
37
37
  end
38
+
39
+ helper_path = ::File.join __dir__, "v1beta1", "_helpers.rb"
40
+ require "google/cloud/error_reporting/v1beta1/_helpers" if ::File.file? helper_path
@@ -60,7 +60,7 @@ module Google
60
60
  parent_config = while namespace.any?
61
61
  parent_name = namespace.join "::"
62
62
  parent_const = const_get parent_name
63
- break parent_const.configure if parent_const&.respond_to? :configure
63
+ break parent_const.configure if parent_const.respond_to? :configure
64
64
  namespace.pop
65
65
  end
66
66
  default_config = Client::Configuration.new parent_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 600.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14, 4]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14, 4]
74
74
  }
75
75
 
76
76
  default_config
@@ -134,7 +134,13 @@ module Google
134
134
 
135
135
  # Create credentials
136
136
  credentials = @config.credentials
137
- credentials ||= Credentials.default scope: @config.scope
137
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
138
+ # but only if the default endpoint does not have a region prefix.
139
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
140
+ @config.endpoint == Client.configure.endpoint &&
141
+ !@config.endpoint.split(".").first.include?("-")
142
+ credentials ||= Credentials.default scope: @config.scope,
143
+ enable_self_signed_jwt: enable_self_signed_jwt
138
144
  if credentials.is_a?(String) || credentials.is_a?(Hash)
139
145
  credentials = Credentials.new credentials, scope: @config.scope
140
146
  end
@@ -171,7 +177,7 @@ module Google
171
177
  # the default parameter values, pass an empty Hash as a request object (see above).
172
178
  #
173
179
  # @param group_name [::String]
174
- # The group resource name. Written as
180
+ # Required. The group resource name. Written as
175
181
  # `projects/{projectID}/groups/{group_name}`. Call
176
182
  # [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
177
183
  # to return a list of groups belonging to this project.
@@ -375,14 +381,14 @@ module Google
375
381
 
376
382
  config_attr :endpoint, "clouderrorreporting.googleapis.com", ::String
377
383
  config_attr :credentials, nil do |value|
378
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
384
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
379
385
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
380
386
  allowed.any? { |klass| klass === value }
381
387
  end
382
388
  config_attr :scope, nil, ::String, ::Array, nil
383
389
  config_attr :lib_name, nil, ::String, nil
384
390
  config_attr :lib_version, nil, ::String, nil
385
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
391
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
386
392
  config_attr :interceptors, nil, ::Array, nil
387
393
  config_attr :timeout, nil, ::Numeric, nil
388
394
  config_attr :metadata, nil, ::Hash, nil
@@ -403,7 +409,7 @@ module Google
403
409
  def rpcs
404
410
  @rpcs ||= begin
405
411
  parent_rpcs = nil
406
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
412
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
407
413
  Rpcs.new parent_rpcs
408
414
  end
409
415
  end
@@ -415,7 +421,7 @@ module Google
415
421
  # Each configuration object is of type `Gapic::Config::Method` and includes
416
422
  # the following configuration fields:
417
423
  #
418
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
424
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
419
425
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
420
426
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
421
427
  # include the following keys:
@@ -439,9 +445,9 @@ module Google
439
445
 
440
446
  # @private
441
447
  def initialize parent_rpcs = nil
442
- get_group_config = parent_rpcs&.get_group if parent_rpcs&.respond_to? :get_group
448
+ get_group_config = parent_rpcs.get_group if parent_rpcs.respond_to? :get_group
443
449
  @get_group = ::Gapic::Config::Method.new get_group_config
444
- update_group_config = parent_rpcs&.update_group if parent_rpcs&.respond_to? :update_group
450
+ update_group_config = parent_rpcs.update_group if parent_rpcs.respond_to? :update_group
445
451
  @update_group = ::Gapic::Config::Method.new update_group_config
446
452
 
447
453
  yield self if block_given?
@@ -61,7 +61,7 @@ module Google
61
61
  parent_config = while namespace.any?
62
62
  parent_name = namespace.join "::"
63
63
  parent_const = const_get parent_name
64
- break parent_const.configure if parent_const&.respond_to? :configure
64
+ break parent_const.configure if parent_const.respond_to? :configure
65
65
  namespace.pop
66
66
  end
67
67
  default_config = Client::Configuration.new parent_config
@@ -69,9 +69,9 @@ module Google
69
69
  default_config.timeout = 600.0
70
70
  default_config.retry_policy = {
71
71
  initial_delay: 0.1,
72
- max_delay: 60.0,
73
- multiplier: 1.3,
74
- retry_codes: [14, 4]
72
+ max_delay: 60.0,
73
+ multiplier: 1.3,
74
+ retry_codes: [14, 4]
75
75
  }
76
76
 
77
77
  default_config
@@ -135,7 +135,13 @@ module Google
135
135
 
136
136
  # Create credentials
137
137
  credentials = @config.credentials
138
- credentials ||= Credentials.default scope: @config.scope
138
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
139
+ # but only if the default endpoint does not have a region prefix.
140
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
141
+ @config.endpoint == Client.configure.endpoint &&
142
+ !@config.endpoint.split(".").first.include?("-")
143
+ credentials ||= Credentials.default scope: @config.scope,
144
+ enable_self_signed_jwt: enable_self_signed_jwt
139
145
  if credentials.is_a?(String) || credentials.is_a?(Hash)
140
146
  credentials = Credentials.new credentials, scope: @config.scope
141
147
  end
@@ -173,11 +179,11 @@ module Google
173
179
  #
174
180
  # @param project_name [::String]
175
181
  # Required. The resource name of the Google Cloud Platform project. Written
176
- # as <code>projects/</code> plus the
177
- # <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
178
- # Platform project ID</a>.
182
+ # as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
183
+ # and `{projectNumber}` can be found in the
184
+ # [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
179
185
  #
180
- # Example: <code>projects/my-project-123</code>.
186
+ # Examples: `projects/my-project-123`, `projects/5551234`.
181
187
  # @param group_id [::Array<::String>]
182
188
  # Optional. List all <code>ErrorGroupStats</code> with these IDs.
183
189
  # @param service_filter [::Google::Cloud::ErrorReporting::V1beta1::ServiceContextFilter, ::Hash]
@@ -279,9 +285,10 @@ module Google
279
285
  #
280
286
  # @param project_name [::String]
281
287
  # Required. The resource name of the Google Cloud Platform project. Written
282
- # as `projects/` plus the
288
+ # as `projects/{projectID}`, where `{projectID}` is the
283
289
  # [Google Cloud Platform project
284
290
  # ID](https://support.google.com/cloud/answer/6158840).
291
+ #
285
292
  # Example: `projects/my-project-123`.
286
293
  # @param group_id [::String]
287
294
  # Required. The group for which events shall be returned.
@@ -364,9 +371,10 @@ module Google
364
371
  #
365
372
  # @param project_name [::String]
366
373
  # Required. The resource name of the Google Cloud Platform project. Written
367
- # as `projects/` plus the
374
+ # as `projects/{projectID}`, where `{projectID}` is the
368
375
  # [Google Cloud Platform project
369
376
  # ID](https://support.google.com/cloud/answer/6158840).
377
+ #
370
378
  # Example: `projects/my-project-123`.
371
379
  #
372
380
  # @yield [response, operation] Access the result along with the RPC operation
@@ -499,14 +507,14 @@ module Google
499
507
 
500
508
  config_attr :endpoint, "clouderrorreporting.googleapis.com", ::String
501
509
  config_attr :credentials, nil do |value|
502
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
510
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
503
511
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
504
512
  allowed.any? { |klass| klass === value }
505
513
  end
506
514
  config_attr :scope, nil, ::String, ::Array, nil
507
515
  config_attr :lib_name, nil, ::String, nil
508
516
  config_attr :lib_version, nil, ::String, nil
509
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
517
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
510
518
  config_attr :interceptors, nil, ::Array, nil
511
519
  config_attr :timeout, nil, ::Numeric, nil
512
520
  config_attr :metadata, nil, ::Hash, nil
@@ -527,7 +535,7 @@ module Google
527
535
  def rpcs
528
536
  @rpcs ||= begin
529
537
  parent_rpcs = nil
530
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
538
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
531
539
  Rpcs.new parent_rpcs
532
540
  end
533
541
  end
@@ -539,7 +547,7 @@ module Google
539
547
  # Each configuration object is of type `Gapic::Config::Method` and includes
540
548
  # the following configuration fields:
541
549
  #
542
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
550
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
543
551
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
544
552
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
545
553
  # include the following keys:
@@ -568,11 +576,11 @@ module Google
568
576
 
569
577
  # @private
570
578
  def initialize parent_rpcs = nil
571
- list_group_stats_config = parent_rpcs&.list_group_stats if parent_rpcs&.respond_to? :list_group_stats
579
+ list_group_stats_config = parent_rpcs.list_group_stats if parent_rpcs.respond_to? :list_group_stats
572
580
  @list_group_stats = ::Gapic::Config::Method.new list_group_stats_config
573
- list_events_config = parent_rpcs&.list_events if parent_rpcs&.respond_to? :list_events
581
+ list_events_config = parent_rpcs.list_events if parent_rpcs.respond_to? :list_events
574
582
  @list_events = ::Gapic::Config::Method.new list_events_config
575
- delete_events_config = parent_rpcs&.delete_events if parent_rpcs&.respond_to? :delete_events
583
+ delete_events_config = parent_rpcs.delete_events if parent_rpcs.respond_to? :delete_events
576
584
  @delete_events = ::Gapic::Config::Method.new delete_events_config
577
585
 
578
586
  yield self if block_given?
@@ -60,7 +60,7 @@ module Google
60
60
  parent_config = while namespace.any?
61
61
  parent_name = namespace.join "::"
62
62
  parent_const = const_get parent_name
63
- break parent_const.configure if parent_const&.respond_to? :configure
63
+ break parent_const.configure if parent_const.respond_to? :configure
64
64
  namespace.pop
65
65
  end
66
66
  default_config = Client::Configuration.new parent_config
@@ -128,7 +128,13 @@ module Google
128
128
 
129
129
  # Create credentials
130
130
  credentials = @config.credentials
131
- credentials ||= Credentials.default scope: @config.scope
131
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
132
+ # but only if the default endpoint does not have a region prefix.
133
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
134
+ @config.endpoint == Client.configure.endpoint &&
135
+ !@config.endpoint.split(".").first.include?("-")
136
+ credentials ||= Credentials.default scope: @config.scope,
137
+ enable_self_signed_jwt: enable_self_signed_jwt
132
138
  if credentials.is_a?(String) || credentials.is_a?(Hash)
133
139
  credentials = Credentials.new credentials, scope: @config.scope
134
140
  end
@@ -147,7 +153,7 @@ module Google
147
153
  # Service calls
148
154
 
149
155
  ##
150
- # Report an individual error event.
156
+ # Report an individual error event and record the event to a log.
151
157
  #
152
158
  # This endpoint accepts **either** an OAuth token,
153
159
  # **or** an [API key](https://support.google.com/cloud/answer/6158862)
@@ -155,7 +161,15 @@ module Google
155
161
  # a `key` parameter. For example:
156
162
  #
157
163
  # `POST
158
- # https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456`
164
+ # https://clouderrorreporting.googleapis.com/v1beta1/\\{projectName}/events:report?key=123ABC456`
165
+ #
166
+ # **Note:** [Error Reporting](/error-reporting) is a global service built
167
+ # on Cloud Logging and doesn't analyze logs stored
168
+ # in regional log buckets or logs routed to other Google Cloud projects.
169
+ #
170
+ # For more information, see
171
+ # [Using Error Reporting with regionalized
172
+ # logs](/error-reporting/docs/regionalization).
159
173
  #
160
174
  # @overload report_error_event(request, options = nil)
161
175
  # Pass arguments to `report_error_event` via a request object, either of type
@@ -174,10 +188,11 @@ module Google
174
188
  #
175
189
  # @param project_name [::String]
176
190
  # Required. The resource name of the Google Cloud Platform project. Written
177
- # as `projects/` plus the
191
+ # as `projects/{projectId}`, where `{projectId}` is the
178
192
  # [Google Cloud Platform project
179
- # ID](https://support.google.com/cloud/answer/6158840). Example:
180
- # `projects/my-project-123`.
193
+ # ID](https://support.google.com/cloud/answer/6158840).
194
+ #
195
+ # Example: // `projects/my-project-123`.
181
196
  # @param event [::Google::Cloud::ErrorReporting::V1beta1::ReportedErrorEvent, ::Hash]
182
197
  # Required. The error event to be reported.
183
198
  #
@@ -311,14 +326,14 @@ module Google
311
326
 
312
327
  config_attr :endpoint, "clouderrorreporting.googleapis.com", ::String
313
328
  config_attr :credentials, nil do |value|
314
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
329
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
315
330
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
316
331
  allowed.any? { |klass| klass === value }
317
332
  end
318
333
  config_attr :scope, nil, ::String, ::Array, nil
319
334
  config_attr :lib_name, nil, ::String, nil
320
335
  config_attr :lib_version, nil, ::String, nil
321
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
336
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
322
337
  config_attr :interceptors, nil, ::Array, nil
323
338
  config_attr :timeout, nil, ::Numeric, nil
324
339
  config_attr :metadata, nil, ::Hash, nil
@@ -339,7 +354,7 @@ module Google
339
354
  def rpcs
340
355
  @rpcs ||= begin
341
356
  parent_rpcs = nil
342
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
357
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
343
358
  Rpcs.new parent_rpcs
344
359
  end
345
360
  end
@@ -351,7 +366,7 @@ module Google
351
366
  # Each configuration object is of type `Gapic::Config::Method` and includes
352
367
  # the following configuration fields:
353
368
  #
354
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
369
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
355
370
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
356
371
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
357
372
  # include the following keys:
@@ -370,7 +385,7 @@ module Google
370
385
 
371
386
  # @private
372
387
  def initialize parent_rpcs = nil
373
- report_error_event_config = parent_rpcs&.report_error_event if parent_rpcs&.respond_to? :report_error_event
388
+ report_error_event_config = parent_rpcs.report_error_event if parent_rpcs.respond_to? :report_error_event
374
389
  @report_error_event = ::Gapic::Config::Method.new report_error_event_config
375
390
 
376
391
  yield self if block_given?
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ErrorReporting
23
23
  module V1beta1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -3,15 +3,16 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/resource_pb'
8
7
  require 'google/protobuf/timestamp_pb'
8
+ require 'google/api/annotations_pb'
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/devtools/clouderrorreporting/v1beta1/common.proto", :syntax => :proto3) do
11
11
  add_message "google.devtools.clouderrorreporting.v1beta1.ErrorGroup" do
12
12
  optional :name, :string, 1
13
13
  optional :group_id, :string, 2
14
14
  repeated :tracking_issues, :message, 3, "google.devtools.clouderrorreporting.v1beta1.TrackingIssue"
15
+ optional :resolution_status, :enum, 5, "google.devtools.clouderrorreporting.v1beta1.ResolutionStatus"
15
16
  end
16
17
  add_message "google.devtools.clouderrorreporting.v1beta1.TrackingIssue" do
17
18
  optional :url, :string, 1
@@ -45,6 +46,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
45
46
  optional :line_number, :int32, 2
46
47
  optional :function_name, :string, 4
47
48
  end
49
+ add_enum "google.devtools.clouderrorreporting.v1beta1.ResolutionStatus" do
50
+ value :RESOLUTION_STATUS_UNSPECIFIED, 0
51
+ value :OPEN, 1
52
+ value :ACKNOWLEDGED, 2
53
+ value :RESOLVED, 3
54
+ value :MUTED, 4
55
+ end
48
56
  end
49
57
  end
50
58
 
@@ -59,6 +67,7 @@ module Google
59
67
  ErrorContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ErrorContext").msgclass
60
68
  HttpRequestContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.HttpRequestContext").msgclass
61
69
  SourceLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.SourceLocation").msgclass
70
+ ResolutionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ResolutionStatus").enummodule
62
71
  end
63
72
  end
64
73
  end
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto for package 'Google.Cloud.ErrorReporting.V1beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2021 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
  require 'grpc'
21
20
  require 'google/devtools/clouderrorreporting/v1beta1/error_group_service_pb'
@@ -35,10 +34,10 @@ module Google
35
34
  self.service_name = 'google.devtools.clouderrorreporting.v1beta1.ErrorGroupService'
36
35
 
37
36
  # Get the specified group.
38
- rpc :GetGroup, Google::Cloud::ErrorReporting::V1beta1::GetGroupRequest, Google::Cloud::ErrorReporting::V1beta1::ErrorGroup
37
+ rpc :GetGroup, ::Google::Cloud::ErrorReporting::V1beta1::GetGroupRequest, ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroup
39
38
  # Replace the data for the specified group.
40
39
  # Fails if the group does not exist.
41
- rpc :UpdateGroup, Google::Cloud::ErrorReporting::V1beta1::UpdateGroupRequest, Google::Cloud::ErrorReporting::V1beta1::ErrorGroup
40
+ rpc :UpdateGroup, ::Google::Cloud::ErrorReporting::V1beta1::UpdateGroupRequest, ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroup
42
41
  end
43
42
 
44
43
  Stub = Service.rpc_stub_class
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto for package 'Google.Cloud.ErrorReporting.V1beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2021 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
  require 'grpc'
21
20
  require 'google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb'
@@ -36,11 +35,11 @@ module Google
36
35
  self.service_name = 'google.devtools.clouderrorreporting.v1beta1.ErrorStatsService'
37
36
 
38
37
  # Lists the specified groups.
39
- rpc :ListGroupStats, Google::Cloud::ErrorReporting::V1beta1::ListGroupStatsRequest, Google::Cloud::ErrorReporting::V1beta1::ListGroupStatsResponse
38
+ rpc :ListGroupStats, ::Google::Cloud::ErrorReporting::V1beta1::ListGroupStatsRequest, ::Google::Cloud::ErrorReporting::V1beta1::ListGroupStatsResponse
40
39
  # Lists the specified events.
41
- rpc :ListEvents, Google::Cloud::ErrorReporting::V1beta1::ListEventsRequest, Google::Cloud::ErrorReporting::V1beta1::ListEventsResponse
40
+ rpc :ListEvents, ::Google::Cloud::ErrorReporting::V1beta1::ListEventsRequest, ::Google::Cloud::ErrorReporting::V1beta1::ListEventsResponse
42
41
  # Deletes all error events of a given project.
43
- rpc :DeleteEvents, Google::Cloud::ErrorReporting::V1beta1::DeleteEventsRequest, Google::Cloud::ErrorReporting::V1beta1::DeleteEventsResponse
42
+ rpc :DeleteEvents, ::Google::Cloud::ErrorReporting::V1beta1::DeleteEventsRequest, ::Google::Cloud::ErrorReporting::V1beta1::DeleteEventsResponse
44
43
  end
45
44
 
46
45
  Stub = Service.rpc_stub_class
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto for package 'Google.Cloud.ErrorReporting.V1beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2021 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
  require 'grpc'
21
20
  require 'google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb'
@@ -34,7 +33,7 @@ module Google
34
33
  self.unmarshal_class_method = :decode
35
34
  self.service_name = 'google.devtools.clouderrorreporting.v1beta1.ReportErrorsService'
36
35
 
37
- # Report an individual error event.
36
+ # Report an individual error event and record the event to a log.
38
37
  #
39
38
  # This endpoint accepts **either** an OAuth token,
40
39
  # **or** an [API key](https://support.google.com/cloud/answer/6158862)
@@ -42,8 +41,16 @@ module Google
42
41
  # a `key` parameter. For example:
43
42
  #
44
43
  # `POST
45
- # https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456`
46
- rpc :ReportErrorEvent, Google::Cloud::ErrorReporting::V1beta1::ReportErrorEventRequest, Google::Cloud::ErrorReporting::V1beta1::ReportErrorEventResponse
44
+ # https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456`
45
+ #
46
+ # **Note:** [Error Reporting](/error-reporting) is a global service built
47
+ # on Cloud Logging and doesn't analyze logs stored
48
+ # in regional log buckets or logs routed to other Google Cloud projects.
49
+ #
50
+ # For more information, see
51
+ # [Using Error Reporting with regionalized
52
+ # logs](/error-reporting/docs/regionalization).
53
+ rpc :ReportErrorEvent, ::Google::Cloud::ErrorReporting::V1beta1::ReportErrorEventRequest, ::Google::Cloud::ErrorReporting::V1beta1::ReportErrorEventResponse
47
54
  end
48
55
 
49
56
  Stub = Service.rpc_stub_class