#NEWLINE# def __init__( self , project = None , credentials = None , read_only = False , admin = False , user_agent = DEFAULT_USER_AGENT , timeout_seconds = DEFAULT_TIMEOUT_SECONDS ) : #NEWLINE# #INDENT# _ClientProjectMixin . __init__ ( self , project = project ) #NEWLINE# if ( credentials is None ) : #NEWLINE# #INDENT# credentials = get_credentials ( ) #NEWLINE# #UNINDENT# if ( read_only and admin ) : #NEWLINE# #INDENT# raise ValueError ( 'A read-only client cannot also performadministrative actions.' ) #NEWLINE# #UNINDENT# scopes = [ ] #NEWLINE# if read_only : #NEWLINE# #INDENT# scopes . append ( READ_ONLY_SCOPE ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# scopes . append ( DATA_SCOPE ) #NEWLINE# #UNINDENT# if admin : #NEWLINE# #INDENT# scopes . append ( ADMIN_SCOPE ) #NEWLINE# #UNINDENT# self . _admin = bool ( admin ) #NEWLINE# try : #NEWLINE# #INDENT# credentials = credentials . create_scoped ( scopes ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . _credentials = credentials #NEWLINE# self . user_agent = user_agent #NEWLINE# self . timeout_seconds = timeout_seconds #NEWLINE# self . _data_stub_internal = None #NEWLINE# self . _cluster_stub_internal = None #NEWLINE# self . _operations_stub_internal = None #NEWLINE# self . _table_stub_internal = None