Skip to content

Commit 3f3e5ad

Browse files
chore: Re-generated to pick up changes from googleapis. (#87)
* fix: remove client recv msg limit fix: add enums to `types/__init__.py` PiperOrigin-RevId: 347055288 Source-Author: Google APIs <[email protected]> Source-Date: Fri Dec 11 12:44:37 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: dd372aa22ded7a8ba6f0e03a80e06358a3fa0907 Source-Link: googleapis/googleapis@dd372aa * docs: put FPS table in code block PiperOrigin-RevId: 348857882 Source-Author: Google APIs <[email protected]> Source-Date: Wed Dec 23 15:47:05 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 2ccf8f460800e98884d1aa4ba61e344ad4cd5d04 Source-Link: googleapis/googleapis@2ccf8f4 * chore: upgrade gapic-generator-python to 0.39.1 feat: add 'from_service_account_info' factory to clients fix: fix sphinx identifiers PiperOrigin-RevId: 350246057 Source-Author: Google APIs <[email protected]> Source-Date: Tue Jan 5 16:44:11 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 520682435235d9c503983a360a2090025aa47cd1 Source-Link: googleapis/googleapis@5206824 * chore: Update C# namespace This is a breaking change, but *only* for C#. Google has not yet published a package for this API, so it would only break users who have generated the code themselves. PiperOrigin-RevId: 350388717 Source-Author: Google APIs <[email protected]> Source-Date: Wed Jan 6 11:04:54 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: dd1d2325b189d3bb69c4a6a802185cefbd8e592e Source-Link: googleapis/googleapis@dd1d232 * chore: put markdown table in a codeblock PiperOrigin-RevId: 350414815 Source-Author: Google APIs <[email protected]> Source-Date: Wed Jan 6 13:18:46 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 700afd1f0bafc2155bc5e891504c53d4ac9166f5 Source-Link: googleapis/googleapis@700afd1 * chore: use name google.cloud.bigquery_storage namespace to avoid conflicts with google.cloud.bigquery PiperOrigin-RevId: 351218127 Source-Author: Google APIs <[email protected]> Source-Date: Mon Jan 11 13:04:39 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: c8bfd324b41ad1f6f65fed124572f92fe116517b Source-Link: googleapis/googleapis@c8bfd32 * feat: add C++ targets for DialogFlow PiperOrigin-RevId: 351615861 Source-Author: Google APIs <[email protected]> Source-Date: Wed Jan 13 10:31:46 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: a515fa4183cb95089af55020ab547081714c5a7b Source-Link: googleapis/googleapis@a515fa4 * feat: added client library for Workflows Executions V1 API PiperOrigin-RevId: 351618705 Source-Author: Google APIs <[email protected]> Source-Date: Wed Jan 13 10:45:45 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 98911d3e77f3d541eaa841252a44905ea4a430ab Source-Link: googleapis/googleapis@98911d3 * chore: migrate texttospeech v1beta1 to python microgenerator PiperOrigin-RevId: 352645446 Source-Author: Google APIs <[email protected]> Source-Date: Tue Jan 19 13:45:56 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 4d19fc01775b142dd392f4bd82bdf8810202d061 Source-Link: googleapis/googleapis@4d19fc0 * chore: update Go generator, rules_go, and protobuf PiperOrigin-RevId: 352816749 Source-Author: Google APIs <[email protected]> Source-Date: Wed Jan 20 10:06:23 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: ceaaf31b3d13badab7cf9d3b570f5639db5593d9 Source-Link: googleapis/googleapis@ceaaf31 * chore: upgrade gapic-generator-python to 0.40.5 PiperOrigin-RevId: 354996675 Source-Author: Google APIs <[email protected]> Source-Date: Mon Feb 1 12:11:49 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 20712b8fe95001b312f62c6c5f33e3e3ec92cfaf Source-Link: googleapis/googleapis@20712b8 * feat: Add Pub/Sub endpoints for Cloud Channel API. PiperOrigin-RevId: 355059873 Source-Author: Google APIs <[email protected]> Source-Date: Mon Feb 1 17:13:22 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 6ef9eaea379fc1cc0355e06a5a20b594543ee693 Source-Link: googleapis/googleapis@6ef9eae * fix: add proto opts & bazel targets to metadata PiperOrigin-RevId: 355748843 Source-Author: Google APIs <[email protected]> Source-Date: Thu Feb 4 17:39:02 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: dccd3ea36ba19b88b978c521f5088eddd087c414 Source-Link: googleapis/googleapis@dccd3ea * build: change package name to correct name PiperOrigin-RevId: 355768365 Source-Author: Google APIs <[email protected]> Source-Date: Thu Feb 4 20:11:22 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: bb17e41ec1e9f1197520560bc13cc5da24e04e6f Source-Link: googleapis/googleapis@bb17e41 * fix: Update bazel builds for ER client libraries. PiperOrigin-RevId: 355832930 Source-Author: Google APIs <[email protected]> Source-Date: Fri Feb 5 05:42:21 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 408590478542a058f2f1a706a402beb44844f66b Source-Link: googleapis/googleapis@4085904 * fix: Fix constraint resource pattern annotation PiperOrigin-RevId: 355915985 Source-Author: Google APIs <[email protected]> Source-Date: Fri Feb 5 13:27:16 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 35ce99fec72979f6f9b2a5adae835a49648a3231 Source-Link: googleapis/googleapis@35ce99f * chore: update gapic-generator-python PiperOrigin-RevId: 355923884 Source-Author: Google APIs <[email protected]> Source-Date: Fri Feb 5 14:04:52 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 5e3dacee19405529b841b53797df799c2383536c Source-Link: googleapis/googleapis@5e3dace * chore(python): include py.typed files in release A py.typed file must be included in the released package for it to be considered typed by type checkers. https://www.python.org/dev/peps/pep-0561/#packaging-type-information. See googleapis/python-secret-manager#79 Source-Author: Bu Sun Kim <[email protected]> Source-Date: Fri Feb 5 17:32:06 2021 -0700 Source-Repo: googleapis/synthtool Source-Sha: 33366574ffb9e11737b3547eb6f020ecae0536e8 Source-Link: googleapis/synthtool@3336657 * feat: Make resolution status field available for error groups. Now callers can set the status of an error group by passing this to UpdateGroup. When not specified, it's treated like OPEN. feat: Make source location available for error groups created from GAE. PiperOrigin-RevId: 356330876 Source-Author: Google APIs <[email protected]> Source-Date: Mon Feb 8 12:48:44 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: c1e59709c1d28795fe9b70eb479579556056bfad Source-Link: googleapis/googleapis@c1e5970 * fix: Remove dependency on AppEngine's proto definitions. This also removes the source_references field. PiperOrigin-RevId: 356540804 Source-Author: Google APIs <[email protected]> Source-Date: Tue Feb 9 10:53:59 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 4f60776fe99f1fd8261b6a0493a5f5f4d7e8d969 Source-Link: googleapis/googleapis@4f60776 * docs: Update rules for currency_code in budget_amount. PiperOrigin-RevId: 357051517 Source-Author: Google APIs <[email protected]> Source-Date: Thu Feb 11 13:54:03 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: f3a60f63c13fb434745ea59b990a82d6ffc803b5 Source-Link: googleapis/googleapis@f3a60f6 * feat: Update documentai/v1beta3 protos: add support for boolean normalized value PiperOrigin-RevId: 359109762 Source-Author: Google APIs <[email protected]> Source-Date: Tue Feb 23 12:45:26 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 8c058c505afc717966bc815075bdd11ff76618e5 Source-Link: googleapis/googleapis@8c058c5 * chore: update gapic-generator-python to 0.40.11 PiperOrigin-RevId: 359562873 Source-Author: Google APIs <[email protected]> Source-Date: Thu Feb 25 10:52:32 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 07932bb995e7dc91b43620ea8402c6668c7d102c Source-Link: googleapis/googleapis@07932bb * chore: clean up unused gapic.legacy.yaml files Committer: @miraleung PiperOrigin-RevId: 359580699 Source-Author: Google APIs <[email protected]> Source-Date: Thu Feb 25 12:03:52 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: d9b32e92fa57c37e5af0dc03badfe741170c5849 Source-Link: googleapis/googleapis@d9b32e9 * chore: update protobuf v3.15.3 This release makes --experimental_allow_proto3_optional no longer necessary. PiperOrigin-RevId: 359781040 Source-Author: Google APIs <[email protected]> Source-Date: Fri Feb 26 09:59:49 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: f6dd7e47620566925a4b3f1ce029e74e1b2f2516 Source-Link: googleapis/googleapis@f6dd7e4 Co-authored-by: Daniel Sanche <[email protected]>
1 parent ed52ba6 commit 3f3e5ad

34 files changed

+1141
-522
lines changed

.coveragerc

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
1-
# -*- coding: utf-8 -*-
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-
# Generated by synthtool. DO NOT EDIT!
181
[run]
192
branch = True
203

214
[report]
225
fail_under = 100
236
show_missing = True
24-
omit = google/cloud/errorreporting/__init__.py, .nox/*
7+
omit =
8+
google/cloud/errorreporting/__init__.py
259
exclude_lines =
2610
# Re-enable the standard pragma
2711
pragma: NO COVER
@@ -31,4 +15,4 @@ exclude_lines =
3115
# This is added at the module level as a safeguard for if someone
3216
# generates the code and tries to run it without pip installing. This
3317
# makes it virtually impossible to test properly.
34-
except pkg_resources.DistributionNotFound
18+
except pkg_resources.DistributionNotFound
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ErrorGroupService
2+
-----------------------------------
3+
4+
.. automodule:: google.cloud.errorreporting_v1beta1.services.error_group_service
5+
:members:
6+
:inherited-members:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ErrorStatsService
2+
-----------------------------------
3+
4+
.. automodule:: google.cloud.errorreporting_v1beta1.services.error_stats_service
5+
:members:
6+
:inherited-members:
7+
8+
9+
.. automodule:: google.cloud.errorreporting_v1beta1.services.error_stats_service.pagers
10+
:members:
11+
:inherited-members:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ReportErrorsService
2+
-------------------------------------
3+
4+
.. automodule:: google.cloud.errorreporting_v1beta1.services.report_errors_service
5+
:members:
6+
:inherited-members:
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
Services for Google Cloud Errorreporting v1beta1 API
22
====================================================
3+
.. toctree::
4+
:maxdepth: 2
35

4-
.. automodule:: google.cloud.errorreporting_v1beta1.services.error_group_service
5-
:members:
6-
:inherited-members:
7-
.. automodule:: google.cloud.errorreporting_v1beta1.services.error_stats_service
8-
:members:
9-
:inherited-members:
10-
.. automodule:: google.cloud.errorreporting_v1beta1.services.report_errors_service
11-
:members:
12-
:inherited-members:
6+
error_group_service
7+
error_stats_service
8+
report_errors_service

docs/errorreporting_v1beta1/types.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ Types for Google Cloud Errorreporting v1beta1 API
33

44
.. automodule:: google.cloud.errorreporting_v1beta1.types
55
:members:
6+
:undoc-members:
67
:show-inheritance:

google/cloud/errorreporting_v1beta1/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from .types.common import ErrorEvent
2323
from .types.common import ErrorGroup
2424
from .types.common import HttpRequestContext
25+
from .types.common import ResolutionStatus
2526
from .types.common import ServiceContext
2627
from .types.common import SourceLocation
2728
from .types.common import TrackingIssue
@@ -51,6 +52,7 @@
5152
"ErrorEvent",
5253
"ErrorGroup",
5354
"ErrorGroupOrder",
55+
"ErrorGroupServiceClient",
5456
"ErrorGroupStats",
5557
"ErrorStatsServiceClient",
5658
"GetGroupRequest",
@@ -62,14 +64,14 @@
6264
"QueryTimeRange",
6365
"ReportErrorEventRequest",
6466
"ReportErrorEventResponse",
65-
"ReportErrorsServiceClient",
6667
"ReportedErrorEvent",
68+
"ResolutionStatus",
6769
"ServiceContext",
6870
"ServiceContextFilter",
6971
"SourceLocation",
7072
"TimedCount",
7173
"TimedCountAlignment",
7274
"TrackingIssue",
7375
"UpdateGroupRequest",
74-
"ErrorGroupServiceClient",
76+
"ReportErrorsServiceClient",
7577
)

google/cloud/errorreporting_v1beta1/proto/common.proto

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -16,9 +16,9 @@ syntax = "proto3";
1616

1717
package google.devtools.clouderrorreporting.v1beta1;
1818

19-
import "google/api/annotations.proto";
2019
import "google/api/resource.proto";
2120
import "google/protobuf/timestamp.proto";
21+
import "google/api/annotations.proto";
2222

2323
option cc_enable_arenas = true;
2424
option csharp_namespace = "Google.Cloud.ErrorReporting.V1Beta1";
@@ -37,7 +37,7 @@ message ErrorGroup {
3737
};
3838

3939
// The group resource name.
40-
// Example: <code>projects/my-project-123/groups/my-groupid</code>
40+
// Example: <code>projects/my-project-123/groups/CNSgkpnppqKCUw</code>
4141
string name = 1;
4242

4343
// Group IDs are unique for a given project. If the same kind of error
@@ -46,6 +46,10 @@ message ErrorGroup {
4646

4747
// Associated tracking issues.
4848
repeated TrackingIssue tracking_issues = 3;
49+
50+
// Error group's resolution status.
51+
// An unspecified resolution status will be interpreted as OPEN
52+
ResolutionStatus resolution_status = 5;
4953
}
5054

5155
// Information related to tracking the progress on resolving the error.
@@ -169,3 +173,24 @@ message SourceLocation {
169173
// For example, `my.package.MyClass.method` in case of Java.
170174
string function_name = 4;
171175
}
176+
177+
// Resolution status of an error group.
178+
enum ResolutionStatus {
179+
// Status is unknown. When left unspecified in requests, it is treated like
180+
// OPEN.
181+
RESOLUTION_STATUS_UNSPECIFIED = 0;
182+
183+
// The error group is not being addressed. This is the default for
184+
// new groups. It is also used for errors re-occurring after marked RESOLVED.
185+
OPEN = 1;
186+
187+
// Error Group manually acknowledged, it can have an issue link attached.
188+
ACKNOWLEDGED = 2;
189+
190+
// Error Group manually resolved, more events for this group are not expected
191+
// to occur.
192+
RESOLVED = 3;
193+
194+
// The error group is muted and excluded by default on group stats requests.
195+
MUTED = 4;
196+
}

google/cloud/errorreporting_v1beta1/proto/error_group_service.proto

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

@@ -58,7 +57,7 @@ service ErrorGroupService {
5857

5958
// A request to return an individual group.
6059
message GetGroupRequest {
61-
// The group resource name. Written as
60+
// Required. The group resource name. Written as
6261
// `projects/{projectID}/groups/{group_name}`. Call
6362
// [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
6463
// to return a list of groups belonging to this project.

google/cloud/errorreporting_v1beta1/proto/error_stats_service.proto

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

@@ -68,11 +67,11 @@ service ErrorStatsService {
6867
// Specifies a set of `ErrorGroupStats` to return.
6968
message ListGroupStatsRequest {
7069
// Required. The resource name of the Google Cloud Platform project. Written
71-
// as <code>projects/</code> plus the
72-
// <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
73-
// Platform project ID</a>.
70+
// as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
71+
// and `{projectNumber}` can be found in the
72+
// [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
7473
//
75-
// Example: <code>projects/my-project-123</code>.
74+
// Examples: `projects/my-project-123`, `projects/5551234`.
7675
string project_name = 1 [
7776
(google.api.field_behavior) = REQUIRED,
7877
(google.api.resource_reference) = {
@@ -258,9 +257,10 @@ enum ErrorGroupOrder {
258257
// Specifies a set of error events to return.
259258
message ListEventsRequest {
260259
// Required. The resource name of the Google Cloud Platform project. Written
261-
// as `projects/` plus the
260+
// as `projects/{projectID}`, where `{projectID}` is the
262261
// [Google Cloud Platform project
263262
// ID](https://support.google.com/cloud/answer/6158840).
263+
//
264264
// Example: `projects/my-project-123`.
265265
string project_name = 1 [
266266
(google.api.field_behavior) = REQUIRED,
@@ -357,9 +357,10 @@ message ServiceContextFilter {
357357
// Deletes all events in the project.
358358
message DeleteEventsRequest {
359359
// Required. The resource name of the Google Cloud Platform project. Written
360-
// as `projects/` plus the
360+
// as `projects/{projectID}`, where `{projectID}` is the
361361
// [Google Cloud Platform project
362362
// ID](https://support.google.com/cloud/answer/6158840).
363+
//
363364
// Example: `projects/my-project-123`.
364365
string project_name = 1 [
365366
(google.api.field_behavior) = REQUIRED,

google/cloud/errorreporting_v1beta1/proto/report_errors_service.proto

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

@@ -38,15 +37,23 @@ service ReportErrorsService {
3837
option (google.api.default_host) = "clouderrorreporting.googleapis.com";
3938
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
4039

41-
// Report an individual error event.
40+
// Report an individual error event and record the event to a log.
4241
//
4342
// This endpoint accepts **either** an OAuth token,
4443
// **or** an [API key](https://support.google.com/cloud/answer/6158862)
4544
// for authentication. To use an API key, append it to the URL as the value of
4645
// a `key` parameter. For example:
4746
//
4847
// `POST
49-
// https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456`
48+
// https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456`
49+
//
50+
// **Note:** [Error Reporting](/error-reporting) is a global service built
51+
// on Cloud Logging and doesn't analyze logs stored
52+
// in regional log buckets or logs routed to other Google Cloud projects.
53+
//
54+
// For more information, see
55+
// [Using Error Reporting with regionalized
56+
// logs](/error-reporting/docs/regionalization).
5057
rpc ReportErrorEvent(ReportErrorEventRequest) returns (ReportErrorEventResponse) {
5158
option (google.api.http) = {
5259
post: "/v1beta1/{project_name=projects/*}/events:report"
@@ -59,10 +66,11 @@ service ReportErrorsService {
5966
// A request for reporting an individual error event.
6067
message ReportErrorEventRequest {
6168
// Required. The resource name of the Google Cloud Platform project. Written
62-
// as `projects/` plus the
69+
// as `projects/{projectId}`, where `{projectId}` is the
6370
// [Google Cloud Platform project
64-
// ID](https://support.google.com/cloud/answer/6158840). Example:
65-
// `projects/my-project-123`.
71+
// ID](https://support.google.com/cloud/answer/6158840).
72+
//
73+
// Example: // `projects/my-project-123`.
6674
string project_name = 1 [
6775
(google.api.field_behavior) = REQUIRED,
6876
(google.api.resource_reference) = {

0 commit comments

Comments
 (0)