Exemple #1
0
 def __init__(self, project=None):
     project = _determine_default_project(project)
     if project is None:
         raise ValueError('Project was not passed and could not be '
                          'determined from the environment.')
     if not isinstance(project, six.string_types):
         raise ValueError('Project must be a string.')
     self.project = project
Exemple #2
0
 def __init__(self, project=None):
     project = _determine_default_project(project)
     if project is None:
         raise ValueError('Project was not passed and could not be '
                          'determined from the environment.')
     if not isinstance(project, six.string_types):
         raise ValueError('Project must be a string.')
     self.project = project
Exemple #3
0
 def _determine_default(project):
     """Helper:  use default project detection."""
     return _determine_default_project(project)
Exemple #4
0
 def _callFUT(self, project=None):
     from gcloud._helpers import _determine_default_project
     return _determine_default_project(project=project)
Exemple #5
0
 def _callFUT(self, project=None):
     from gcloud._helpers import _determine_default_project
     return _determine_default_project(project=project)
Exemple #6
0
 def _determine_default(project):
     return _determine_default_project(project)
Exemple #7
0
 def _determine_default(project):
     """Helper:  use default project detection."""
     return _determine_default_project(project)
Exemple #8
0
 def _determine_default(project):
     return _determine_default_project(project)