google-cloud-error_reporting 0.34.0 → 0.35.2

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 (24) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -0
  3. data/TROUBLESHOOTING.md +2 -8
  4. data/lib/google/cloud/error_reporting/v1beta1/credentials.rb +1 -1
  5. data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/common.rb +9 -9
  6. data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/error_group_service.rb +7 -9
  7. data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/error_stats_service.rb +27 -26
  8. data/lib/google/cloud/error_reporting/v1beta1/doc/google/devtools/clouderrorreporting/v1beta1/report_errors_service.rb +30 -10
  9. data/lib/google/cloud/error_reporting/v1beta1/doc/google/protobuf/duration.rb +1 -1
  10. data/lib/google/cloud/error_reporting/v1beta1/doc/google/protobuf/timestamp.rb +1 -1
  11. data/lib/google/cloud/error_reporting/v1beta1/error_group_service_client.rb +47 -46
  12. data/lib/google/cloud/error_reporting/v1beta1/error_group_service_client_config.json +2 -2
  13. data/lib/google/cloud/error_reporting/v1beta1/error_stats_service_client.rb +72 -71
  14. data/lib/google/cloud/error_reporting/v1beta1/error_stats_service_client_config.json +3 -3
  15. data/lib/google/cloud/error_reporting/v1beta1/report_errors_service_client.rb +11 -8
  16. data/lib/google/cloud/error_reporting/version.rb +1 -1
  17. data/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb +1 -1
  18. data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb +3 -0
  19. data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_services_pb.rb +2 -1
  20. data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb +3 -0
  21. data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_services_pb.rb +2 -1
  22. data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb +3 -0
  23. data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb.rb +7 -6
  24. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06cc4f589b045bf49e940246a4d9022ce46e6857ca7050bf9ecccad67dbd7276
4
- data.tar.gz: d9f9c1b3f77c8da711785c74ea798296fd1d0053a5f69e8cc9ad3556307759c4
3
+ metadata.gz: 1310d85b13af53a81f9169eb31f7d9b1629964aadac7d2cd1b0cf12c87160354
4
+ data.tar.gz: c90692577531e1d69b83d31d72929724233cee7e8f2fdb8761094cbbfbd75552
5
5
  SHA512:
6
- metadata.gz: 0d94375c43c44fdadc9a82496d10626cf04a1211779656bdcb1abf0a43972e04f6b08b7b6cb7e92648afeb8a871b7988206a6e83893dacd6ac13699c2d7552e1
7
- data.tar.gz: ee0647df1afd3714ddffec4c0e043dac4afe000637697e18bf2572580fab43b29c099596270837185a96c0e021ad1d862d17862227c3a779f2d86735eeda57e3
6
+ metadata.gz: b47ead95a38b2d5a16ba8755cbe3a8d5fba2550e24fefc83f99c4bf357eaedeffe21d10a45baa36764c2395ea7001496f3a42e129436207ae8e81ce3982e6f6d
7
+ data.tar.gz: 41ab14e7ef0be79a9dab3cbf4b4db462c4ebc3234a9c5c8b362741b93e342df75bea22ce4dbf090f822177cf9d2a0b8db02610e9817338a136fdde2b5530b4cb
@@ -1,5 +1,37 @@
1
1
  # Release History
2
2
 
3
+ ### 0.35.2 / 2020-06-08
4
+
5
+ #### Documentation
6
+
7
+ * Fixed broken links in the reference documentation
8
+
9
+ ### 0.35.1 / 2020-05-19
10
+
11
+ #### Bug Fixes
12
+
13
+ * Adjusted some default timeout and retry settings
14
+
15
+ ### 0.35.0 / 2020-03-11
16
+
17
+ #### Features
18
+
19
+ * Support separate project setting for quota/billing
20
+
21
+ ### 0.34.2 / 2020-01-23
22
+
23
+ #### Documentation
24
+
25
+ * Update copyright year
26
+
27
+ ### 0.34.1 / 2019-12-20
28
+
29
+ #### Bug Fixes
30
+
31
+ * Synchronize low-level interface to match the backend API
32
+ * Rename ErrorGroupServiceClient.group_path helper to error_group_path.
33
+ * Make time_range an optional argument to ErrorGroupServiceClient#list_group_stats
34
+
3
35
  ### 0.34.0 / 2019-11-11
4
36
 
5
37
  #### Features
@@ -24,14 +24,8 @@ improved, *please* create a new issue on GitHub so we can talk about it.
24
24
 
25
25
  - [New issue][gh-ruby]
26
26
 
27
- Or, you can ask questions on the [Google Cloud Platform Slack][slack-ruby]. You
28
- can use the "ruby" channel for general Ruby questions, or use the
29
- "google-cloud-ruby" channel if you have questions about this gem in particular.
30
-
31
27
  [so-ruby]: http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby+errorreporting
32
28
 
33
- [gh-search-ruby]: https://github.com/googlecloudplatform/google-cloud-ruby/issues?q=label%3A%22api%3A+error+reporting%22
34
-
35
- [gh-ruby]: https://github.com/googlecloudplatform/google-cloud-ruby/issues/new
29
+ [gh-search-ruby]: https://github.com/googleapis/google-cloud-ruby/issues?q=label%3A%22api%3A+error+reporting%22
36
30
 
37
- [slack-ruby]: https://gcp-slack.appspot.com/
31
+ [gh-ruby]: https://github.com/googleapis/google-cloud-ruby/issues/new
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -35,7 +35,7 @@ module Google
35
35
  # @!attribute [rw] url
36
36
  # @return [String]
37
37
  # A URL pointing to a related entry in an issue tracking system.
38
- # Example: https://github.com/user/project/issues/4
38
+ # Example: `https://github.com/user/project/issues/4`
39
39
  class TrackingIssue; end
40
40
 
41
41
  # An error event which is returned by the Error Reporting system.
@@ -70,6 +70,8 @@ module Google
70
70
  # @return [String]
71
71
  # Represents the source code version that the developer provided,
72
72
  # which could represent a version label or a Git SHA-1 hash, for example.
73
+ # For App Engine standard environment, the version is set to the version of
74
+ # the app.
73
75
  # @!attribute [rw] resource_type
74
76
  # @return [String]
75
77
  # Type of the MonitoredResource. List of possible values:
@@ -103,8 +105,7 @@ module Google
103
105
  # report the error, usually the place where it was logged.
104
106
  # For a logged exception this would be the source line where the
105
107
  # exception is logged, usually close to the place where it was
106
- # caught. This value is in contrast to `Exception.cause_location`,
107
- # which describes the source line where the exception was thrown.
108
+ # caught.
108
109
  class ErrorContext; end
109
110
 
110
111
  # HTTP request data that is related to a reported error.
@@ -134,11 +135,10 @@ module Google
134
135
  # in the error report.
135
136
  class HttpRequestContext; end
136
137
 
137
- # Indicates a location in the source code of the service for which
138
- # errors are reported.
139
- # This data should be provided by the application when reporting an error,
140
- # unless the error report has been generated automatically from Google App
141
- # Engine logs. All fields are optional.
138
+ # Indicates a location in the source code of the service for which errors are
139
+ # reported. `functionName` must be provided by the application when reporting
140
+ # an error, unless the error report contains a `message` with a supported
141
+ # exception stack trace. All fields are optional for the later case.
142
142
  # @!attribute [rw] file_path
143
143
  # @return [String]
144
144
  # The source code filename, which can include a truncated relative
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -20,20 +20,18 @@ module Google
20
20
  # A request to return an individual group.
21
21
  # @!attribute [rw] group_name
22
22
  # @return [String]
23
- # [Required] The group resource name. Written as
24
- # <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>.
25
- # Call
26
- # <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list">
27
- # <code>groupStats.list</code></a> to return a list of groups belonging to
28
- # this project.
23
+ # The group resource name. Written as
24
+ # `projects/{projectID}/groups/{group_name}`. Call
25
+ # [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
26
+ # to return a list of groups belonging to this project.
29
27
  #
30
- # Example: <code>projects/my-project-123/groups/my-group</code>
28
+ # Example: `projects/my-project-123/groups/my-group`
31
29
  class GetGroupRequest; end
32
30
 
33
31
  # A request to replace the existing data for the given group.
34
32
  # @!attribute [rw] group
35
33
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup]
36
- # [Required] The group which replaces the resource on the server.
34
+ # Required. The group which replaces the resource on the server.
37
35
  class UpdateGroupRequest; end
38
36
  end
39
37
  end
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@ module Google
20
20
  # Specifies a set of `ErrorGroupStats` to return.
21
21
  # @!attribute [rw] project_name
22
22
  # @return [String]
23
- # [Required] The resource name of the Google Cloud Platform project. Written
23
+ # Required. The resource name of the Google Cloud Platform project. Written
24
24
  # as <code>projects/</code> plus the
25
25
  # <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
26
26
  # Platform project ID</a>.
@@ -28,44 +28,45 @@ module Google
28
28
  # Example: <code>projects/my-project-123</code>.
29
29
  # @!attribute [rw] group_id
30
30
  # @return [Array<String>]
31
- # [Optional] List all <code>ErrorGroupStats</code> with these IDs.
31
+ # Optional. List all <code>ErrorGroupStats</code> with these IDs.
32
32
  # @!attribute [rw] service_filter
33
33
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter]
34
- # [Optional] List only <code>ErrorGroupStats</code> which belong to a service
34
+ # Optional. List only <code>ErrorGroupStats</code> which belong to a service
35
35
  # context that matches the filter.
36
36
  # Data for all service contexts is returned if this field is not specified.
37
37
  # @!attribute [rw] time_range
38
38
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange]
39
- # [Optional] List data for the given time range.
40
- # If not set a default time range is used. The field time_range_begin
41
- # in the response will specify the beginning of this time range.
39
+ # Optional. List data for the given time range.
40
+ # If not set, a default time range is used. The field
41
+ # <code>time_range_begin</code> in the response will specify the beginning
42
+ # of this time range.
42
43
  # Only <code>ErrorGroupStats</code> with a non-zero count in the given time
43
- # range are returned, unless the request contains an explicit group_id list.
44
- # If a group_id list is given, also <code>ErrorGroupStats</code> with zero
45
- # occurrences are returned.
44
+ # range are returned, unless the request contains an explicit
45
+ # <code>group_id</code> list. If a <code>group_id</code> list is given, also
46
+ # <code>ErrorGroupStats</code> with zero occurrences are returned.
46
47
  # @!attribute [rw] timed_count_duration
47
48
  # @return [Google::Protobuf::Duration]
48
- # [Optional] The preferred duration for a single returned `TimedCount`.
49
+ # Optional. The preferred duration for a single returned `TimedCount`.
49
50
  # If not set, no timed counts are returned.
50
51
  # @!attribute [rw] alignment
51
52
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::TimedCountAlignment]
52
- # [Optional] The alignment of the timed counts to be returned.
53
+ # Optional. The alignment of the timed counts to be returned.
53
54
  # Default is `ALIGNMENT_EQUAL_AT_END`.
54
55
  # @!attribute [rw] alignment_time
55
56
  # @return [Google::Protobuf::Timestamp]
56
- # [Optional] Time where the timed counts shall be aligned if rounded
57
+ # Optional. Time where the timed counts shall be aligned if rounded
57
58
  # alignment is chosen. Default is 00:00 UTC.
58
59
  # @!attribute [rw] order
59
60
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroupOrder]
60
- # [Optional] The sort order in which the results are returned.
61
+ # Optional. The sort order in which the results are returned.
61
62
  # Default is `COUNT_DESC`.
62
63
  # @!attribute [rw] page_size
63
64
  # @return [Integer]
64
- # [Optional] The maximum number of results to return per response.
65
+ # Optional. The maximum number of results to return per response.
65
66
  # Default is 20.
66
67
  # @!attribute [rw] page_token
67
68
  # @return [String]
68
- # [Optional] A `next_page_token` provided by a previous response. To view
69
+ # Optional. A `next_page_token` provided by a previous response. To view
69
70
  # additional results, pass this token along with the identical query
70
71
  # parameters as the first request.
71
72
  class ListGroupStatsRequest; end
@@ -163,30 +164,30 @@ module Google
163
164
  # Specifies a set of error events to return.
164
165
  # @!attribute [rw] project_name
165
166
  # @return [String]
166
- # [Required] The resource name of the Google Cloud Platform project. Written
167
+ # Required. The resource name of the Google Cloud Platform project. Written
167
168
  # as `projects/` plus the
168
169
  # [Google Cloud Platform project
169
170
  # ID](https://support.google.com/cloud/answer/6158840).
170
171
  # Example: `projects/my-project-123`.
171
172
  # @!attribute [rw] group_id
172
173
  # @return [String]
173
- # [Required] The group for which events shall be returned.
174
+ # Required. The group for which events shall be returned.
174
175
  # @!attribute [rw] service_filter
175
176
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter]
176
- # [Optional] List only ErrorGroups which belong to a service context that
177
+ # Optional. List only ErrorGroups which belong to a service context that
177
178
  # matches the filter.
178
179
  # Data for all service contexts is returned if this field is not specified.
179
180
  # @!attribute [rw] time_range
180
181
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange]
181
- # [Optional] List only data for the given time range.
182
+ # Optional. List only data for the given time range.
182
183
  # If not set a default time range is used. The field time_range_begin
183
184
  # in the response will specify the beginning of this time range.
184
185
  # @!attribute [rw] page_size
185
186
  # @return [Integer]
186
- # [Optional] The maximum number of results to return per response.
187
+ # Optional. The maximum number of results to return per response.
187
188
  # @!attribute [rw] page_token
188
189
  # @return [String]
189
- # [Optional] A `next_page_token` provided by a previous response.
190
+ # Optional. A `next_page_token` provided by a previous response.
190
191
  class ListEventsRequest; end
191
192
 
192
193
  # Contains a set of requested error events.
@@ -242,22 +243,22 @@ module Google
242
243
  # If a field is unset or empty, it matches arbitrary values.
243
244
  # @!attribute [rw] service
244
245
  # @return [String]
245
- # [Optional] The exact value to match against
246
+ # Optional. The exact value to match against
246
247
  # [`ServiceContext.service`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
247
248
  # @!attribute [rw] version
248
249
  # @return [String]
249
- # [Optional] The exact value to match against
250
+ # Optional. The exact value to match against
250
251
  # [`ServiceContext.version`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
251
252
  # @!attribute [rw] resource_type
252
253
  # @return [String]
253
- # [Optional] The exact value to match against
254
+ # Optional. The exact value to match against
254
255
  # [`ServiceContext.resource_type`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
255
256
  class ServiceContextFilter; end
256
257
 
257
258
  # Deletes all events in the project.
258
259
  # @!attribute [rw] project_name
259
260
  # @return [String]
260
- # [Required] The resource name of the Google Cloud Platform project. Written
261
+ # Required. The resource name of the Google Cloud Platform project. Written
261
262
  # as `projects/` plus the
262
263
  # [Google Cloud Platform project
263
264
  # ID](https://support.google.com/cloud/answer/6158840).
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -20,14 +20,14 @@ module Google
20
20
  # A request for reporting an individual error event.
21
21
  # @!attribute [rw] project_name
22
22
  # @return [String]
23
- # [Required] The resource name of the Google Cloud Platform project. Written
23
+ # Required. The resource name of the Google Cloud Platform project. Written
24
24
  # as `projects/` plus the
25
25
  # [Google Cloud Platform project
26
26
  # ID](https://support.google.com/cloud/answer/6158840). Example:
27
27
  # `projects/my-project-123`.
28
28
  # @!attribute [rw] event
29
29
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent]
30
- # [Required] The error event to be reported.
30
+ # Required. The error event to be reported.
31
31
  class ReportErrorEventRequest; end
32
32
 
33
33
  # Response for reporting an individual error event.
@@ -37,21 +37,41 @@ module Google
37
37
  # An error event which is reported to the Error Reporting system.
38
38
  # @!attribute [rw] event_time
39
39
  # @return [Google::Protobuf::Timestamp]
40
- # [Optional] Time when the event occurred.
40
+ # Optional. Time when the event occurred.
41
41
  # If not provided, the time when the event was received by the
42
42
  # Error Reporting system will be used.
43
43
  # @!attribute [rw] service_context
44
44
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContext]
45
- # [Required] The service context in which this error has occurred.
45
+ # Required. The service context in which this error has occurred.
46
46
  # @!attribute [rw] message
47
47
  # @return [String]
48
- # [Required] A message describing the error. The message can contain an
49
- # exception stack in one of the supported programming languages and formats.
50
- # In that case, the message is parsed and detailed exception information
51
- # is returned when retrieving the error event again.
48
+ # Required. The error message.
49
+ # If no `context.reportLocation` is provided, the message must contain a
50
+ # header (typically consisting of the exception type name and an error
51
+ # message) and an exception stack trace in one of the supported programming
52
+ # languages and formats.
53
+ # Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
54
+ # Supported stack trace formats are:
55
+ #
56
+ # * **Java**: Must be the return value of
57
+ # [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).
58
+ # * **Python**: Must be the return value of
59
+ # [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).
60
+ # * **JavaScript**: Must be the value of
61
+ # [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned
62
+ # by V8.
63
+ # * **Ruby**: Must contain frames returned by
64
+ # [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).
65
+ # * **C#**: Must be the return value of
66
+ # [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).
67
+ # * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)`
68
+ # and contain the result of
69
+ # [`(string)$exception`](http://php.net/manual/en/exception.tostring.php).
70
+ # * **Go**: Must be the return value of
71
+ # [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).
52
72
  # @!attribute [rw] context
53
73
  # @return [Google::Devtools::Clouderrorreporting::V1beta1::ErrorContext]
54
- # [Optional] A description of the context in which the error occurred.
74
+ # Optional. A description of the context in which the error occurred.
55
75
  class ReportedErrorEvent; end
56
76
  end
57
77
  end
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -59,18 +59,18 @@ module Google
59
59
  ].freeze
60
60
 
61
61
 
62
- GROUP_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
62
+ ERROR_GROUP_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
63
63
  "projects/{project}/groups/{group}"
64
64
  )
65
65
 
66
- private_constant :GROUP_PATH_TEMPLATE
66
+ private_constant :ERROR_GROUP_PATH_TEMPLATE
67
67
 
68
- # Returns a fully-qualified group resource name string.
68
+ # Returns a fully-qualified error_group resource name string.
69
69
  # @param project [String]
70
70
  # @param group [String]
71
71
  # @return [String]
72
- def self.group_path project, group
73
- GROUP_PATH_TEMPLATE.render(
72
+ def self.error_group_path project, group
73
+ ERROR_GROUP_PATH_TEMPLATE.render(
74
74
  :"project" => project,
75
75
  :"group" => group
76
76
  )
@@ -153,6 +153,9 @@ module Google
153
153
  google_api_client.freeze
154
154
 
155
155
  headers = { :"x-goog-api-client" => google_api_client }
156
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
157
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
158
+ end
156
159
  headers.merge!(metadata) unless metadata.nil?
157
160
  client_config_file = Pathname.new(__dir__).join(
158
161
  "error_group_service_client_config.json"
@@ -184,14 +187,6 @@ module Google
184
187
  &Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroupService::Stub.method(:new)
185
188
  )
186
189
 
187
- @get_group = Google::Gax.create_api_call(
188
- @error_group_service_stub.method(:get_group),
189
- defaults["get_group"],
190
- exception_transformer: exception_transformer,
191
- params_extractor: proc do |request|
192
- {'group_name' => request.group_name}
193
- end
194
- )
195
190
  @update_group = Google::Gax.create_api_call(
196
191
  @error_group_service_stub.method(:update_group),
197
192
  defaults["update_group"],
@@ -200,21 +195,25 @@ module Google
200
195
  {'group.name' => request.group.name}
201
196
  end
202
197
  )
198
+ @get_group = Google::Gax.create_api_call(
199
+ @error_group_service_stub.method(:get_group),
200
+ defaults["get_group"],
201
+ exception_transformer: exception_transformer,
202
+ params_extractor: proc do |request|
203
+ {'group_name' => request.group_name}
204
+ end
205
+ )
203
206
  end
204
207
 
205
208
  # Service calls
206
209
 
207
- # Get the specified group.
208
- #
209
- # @param group_name [String]
210
- # [Required] The group resource name. Written as
211
- # <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>.
212
- # Call
213
- # <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list">
214
- # <code>groupStats.list</code></a> to return a list of groups belonging to
215
- # this project.
210
+ # Replace the data for the specified group.
211
+ # Fails if the group does not exist.
216
212
  #
217
- # Example: <code>projects/my-project-123/groups/my-group</code>
213
+ # @param group [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup | Hash]
214
+ # Required. The group which replaces the resource on the server.
215
+ # A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup`
216
+ # can also be provided.
218
217
  # @param options [Google::Gax::CallOptions]
219
218
  # Overrides the default settings for this call, e.g, timeout,
220
219
  # retries, etc.
@@ -227,27 +226,31 @@ module Google
227
226
  # require "google/cloud/error_reporting"
228
227
  #
229
228
  # error_group_client = Google::Cloud::ErrorReporting::ErrorGroup.new(version: :v1beta1)
230
- # formatted_group_name = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupServiceClient.group_path("[PROJECT]", "[GROUP]")
231
- # response = error_group_client.get_group(formatted_group_name)
229
+ #
230
+ # # TODO: Initialize `group`:
231
+ # group = {}
232
+ # response = error_group_client.update_group(group)
232
233
 
233
- def get_group \
234
- group_name,
234
+ def update_group \
235
+ group,
235
236
  options: nil,
236
237
  &block
237
238
  req = {
238
- group_name: group_name
239
+ group: group
239
240
  }.delete_if { |_, v| v.nil? }
240
- req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::GetGroupRequest)
241
- @get_group.call(req, options, &block)
241
+ req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::UpdateGroupRequest)
242
+ @update_group.call(req, options, &block)
242
243
  end
243
244
 
244
- # Replace the data for the specified group.
245
- # Fails if the group does not exist.
245
+ # Get the specified group.
246
246
  #
247
- # @param group [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup | Hash]
248
- # [Required] The group which replaces the resource on the server.
249
- # A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup`
250
- # can also be provided.
247
+ # @param group_name [String]
248
+ # The group resource name. Written as
249
+ # `projects/{projectID}/groups/{group_name}`. Call
250
+ # [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
251
+ # to return a list of groups belonging to this project.
252
+ #
253
+ # Example: `projects/my-project-123/groups/my-group`
251
254
  # @param options [Google::Gax::CallOptions]
252
255
  # Overrides the default settings for this call, e.g, timeout,
253
256
  # retries, etc.
@@ -260,20 +263,18 @@ module Google
260
263
  # require "google/cloud/error_reporting"
261
264
  #
262
265
  # error_group_client = Google::Cloud::ErrorReporting::ErrorGroup.new(version: :v1beta1)
263
- #
264
- # # TODO: Initialize `group`:
265
- # group = {}
266
- # response = error_group_client.update_group(group)
266
+ # formatted_group_name = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupServiceClient.error_group_path("[PROJECT]", "[GROUP]")
267
+ # response = error_group_client.get_group(formatted_group_name)
267
268
 
268
- def update_group \
269
- group,
269
+ def get_group \
270
+ group_name,
270
271
  options: nil,
271
272
  &block
272
273
  req = {
273
- group: group
274
+ group_name: group_name
274
275
  }.delete_if { |_, v| v.nil? }
275
- req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::UpdateGroupRequest)
276
- @update_group.call(req, options, &block)
276
+ req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::GetGroupRequest)
277
+ @get_group.call(req, options, &block)
277
278
  end
278
279
  end
279
280
  end
@@ -20,12 +20,12 @@
20
20
  }
21
21
  },
22
22
  "methods": {
23
- "GetGroup": {
23
+ "UpdateGroup": {
24
24
  "timeout_millis": 60000,
25
25
  "retry_codes_name": "idempotent",
26
26
  "retry_params_name": "default"
27
27
  },
28
- "UpdateGroup": {
28
+ "GetGroup": {
29
29
  "timeout_millis": 60000,
30
30
  "retry_codes_name": "idempotent",
31
31
  "retry_params_name": "default"
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -165,6 +165,9 @@ module Google
165
165
  google_api_client.freeze
166
166
 
167
167
  headers = { :"x-goog-api-client" => google_api_client }
168
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
169
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
170
+ end
168
171
  headers.merge!(metadata) unless metadata.nil?
169
172
  client_config_file = Pathname.new(__dir__).join(
170
173
  "error_stats_service_client_config.json"
@@ -197,6 +200,14 @@ module Google
197
200
  &Google::Devtools::Clouderrorreporting::V1beta1::ErrorStatsService::Stub.method(:new)
198
201
  )
199
202
 
203
+ @delete_events = Google::Gax.create_api_call(
204
+ @error_stats_service_stub.method(:delete_events),
205
+ defaults["delete_events"],
206
+ exception_transformer: exception_transformer,
207
+ params_extractor: proc do |request|
208
+ {'project_name' => request.project_name}
209
+ end
210
+ )
200
211
  @list_group_stats = Google::Gax.create_api_call(
201
212
  @error_stats_service_stub.method(:list_group_stats),
202
213
  defaults["list_group_stats"],
@@ -213,60 +224,87 @@ module Google
213
224
  {'project_name' => request.project_name}
214
225
  end
215
226
  )
216
- @delete_events = Google::Gax.create_api_call(
217
- @error_stats_service_stub.method(:delete_events),
218
- defaults["delete_events"],
219
- exception_transformer: exception_transformer,
220
- params_extractor: proc do |request|
221
- {'project_name' => request.project_name}
222
- end
223
- )
224
227
  end
225
228
 
226
229
  # Service calls
227
230
 
231
+ # Deletes all error events of a given project.
232
+ #
233
+ # @param project_name [String]
234
+ # Required. The resource name of the Google Cloud Platform project. Written
235
+ # as `projects/` plus the
236
+ # [Google Cloud Platform project
237
+ # ID](https://support.google.com/cloud/answer/6158840).
238
+ # Example: `projects/my-project-123`.
239
+ # @param options [Google::Gax::CallOptions]
240
+ # Overrides the default settings for this call, e.g, timeout,
241
+ # retries, etc.
242
+ # @yield [result, operation] Access the result along with the RPC operation
243
+ # @yieldparam result [Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsResponse]
244
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
245
+ # @return [Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsResponse]
246
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
247
+ # @example
248
+ # require "google/cloud/error_reporting"
249
+ #
250
+ # error_stats_client = Google::Cloud::ErrorReporting::ErrorStats.new(version: :v1beta1)
251
+ # formatted_project_name = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsServiceClient.project_path("[PROJECT]")
252
+ # response = error_stats_client.delete_events(formatted_project_name)
253
+
254
+ def delete_events \
255
+ project_name,
256
+ options: nil,
257
+ &block
258
+ req = {
259
+ project_name: project_name
260
+ }.delete_if { |_, v| v.nil? }
261
+ req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsRequest)
262
+ @delete_events.call(req, options, &block)
263
+ end
264
+
228
265
  # Lists the specified groups.
229
266
  #
230
267
  # @param project_name [String]
231
- # [Required] The resource name of the Google Cloud Platform project. Written
268
+ # Required. The resource name of the Google Cloud Platform project. Written
232
269
  # as <code>projects/</code> plus the
233
270
  # <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
234
271
  # Platform project ID</a>.
235
272
  #
236
273
  # Example: <code>projects/my-project-123</code>.
237
- # @param time_range [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange | Hash]
238
- # [Optional] List data for the given time range.
239
- # If not set a default time range is used. The field time_range_begin
240
- # in the response will specify the beginning of this time range.
241
- # Only <code>ErrorGroupStats</code> with a non-zero count in the given time
242
- # range are returned, unless the request contains an explicit group_id list.
243
- # If a group_id list is given, also <code>ErrorGroupStats</code> with zero
244
- # occurrences are returned.
245
- # A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange`
246
- # can also be provided.
247
274
  # @param group_id [Array<String>]
248
- # [Optional] List all <code>ErrorGroupStats</code> with these IDs.
275
+ # Optional. List all <code>ErrorGroupStats</code> with these IDs.
249
276
  # @param service_filter [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter | Hash]
250
- # [Optional] List only <code>ErrorGroupStats</code> which belong to a service
277
+ # Optional. List only <code>ErrorGroupStats</code> which belong to a service
251
278
  # context that matches the filter.
252
279
  # Data for all service contexts is returned if this field is not specified.
253
280
  # A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter`
254
281
  # can also be provided.
282
+ # @param time_range [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange | Hash]
283
+ # Optional. List data for the given time range.
284
+ # If not set, a default time range is used. The field
285
+ # <code>time_range_begin</code> in the response will specify the beginning
286
+ # of this time range.
287
+ # Only <code>ErrorGroupStats</code> with a non-zero count in the given time
288
+ # range are returned, unless the request contains an explicit
289
+ # <code>group_id</code> list. If a <code>group_id</code> list is given, also
290
+ # <code>ErrorGroupStats</code> with zero occurrences are returned.
291
+ # A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange`
292
+ # can also be provided.
255
293
  # @param timed_count_duration [Google::Protobuf::Duration | Hash]
256
- # [Optional] The preferred duration for a single returned `TimedCount`.
294
+ # Optional. The preferred duration for a single returned `TimedCount`.
257
295
  # If not set, no timed counts are returned.
258
296
  # A hash of the same form as `Google::Protobuf::Duration`
259
297
  # can also be provided.
260
298
  # @param alignment [Google::Devtools::Clouderrorreporting::V1beta1::TimedCountAlignment]
261
- # [Optional] The alignment of the timed counts to be returned.
299
+ # Optional. The alignment of the timed counts to be returned.
262
300
  # Default is `ALIGNMENT_EQUAL_AT_END`.
263
301
  # @param alignment_time [Google::Protobuf::Timestamp | Hash]
264
- # [Optional] Time where the timed counts shall be aligned if rounded
302
+ # Optional. Time where the timed counts shall be aligned if rounded
265
303
  # alignment is chosen. Default is 00:00 UTC.
266
304
  # A hash of the same form as `Google::Protobuf::Timestamp`
267
305
  # can also be provided.
268
306
  # @param order [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroupOrder]
269
- # [Optional] The sort order in which the results are returned.
307
+ # Optional. The sort order in which the results are returned.
270
308
  # Default is `COUNT_DESC`.
271
309
  # @param page_size [Integer]
272
310
  # The maximum number of resources contained in the underlying API
@@ -292,16 +330,13 @@ module Google
292
330
  # error_stats_client = Google::Cloud::ErrorReporting::ErrorStats.new(version: :v1beta1)
293
331
  # formatted_project_name = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsServiceClient.project_path("[PROJECT]")
294
332
  #
295
- # # TODO: Initialize `time_range`:
296
- # time_range = {}
297
- #
298
333
  # # Iterate over all results.
299
- # error_stats_client.list_group_stats(formatted_project_name, time_range).each do |element|
334
+ # error_stats_client.list_group_stats(formatted_project_name).each do |element|
300
335
  # # Process element.
301
336
  # end
302
337
  #
303
338
  # # Or iterate over results one page at a time.
304
- # error_stats_client.list_group_stats(formatted_project_name, time_range).each_page do |page|
339
+ # error_stats_client.list_group_stats(formatted_project_name).each_page do |page|
305
340
  # # Process each page at a time.
306
341
  # page.each do |element|
307
342
  # # Process element.
@@ -310,9 +345,9 @@ module Google
310
345
 
311
346
  def list_group_stats \
312
347
  project_name,
313
- time_range,
314
348
  group_id: nil,
315
349
  service_filter: nil,
350
+ time_range: nil,
316
351
  timed_count_duration: nil,
317
352
  alignment: nil,
318
353
  alignment_time: nil,
@@ -322,9 +357,9 @@ module Google
322
357
  &block
323
358
  req = {
324
359
  project_name: project_name,
325
- time_range: time_range,
326
360
  group_id: group_id,
327
361
  service_filter: service_filter,
362
+ time_range: time_range,
328
363
  timed_count_duration: timed_count_duration,
329
364
  alignment: alignment,
330
365
  alignment_time: alignment_time,
@@ -338,21 +373,21 @@ module Google
338
373
  # Lists the specified events.
339
374
  #
340
375
  # @param project_name [String]
341
- # [Required] The resource name of the Google Cloud Platform project. Written
376
+ # Required. The resource name of the Google Cloud Platform project. Written
342
377
  # as `projects/` plus the
343
378
  # [Google Cloud Platform project
344
379
  # ID](https://support.google.com/cloud/answer/6158840).
345
380
  # Example: `projects/my-project-123`.
346
381
  # @param group_id [String]
347
- # [Required] The group for which events shall be returned.
382
+ # Required. The group for which events shall be returned.
348
383
  # @param service_filter [Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter | Hash]
349
- # [Optional] List only ErrorGroups which belong to a service context that
384
+ # Optional. List only ErrorGroups which belong to a service context that
350
385
  # matches the filter.
351
386
  # Data for all service contexts is returned if this field is not specified.
352
387
  # A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::ServiceContextFilter`
353
388
  # can also be provided.
354
389
  # @param time_range [Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange | Hash]
355
- # [Optional] List only data for the given time range.
390
+ # Optional. List only data for the given time range.
356
391
  # If not set a default time range is used. The field time_range_begin
357
392
  # in the response will specify the beginning of this time range.
358
393
  # A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::QueryTimeRange`
@@ -415,40 +450,6 @@ module Google
415
450
  req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::ListEventsRequest)
416
451
  @list_events.call(req, options, &block)
417
452
  end
418
-
419
- # Deletes all error events of a given project.
420
- #
421
- # @param project_name [String]
422
- # [Required] The resource name of the Google Cloud Platform project. Written
423
- # as `projects/` plus the
424
- # [Google Cloud Platform project
425
- # ID](https://support.google.com/cloud/answer/6158840).
426
- # Example: `projects/my-project-123`.
427
- # @param options [Google::Gax::CallOptions]
428
- # Overrides the default settings for this call, e.g, timeout,
429
- # retries, etc.
430
- # @yield [result, operation] Access the result along with the RPC operation
431
- # @yieldparam result [Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsResponse]
432
- # @yieldparam operation [GRPC::ActiveCall::Operation]
433
- # @return [Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsResponse]
434
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
435
- # @example
436
- # require "google/cloud/error_reporting"
437
- #
438
- # error_stats_client = Google::Cloud::ErrorReporting::ErrorStats.new(version: :v1beta1)
439
- # formatted_project_name = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsServiceClient.project_path("[PROJECT]")
440
- # response = error_stats_client.delete_events(formatted_project_name)
441
-
442
- def delete_events \
443
- project_name,
444
- options: nil,
445
- &block
446
- req = {
447
- project_name: project_name
448
- }.delete_if { |_, v| v.nil? }
449
- req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsRequest)
450
- @delete_events.call(req, options, &block)
451
- end
452
453
  end
453
454
  end
454
455
  end
@@ -20,17 +20,17 @@
20
20
  }
21
21
  },
22
22
  "methods": {
23
- "ListGroupStats": {
23
+ "DeleteEvents": {
24
24
  "timeout_millis": 60000,
25
25
  "retry_codes_name": "idempotent",
26
26
  "retry_params_name": "default"
27
27
  },
28
- "ListEvents": {
28
+ "ListGroupStats": {
29
29
  "timeout_millis": 60000,
30
30
  "retry_codes_name": "idempotent",
31
31
  "retry_params_name": "default"
32
32
  },
33
- "DeleteEvents": {
33
+ "ListEvents": {
34
34
  "timeout_millis": 60000,
35
35
  "retry_codes_name": "idempotent",
36
36
  "retry_params_name": "default"
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -151,6 +151,9 @@ module Google
151
151
  google_api_client.freeze
152
152
 
153
153
  headers = { :"x-goog-api-client" => google_api_client }
154
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
155
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
156
+ end
154
157
  headers.merge!(metadata) unless metadata.nil?
155
158
  client_config_file = Pathname.new(__dir__).join(
156
159
  "report_errors_service_client_config.json"
@@ -196,22 +199,22 @@ module Google
196
199
 
197
200
  # Report an individual error event.
198
201
  #
199
- # This endpoint accepts <strong>either</strong> an OAuth token,
200
- # <strong>or</strong> an
201
- # <a href="https://support.google.com/cloud/answer/6158862">API key</a>
202
+ # This endpoint accepts **either** an OAuth token,
203
+ # **or** an [API key](https://support.google.com/cloud/answer/6158862)
202
204
  # for authentication. To use an API key, append it to the URL as the value of
203
205
  # a `key` parameter. For example:
204
- # <pre>POST
205
- # https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre>
206
+ #
207
+ # `POST
208
+ # https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456`
206
209
  #
207
210
  # @param project_name [String]
208
- # [Required] The resource name of the Google Cloud Platform project. Written
211
+ # Required. The resource name of the Google Cloud Platform project. Written
209
212
  # as `projects/` plus the
210
213
  # [Google Cloud Platform project
211
214
  # ID](https://support.google.com/cloud/answer/6158840). Example:
212
215
  # `projects/my-project-123`.
213
216
  # @param event [Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent | Hash]
214
- # [Required] The error event to be reported.
217
+ # Required. The error event to be reported.
215
218
  # A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::ReportedErrorEvent`
216
219
  # can also be provided.
217
220
  # @param options [Google::Gax::CallOptions]
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module ErrorReporting
19
- VERSION = "0.34.0".freeze
19
+ VERSION = "0.35.2".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -5,7 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
- require 'google/api/monitored_resource_pb'
8
+ require 'google/api/resource_pb'
9
9
  require 'google/protobuf/timestamp_pb'
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_message "google.devtools.clouderrorreporting.v1beta1.ErrorGroup" do
@@ -5,6 +5,9 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
8
11
  require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
9
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
13
  add_message "google.devtools.clouderrorreporting.v1beta1.GetGroupRequest" do
@@ -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.devtools.clouderrorreporting.v1beta1'
3
3
  # Original file comments:
4
- # Copyright 2016 Google Inc.
4
+ # Copyright 2019 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,6 +15,7 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
+ #
18
19
 
19
20
 
20
21
  require 'grpc'
@@ -5,6 +5,9 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
8
11
  require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
9
12
  require 'google/protobuf/duration_pb'
10
13
  require 'google/protobuf/timestamp_pb'
@@ -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.devtools.clouderrorreporting.v1beta1'
3
3
  # Original file comments:
4
- # Copyright 2016 Google Inc.
4
+ # Copyright 2019 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,6 +15,7 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
+ #
18
19
 
19
20
 
20
21
  require 'grpc'
@@ -5,6 +5,9 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
8
11
  require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
9
12
  require 'google/protobuf/timestamp_pb'
10
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -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.devtools.clouderrorreporting.v1beta1'
3
3
  # Original file comments:
4
- # Copyright 2016 Google Inc.
4
+ # Copyright 2019 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,6 +15,7 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
+ #
18
19
 
19
20
 
20
21
  require 'grpc'
@@ -36,13 +37,13 @@ module Google
36
37
 
37
38
  # Report an individual error event.
38
39
  #
39
- # This endpoint accepts <strong>either</strong> an OAuth token,
40
- # <strong>or</strong> an
41
- # <a href="https://support.google.com/cloud/answer/6158862">API key</a>
40
+ # This endpoint accepts **either** an OAuth token,
41
+ # **or** an [API key](https://support.google.com/cloud/answer/6158862)
42
42
  # for authentication. To use an API key, append it to the URL as the value of
43
43
  # a `key` parameter. For example:
44
- # <pre>POST
45
- # https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456</pre>
44
+ #
45
+ # `POST
46
+ # https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456`
46
47
  rpc :ReportErrorEvent, ReportErrorEventRequest, ReportErrorEventResponse
47
48
  end
48
49
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-error_reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.35.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-11 00:00:00.000000000 Z
11
+ date: 2020-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -126,14 +126,14 @@ dependencies:
126
126
  requirements:
127
127
  - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: '5.10'
129
+ version: '5.14'
130
130
  type: :development
131
131
  prerelease: false
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - "~>"
135
135
  - !ruby/object:Gem::Version
136
- version: '5.10'
136
+ version: '5.14'
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: minitest-autotest
139
139
  requirement: !ruby/object:Gem::Requirement
@@ -328,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
328
  - !ruby/object:Gem::Version
329
329
  version: '0'
330
330
  requirements: []
331
- rubygems_version: 3.0.6
331
+ rubygems_version: 3.1.3
332
332
  signing_key:
333
333
  specification_version: 4
334
334
  summary: API Client library for Stackdriver Error Reporting