Skip to content

Commit

Permalink
chore: Re-generated to pick up changes from googleapis. (#87)
Browse files Browse the repository at this point in the history
* fix: remove client recv msg limit fix: add enums to `types/__init__.py`

PiperOrigin-RevId: 347055288

Source-Author: Google APIs <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <8822365+busunkim96@users.noreply.github.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <noreply@google.com>
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 <sanche@google.com>
  • Loading branch information
yoshi-automation and daniel-sanche authored Mar 31, 2021
1 parent ed52ba6 commit 3f3e5ad
Show file tree
Hide file tree
Showing 34 changed files with 1,141 additions and 522 deletions.
22 changes: 3 additions & 19 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
# -*- coding: utf-8 -*-
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generated by synthtool. DO NOT EDIT!
[run]
branch = True

[report]
fail_under = 100
show_missing = True
omit = google/cloud/errorreporting/__init__.py, .nox/*
omit =
google/cloud/errorreporting/__init__.py
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
Expand All @@ -31,4 +15,4 @@ exclude_lines =
# This is added at the module level as a safeguard for if someone
# generates the code and tries to run it without pip installing. This
# makes it virtually impossible to test properly.
except pkg_resources.DistributionNotFound
except pkg_resources.DistributionNotFound
6 changes: 6 additions & 0 deletions docs/errorreporting_v1beta1/error_group_service.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ErrorGroupService
-----------------------------------

.. automodule:: google.cloud.errorreporting_v1beta1.services.error_group_service
:members:
:inherited-members:
11 changes: 11 additions & 0 deletions docs/errorreporting_v1beta1/error_stats_service.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ErrorStatsService
-----------------------------------

.. automodule:: google.cloud.errorreporting_v1beta1.services.error_stats_service
:members:
:inherited-members:


.. automodule:: google.cloud.errorreporting_v1beta1.services.error_stats_service.pagers
:members:
:inherited-members:
6 changes: 6 additions & 0 deletions docs/errorreporting_v1beta1/report_errors_service.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ReportErrorsService
-------------------------------------

.. automodule:: google.cloud.errorreporting_v1beta1.services.report_errors_service
:members:
:inherited-members:
14 changes: 5 additions & 9 deletions docs/errorreporting_v1beta1/services.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
Services for Google Cloud Errorreporting v1beta1 API
====================================================
.. toctree::
:maxdepth: 2

.. automodule:: google.cloud.errorreporting_v1beta1.services.error_group_service
:members:
:inherited-members:
.. automodule:: google.cloud.errorreporting_v1beta1.services.error_stats_service
:members:
:inherited-members:
.. automodule:: google.cloud.errorreporting_v1beta1.services.report_errors_service
:members:
:inherited-members:
error_group_service
error_stats_service
report_errors_service
1 change: 1 addition & 0 deletions docs/errorreporting_v1beta1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ Types for Google Cloud Errorreporting v1beta1 API

.. automodule:: google.cloud.errorreporting_v1beta1.types
:members:
:undoc-members:
:show-inheritance:
6 changes: 4 additions & 2 deletions google/cloud/errorreporting_v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from .types.common import ErrorEvent
from .types.common import ErrorGroup
from .types.common import HttpRequestContext
from .types.common import ResolutionStatus
from .types.common import ServiceContext
from .types.common import SourceLocation
from .types.common import TrackingIssue
Expand Down Expand Up @@ -51,6 +52,7 @@
"ErrorEvent",
"ErrorGroup",
"ErrorGroupOrder",
"ErrorGroupServiceClient",
"ErrorGroupStats",
"ErrorStatsServiceClient",
"GetGroupRequest",
Expand All @@ -62,14 +64,14 @@
"QueryTimeRange",
"ReportErrorEventRequest",
"ReportErrorEventResponse",
"ReportErrorsServiceClient",
"ReportedErrorEvent",
"ResolutionStatus",
"ServiceContext",
"ServiceContextFilter",
"SourceLocation",
"TimedCount",
"TimedCountAlignment",
"TrackingIssue",
"UpdateGroupRequest",
"ErrorGroupServiceClient",
"ReportErrorsServiceClient",
)
31 changes: 28 additions & 3 deletions google/cloud/errorreporting_v1beta1/proto/common.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -16,9 +16,9 @@ syntax = "proto3";

package google.devtools.clouderrorreporting.v1beta1;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.ErrorReporting.V1Beta1";
Expand All @@ -37,7 +37,7 @@ message ErrorGroup {
};

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

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

// Associated tracking issues.
repeated TrackingIssue tracking_issues = 3;

// Error group's resolution status.
// An unspecified resolution status will be interpreted as OPEN
ResolutionStatus resolution_status = 5;
}

// Information related to tracking the progress on resolving the error.
Expand Down Expand Up @@ -169,3 +173,24 @@ message SourceLocation {
// For example, `my.package.MyClass.method` in case of Java.
string function_name = 4;
}

// Resolution status of an error group.
enum ResolutionStatus {
// Status is unknown. When left unspecified in requests, it is treated like
// OPEN.
RESOLUTION_STATUS_UNSPECIFIED = 0;

// The error group is not being addressed. This is the default for
// new groups. It is also used for errors re-occurring after marked RESOLVED.
OPEN = 1;

// Error Group manually acknowledged, it can have an issue link attached.
ACKNOWLEDGED = 2;

// Error Group manually resolved, more events for this group are not expected
// to occur.
RESOLVED = 3;

// The error group is muted and excluded by default on group stats requests.
MUTED = 4;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

Expand Down Expand Up @@ -58,7 +57,7 @@ service ErrorGroupService {

// A request to return an individual group.
message GetGroupRequest {
// The group resource name. Written as
// Required. The group resource name. Written as
// `projects/{projectID}/groups/{group_name}`. Call
// [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list)
// to return a list of groups belonging to this project.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

Expand Down Expand Up @@ -68,11 +67,11 @@ service ErrorStatsService {
// Specifies a set of `ErrorGroupStats` to return.
message ListGroupStatsRequest {
// Required. The resource name of the Google Cloud Platform project. Written
// as <code>projects/</code> plus the
// <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
// Platform project ID</a>.
// as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}`
// and `{projectNumber}` can be found in the
// [Google Cloud Console](https://support.google.com/cloud/answer/6158840).
//
// Example: <code>projects/my-project-123</code>.
// Examples: `projects/my-project-123`, `projects/5551234`.
string project_name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down Expand Up @@ -258,9 +257,10 @@ enum ErrorGroupOrder {
// Specifies a set of error events to return.
message ListEventsRequest {
// Required. The resource name of the Google Cloud Platform project. Written
// as `projects/` plus the
// as `projects/{projectID}`, where `{projectID}` is the
// [Google Cloud Platform project
// ID](https://support.google.com/cloud/answer/6158840).
//
// Example: `projects/my-project-123`.
string project_name = 1 [
(google.api.field_behavior) = REQUIRED,
Expand Down Expand Up @@ -357,9 +357,10 @@ message ServiceContextFilter {
// Deletes all events in the project.
message DeleteEventsRequest {
// Required. The resource name of the Google Cloud Platform project. Written
// as `projects/` plus the
// as `projects/{projectID}`, where `{projectID}` is the
// [Google Cloud Platform project
// ID](https://support.google.com/cloud/answer/6158840).
//
// Example: `projects/my-project-123`.
string project_name = 1 [
(google.api.field_behavior) = REQUIRED,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

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

// Report an individual error event.
// Report an individual error event and record the event to a log.
//
// This endpoint accepts **either** an OAuth token,
// **or** an [API key](https://support.google.com/cloud/answer/6158862)
// for authentication. To use an API key, append it to the URL as the value of
// a `key` parameter. For example:
//
// `POST
// https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456`
// https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456`
//
// **Note:** [Error Reporting](/error-reporting) is a global service built
// on Cloud Logging and doesn't analyze logs stored
// in regional log buckets or logs routed to other Google Cloud projects.
//
// For more information, see
// [Using Error Reporting with regionalized
// logs](/error-reporting/docs/regionalization).
rpc ReportErrorEvent(ReportErrorEventRequest) returns (ReportErrorEventResponse) {
option (google.api.http) = {
post: "/v1beta1/{project_name=projects/*}/events:report"
Expand All @@ -59,10 +66,11 @@ service ReportErrorsService {
// A request for reporting an individual error event.
message ReportErrorEventRequest {
// Required. The resource name of the Google Cloud Platform project. Written
// as `projects/` plus the
// as `projects/{projectId}`, where `{projectId}` is the
// [Google Cloud Platform project
// ID](https://support.google.com/cloud/answer/6158840). Example:
// `projects/my-project-123`.
// ID](https://support.google.com/cloud/answer/6158840).
//
// Example: // `projects/my-project-123`.
string project_name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down
Loading

0 comments on commit 3f3e5ad

Please sign in to comment.