def get_default_version(server=None):
 req = servers_service_pb.GetDefaultVersionRequest()
 if server:
  req.set_server(server)
 resp = servers_service_pb.GetDefaultVersionResponse()
 try:
  apiproxy_stub_map.MakeSyncCall('servers', 'GetDefaultVersion', req, resp)
 except apiproxy_errors.ApplicationError as e:
  if (e.application_error == servers_service_pb.ServersServiceError.INVALID_SERVER):
   raise InvalidServerError()
  if (e.application_error == servers_service_pb.ServersServiceError.INVALID_VERSION):
   raise InvalidVersionError()
  else:
   raise Error()
 return resp.version()

def get_default_version ( server = None ) : req = servers_service_pb . GetDefaultVersionRequest ( ) if server : req . set_server ( server ) resp = servers_service_pb . GetDefaultVersionResponse ( ) try : apiproxy_stub_map . MakeSyncCall ( 'servers' , 'GetDefaultVersion' , req , resp ) except apiproxy_errors . ApplicationError as e : if ( e . application_error == servers_service_pb . ServersServiceError . INVALID_SERVER ) : raise InvalidServerError ( ) if ( e . application_error == servers_service_pb . ServersServiceError . INVALID_VERSION ) : raise InvalidVersionError ( ) else : raise Error ( ) return resp . version ( )
returns the name of the default version for the module .