sregistry/main/google_storage/__init__.py
def _get_services(self, version='v1'):
        '''get version 1 of the google compute and storage service

        Parameters
        ==========
        version: version to use (default is v1)
        '''
        self._bucket_service = storage.Client()
        creds = GoogleCredentials.get_application_default()
        self._storage_service = discovery_build('storage', version, credentials=creds)
        self._compute_service = discovery_build('compute', version, credentials=creds)
def _get_services(self, version='v1'):
        '''get version 1 of the google compute and storage service

        Parameters
        ==========
        version: version to use (default is v1)
        '''
        self._bucket_service = storage.Client()
        creds = GoogleCredentials.get_application_default()
        self._storage_service = discovery_build('storage', version, credentials=creds)
        self._compute_service = discovery_build('compute', version, credentials=creds)
def _get_services ( self , version = 'v1' ) : self . _bucket_service = storage . Client ( ) creds = GoogleCredentials . get_application_default ( ) self . _storage_service = discovery_build ( 'storage' , version , credentials = creds ) self . _compute_service = discovery_build ( 'compute' , version , credentials = creds )
get version 1 of the google compute and storage service

        Parameters
        ==========
        version: version to use (default is v1)
get version 1 of the google compute and storage service