Skip to content

Commit 318b04f

Browse files
authored
Add scope for trace client (googleapis#4158)
1 parent ce7afe6 commit 318b04f

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

trace/google/cloud/trace/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@
1515
from google.cloud.trace.client import Client
1616

1717

18-
__all__ = ['Client']
18+
__all__ = ['Client', 'SCOPE']
19+
20+
21+
SCOPE = Client.SCOPE

trace/google/cloud/trace/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ class Client(ClientWithProject):
3232
client. If not passed, falls back to the default
3333
inferred from the environment.
3434
"""
35+
SCOPE = ('https://www.googleapis.com/auth/cloud-platform',
36+
'https://www.googleapis.com/auth/trace.append',)
37+
"""The scopes required for authenticating as a Trace consumer."""
38+
3539
_trace_api = None
3640

3741
def __init__(self, project=None, credentials=None):

0 commit comments

Comments
 (0)