Skip to content

Commit cfc5fc5

Browse files
yoshi-automationtseaver
authored andcommitted
Pick up stub docstring fix in GAPIC generator. (googleapis#6970)
1 parent ea3420d commit cfc5fc5

File tree

5 files changed

+50
-38
lines changed

5 files changed

+50
-38
lines changed

error_reporting/google/cloud/errorreporting_v1beta1/gapic/enums.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,26 @@
1818
import enum
1919

2020

21+
class ErrorGroupOrder(enum.IntEnum):
22+
"""
23+
A sorting order of error groups.
24+
25+
Attributes:
26+
GROUP_ORDER_UNSPECIFIED (int): No group order specified.
27+
COUNT_DESC (int): Total count of errors in the given time window in descending order.
28+
LAST_SEEN_DESC (int): Timestamp when the group was last seen in the given time window
29+
in descending order.
30+
CREATED_DESC (int): Timestamp when the group was created in descending order.
31+
AFFECTED_USERS_DESC (int): Number of affected users in the given time window in descending order.
32+
"""
33+
34+
GROUP_ORDER_UNSPECIFIED = 0
35+
COUNT_DESC = 1
36+
LAST_SEEN_DESC = 2
37+
CREATED_DESC = 3
38+
AFFECTED_USERS_DESC = 4
39+
40+
2141
class TimedCountAlignment(enum.IntEnum):
2242
"""
2343
Specifies how the time periods of error group counts are aligned.
@@ -41,26 +61,6 @@ class TimedCountAlignment(enum.IntEnum):
4161
ALIGNMENT_EQUAL_AT_END = 2
4262

4363

44-
class ErrorGroupOrder(enum.IntEnum):
45-
"""
46-
A sorting order of error groups.
47-
48-
Attributes:
49-
GROUP_ORDER_UNSPECIFIED (int): No group order specified.
50-
COUNT_DESC (int): Total count of errors in the given time window in descending order.
51-
LAST_SEEN_DESC (int): Timestamp when the group was last seen in the given time window
52-
in descending order.
53-
CREATED_DESC (int): Timestamp when the group was created in descending order.
54-
AFFECTED_USERS_DESC (int): Number of affected users in the given time window in descending order.
55-
"""
56-
57-
GROUP_ORDER_UNSPECIFIED = 0
58-
COUNT_DESC = 1
59-
LAST_SEEN_DESC = 2
60-
CREATED_DESC = 3
61-
AFFECTED_USERS_DESC = 4
62-
63-
6464
class QueryTimeRange(object):
6565
class Period(enum.IntEnum):
6666
"""

error_reporting/google/cloud/errorreporting_v1beta1/gapic/transports/error_group_service_grpc_transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def channel(self):
104104

105105
@property
106106
def get_group(self):
107-
"""Return the gRPC stub for {$apiMethod.name}.
107+
"""Return the gRPC stub for :meth:`ErrorGroupServiceClient.get_group`.
108108
109109
Get the specified group.
110110
@@ -117,7 +117,7 @@ def get_group(self):
117117

118118
@property
119119
def update_group(self):
120-
"""Return the gRPC stub for {$apiMethod.name}.
120+
"""Return the gRPC stub for :meth:`ErrorGroupServiceClient.update_group`.
121121
122122
Replace the data for the specified group.
123123
Fails if the group does not exist.

error_reporting/google/cloud/errorreporting_v1beta1/gapic/transports/error_stats_service_grpc_transport.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def channel(self):
104104

105105
@property
106106
def list_group_stats(self):
107-
"""Return the gRPC stub for {$apiMethod.name}.
107+
"""Return the gRPC stub for :meth:`ErrorStatsServiceClient.list_group_stats`.
108108
109109
Lists the specified groups.
110110
@@ -117,7 +117,7 @@ def list_group_stats(self):
117117

118118
@property
119119
def list_events(self):
120-
"""Return the gRPC stub for {$apiMethod.name}.
120+
"""Return the gRPC stub for :meth:`ErrorStatsServiceClient.list_events`.
121121
122122
Lists the specified events.
123123
@@ -130,7 +130,7 @@ def list_events(self):
130130

131131
@property
132132
def delete_events(self):
133-
"""Return the gRPC stub for {$apiMethod.name}.
133+
"""Return the gRPC stub for :meth:`ErrorStatsServiceClient.delete_events`.
134134
135135
Deletes all error events of a given project.
136136

error_reporting/google/cloud/errorreporting_v1beta1/gapic/transports/report_errors_service_grpc_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def channel(self):
104104

105105
@property
106106
def report_error_event(self):
107-
"""Return the gRPC stub for {$apiMethod.name}.
107+
"""Return the gRPC stub for :meth:`ReportErrorsServiceClient.report_error_event`.
108108
109109
Report an individual error event.
110110

error_reporting/synth.metadata

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,38 @@
11
{
2+
"updateTime": "2018-12-18T13:17:33.308017Z",
23
"sources": [
4+
{
5+
"generator": {
6+
"name": "artman",
7+
"version": "0.16.3",
8+
"dockerImage": "googleapis/artman@sha256:bfb92654b4a77368471f70e2808eaf4e60f263b9559f27bb3284097322787bf1"
9+
}
10+
},
311
{
412
"git": {
513
"name": "googleapis",
614
"remote": "https://github.com/googleapis/googleapis.git",
7-
"sha": "5a57f0c13a358b2b15452bf2d67453774a5f6d4f",
8-
"internalRef": "221837528"
15+
"sha": "c04bc0dc0a9164d924a9ab923fd6845b4ae6a7ab",
16+
"internalRef": "225851467"
917
}
1018
},
1119
{
12-
"git": {
13-
"name": "googleapis-private",
14-
"remote": "https://github.com/googleapis/googleapis-private.git",
15-
"sha": "6aa8e1a447bb8d0367150356a28cb4d3f2332641",
16-
"internalRef": "221340946"
20+
"template": {
21+
"name": "python_library",
22+
"origin": "synthtool.gcp",
23+
"version": "2018.12.6"
1724
}
18-
},
25+
}
26+
],
27+
"destinations": [
1928
{
20-
"generator": {
21-
"name": "artman",
22-
"version": "0.16.0",
23-
"dockerImage": "googleapis/artman@sha256:90f9d15e9bad675aeecd586725bce48f5667ffe7d5fc4d1e96d51ff34304815b"
29+
"client": {
30+
"source": "googleapis",
31+
"apiName": "error_reporting",
32+
"apiVersion": "v1beta1",
33+
"language": "python",
34+
"generator": "gapic",
35+
"config": "google/devtools/clouderrorreporting/artman_errorreporting.yaml"
2436
}
2537
}
2638
]

0 commit comments

Comments
 (0)