def gce_from_configuration(cluster_id, project=None, zone=None, credentials=None):
 if (project is None):
  project = get_machine_project()
 if (zone is None):
  zone = get_machine_zone()
 gce_credentials = gce_credentials_from_config(credentials)
 compute = discovery.build('compute', 'v1', credentials=gce_credentials)
 return GCEBlockDeviceAPI(_operations=GCEOperations(_compute=compute, _project=unicode(project), _zone=unicode(zone)), _cluster_id=unicode(cluster_id))

def gce_from_configuration ( cluster_id , project = None , zone = None , credentials = None ) : if ( project is None ) : project = get_machine_project ( ) if ( zone is None ) : zone = get_machine_zone ( ) gce_credentials = gce_credentials_from_config ( credentials ) compute = discovery . build ( 'compute' , 'v1' , credentials = gce_credentials ) return GCEBlockDeviceAPI ( _operations = GCEOperations ( _compute = compute , _project = unicode ( project ) , _zone = unicode ( zone ) ) , _cluster_id = unicode ( cluster_id ) )
build a gceblockdeviceapi instance using data from configuration .