Content-Length: 539418 | pFad | http://github.com/googleapis/google-cloud-python/commit/eecd498e830e76a727a22a501471ff5d2896ce3c

A9 chore: update docstring formatting; update templates (via synth) (#16) · googleapis/google-cloud-python@eecd498 · GitHub
Skip to content

Commit eecd498

Browse files
chore: update docstring formatting; update templates (via synth) (#16)
1 parent 2e8a9e9 commit eecd498

File tree

9 files changed

+376
-377
lines changed

9 files changed

+376
-377
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class ViewType(enum.IntEnum):
3030
and trace IDs.
3131
ROOTSPAN (int): Root span view of the trace record that returns the root spans along
3232
with the minimal trace data.
33-
COMPLETE (int): Complete view of the trace record that contains the actual trace data.
34-
This is equivalent to calling the REST ``get`` or RPC ``GetTrace``
33+
COMPLETE (int): Complete view of the trace record that contains the actual trace
34+
data. This is equivalent to calling the REST ``get`` or RPC ``GetTrace``
3535
method using the ID of each listed trace.
3636
"""
3737

packages/google-cloud-trace/google/cloud/trace_v1/proto/trace_pb2.py

Lines changed: 118 additions & 119 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-trace/google/cloud/trace_v1/proto/trace_pb2_grpc.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import grpc
33

44
from google.cloud.trace_v1.proto import (
5-
trace_pb2 as google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2,
5+
trace_pb2 as google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2,
66
)
77
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
88

@@ -23,17 +23,17 @@ def __init__(self, channel):
2323
"""
2424
self.ListTraces = channel.unary_unary(
2525
"/google.devtools.cloudtrace.v1.TraceService/ListTraces",
26-
request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.SerializeToString,
27-
response_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesResponse.FromString,
26+
request_serializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.SerializeToString,
27+
response_deserializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesResponse.FromString,
2828
)
2929
self.GetTrace = channel.unary_unary(
3030
"/google.devtools.cloudtrace.v1.TraceService/GetTrace",
31-
request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.SerializeToString,
32-
response_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.Trace.FromString,
31+
request_serializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.SerializeToString,
32+
response_deserializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.Trace.FromString,
3333
)
3434
self.PatchTraces = channel.unary_unary(
3535
"/google.devtools.cloudtrace.v1.TraceService/PatchTraces",
36-
request_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.SerializeToString,
36+
request_serializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.SerializeToString,
3737
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
3838
)
3939

@@ -76,17 +76,17 @@ def add_TraceServiceServicer_to_server(servicer, server):
7676
rpc_method_handlers = {
7777
"ListTraces": grpc.unary_unary_rpc_method_handler(
7878
servicer.ListTraces,
79-
request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.FromString,
80-
response_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesResponse.SerializeToString,
79+
request_deserializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesRequest.FromString,
80+
response_serializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.ListTracesResponse.SerializeToString,
8181
),
8282
"GetTrace": grpc.unary_unary_rpc_method_handler(
8383
servicer.GetTrace,
84-
request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.FromString,
85-
response_serializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.Trace.SerializeToString,
84+
request_deserializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.GetTraceRequest.FromString,
85+
response_serializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.Trace.SerializeToString,
8686
),
8787
"PatchTraces": grpc.unary_unary_rpc_method_handler(
8888
servicer.PatchTraces,
89-
request_deserializer=google_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.FromString,
89+
request_deserializer=google_dot_cloud_dot_devtools_dot_cloudtrace__v1_dot_proto_dot_trace__pb2.PatchTracesRequest.FromString,
9090
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
9191
),
9292
}

packages/google-cloud-trace/google/cloud/trace_v2/gapic/trace_service_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ def batch_write_spans(
235235
>>> client.batch_write_spans(name, spans)
236236
237237
Args:
238-
name (str): Required. The name of the project where the spans belong. The format is
239-
``projects/[PROJECT_ID]``.
238+
name (str): Required. The name of the project where the spans belong. The format
239+
is ``projects/[PROJECT_ID]``.
240240
spans (list[Union[dict, ~google.cloud.trace_v2.types.Span]]): Required. A list of new spans. The span names must not match existing
241241
spans, or the results are undefined.
242242
@@ -335,14 +335,14 @@ def create_span(
335335
336336
::
337337
338-
projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
338+
projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
339339
340-
[TRACE\_ID] is a unique identifier for a trace within a project; it is a
340+
[TRACE_ID] is a unique identifier for a trace within a project; it is a
341341
32-character hexadecimal encoding of a 16-byte array.
342342
343-
[SPAN\_ID] is a unique identifier for a span within a trace; it is a
343+
[SPAN_ID] is a unique identifier for a span within a trace; it is a
344344
16-character hexadecimal encoding of an 8-byte array.
345-
span_id (str): The [SPAN\_ID] portion of the span's resource name.
345+
span_id (str): The [SPAN_ID] portion of the span's resource name.
346346
display_name (Union[dict, ~google.cloud.trace_v2.types.TruncatableString]): A description of the span's operation (up to 128 bytes).
347347
Stackdriver Trace displays the description in the
348348
Google Cloud Platform Console.
@@ -365,8 +365,8 @@ def create_span(
365365
366366
If a dict is provided, it must be of the same form as the protobuf
367367
message :class:`~google.cloud.trace_v2.types.Timestamp`
368-
parent_span_id (str): The [SPAN\_ID] of this span's parent span. If this is a root span, then
369-
this field must be empty.
368+
parent_span_id (str): The [SPAN_ID] of this span's parent span. If this is a root span,
369+
then this field must be empty.
370370
attributes (Union[dict, ~google.cloud.trace_v2.types.Attributes]): A set of attributes on the span. You can have up to 32 attributes per
371371
span.
372372

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/google-cloud-python/commit/eecd498e830e76a727a22a501471ff5d2896ce3c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy