Skip to content

Commit 76eb0c9

Browse files
chore(trace): bump copyright year to 2020, tweak docstring formatting (via synth)(#10241)
1 parent 31ce6f6 commit 76eb0c9

15 files changed

+277
-47
lines changed

trace/google/cloud/trace_v1/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

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

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

trace/google/cloud/trace_v1/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

trace/google/cloud/trace_v2/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

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

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -87,6 +87,16 @@ def project_path(cls, project):
8787
"projects/{project}", project=project,
8888
)
8989

90+
@classmethod
91+
def span_path(cls, project, trace, span):
92+
"""Return a fully-qualified span string."""
93+
return google.api_core.path_template.expand(
94+
"projects/{project}/traces/{trace}/spans/{span}",
95+
project=project,
96+
trace=trace,
97+
span=span,
98+
)
99+
90100
def __init__(
91101
self,
92102
transport=None,
@@ -304,8 +314,7 @@ def create_span(
304314
>>>
305315
>>> client = trace_v2.TraceServiceClient()
306316
>>>
307-
>>> # TODO: Initialize `name`:
308-
>>> name = ''
317+
>>> name = client.span_path('[PROJECT]', '[TRACE]', '[SPAN]')
309318
>>>
310319
>>> # TODO: Initialize `span_id`:
311320
>>> span_id = ''

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

trace/google/cloud/trace_v2/proto/trace_pb2.py

+18-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

trace/google/cloud/trace_v2/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)