Skip to content

Commit 2f20bc0

Browse files
yoshi-automationtseaver
authored andcommitted
Pick up stub docstring fix in GAPIC generator. (googleapis#6985)
1 parent 63ed715 commit 2f20bc0

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

trace/google/cloud/trace_v1/gapic/enums.py

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

2020

21-
class TraceSpan(object):
22-
class SpanKind(enum.IntEnum):
23-
"""
24-
Type of span. Can be used to specify additional relationships between spans
25-
in addition to a parent/child relationship.
26-
27-
Attributes:
28-
SPAN_KIND_UNSPECIFIED (int): Unspecified.
29-
RPC_SERVER (int): Indicates that the span covers server-side handling of an RPC or other
30-
remote network request.
31-
RPC_CLIENT (int): Indicates that the span covers the client-side wrapper around an RPC or
32-
other remote request.
33-
"""
34-
35-
SPAN_KIND_UNSPECIFIED = 0
36-
RPC_SERVER = 1
37-
RPC_CLIENT = 2
38-
39-
4021
class ListTracesRequest(object):
4122
class ViewType(enum.IntEnum):
4223
"""
@@ -57,3 +38,22 @@ class ViewType(enum.IntEnum):
5738
MINIMAL = 1
5839
ROOTSPAN = 2
5940
COMPLETE = 3
41+
42+
43+
class TraceSpan(object):
44+
class SpanKind(enum.IntEnum):
45+
"""
46+
Type of span. Can be used to specify additional relationships between spans
47+
in addition to a parent/child relationship.
48+
49+
Attributes:
50+
SPAN_KIND_UNSPECIFIED (int): Unspecified.
51+
RPC_SERVER (int): Indicates that the span covers server-side handling of an RPC or other
52+
remote network request.
53+
RPC_CLIENT (int): Indicates that the span covers the client-side wrapper around an RPC or
54+
other remote request.
55+
"""
56+
57+
SPAN_KIND_UNSPECIFIED = 0
58+
RPC_SERVER = 1
59+
RPC_CLIENT = 2

trace/google/cloud/trace_v1/gapic/transports/trace_service_grpc_transport.py

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

100100
@property
101101
def patch_traces(self):
102-
"""Return the gRPC stub for {$apiMethod.name}.
102+
"""Return the gRPC stub for :meth:`TraceServiceClient.patch_traces`.
103103
104104
Sends new traces to Stackdriver Trace or updates existing traces. If the ID
105105
of a trace that you send matches that of an existing trace, any fields
@@ -116,7 +116,7 @@ def patch_traces(self):
116116

117117
@property
118118
def get_trace(self):
119-
"""Return the gRPC stub for {$apiMethod.name}.
119+
"""Return the gRPC stub for :meth:`TraceServiceClient.get_trace`.
120120
121121
Gets a single trace by its ID.
122122
@@ -129,7 +129,7 @@ def get_trace(self):
129129

130130
@property
131131
def list_traces(self):
132-
"""Return the gRPC stub for {$apiMethod.name}.
132+
"""Return the gRPC stub for :meth:`TraceServiceClient.list_traces`.
133133
134134
Returns of a list of traces that match the specified filter conditions.
135135

trace/google/cloud/trace_v2/gapic/transports/trace_service_grpc_transport.py

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

9999
@property
100100
def batch_write_spans(self):
101-
"""Return the gRPC stub for {$apiMethod.name}.
101+
"""Return the gRPC stub for :meth:`TraceServiceClient.batch_write_spans`.
102102
103103
Sends new spans to new or existing traces. You cannot update
104104
existing spans.
@@ -112,7 +112,7 @@ def batch_write_spans(self):
112112

113113
@property
114114
def create_span(self):
115-
"""Return the gRPC stub for {$apiMethod.name}.
115+
"""Return the gRPC stub for :meth:`TraceServiceClient.create_span`.
116116
117117
Creates a new span.
118118

trace/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2018-12-07T13:30:34.774710Z",
2+
"updateTime": "2018-12-18T13:28:56.896085Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.2",
8-
"dockerImage": "googleapis/artman@sha256:2f6b261ee7fe1aedf238991c93a20b3820de37a343d0cacf3e3e9555c2aaf2ea"
7+
"version": "0.16.3",
8+
"dockerImage": "googleapis/artman@sha256:bfb92654b4a77368471f70e2808eaf4e60f263b9559f27bb3284097322787bf1"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "200fbbe59cc7b0077ae525eb5f3d6420c0c53e61",
16-
"internalRef": "224174014"
15+
"sha": "c04bc0dc0a9164d924a9ab923fd6845b4ae6a7ab",
16+
"internalRef": "225851467"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)