from osmclient.common.exceptions import ClientException
from osmclient.common.exceptions import NotFound
import json
from osmclient.common.exceptions import ClientException
from osmclient.common.exceptions import NotFound
import json
def create(self, name, project):
"""Creates a new OSM project
"""
def create(self, name, project):
"""Creates a new OSM project
"""
def update(self, project, project_changes):
"""Updates an OSM project identified by name
"""
def update(self, project, project_changes):
"""Updates an OSM project identified by name
"""
self._client.get_token()
proj = self.get(project)
http_code, resp = self._http.patch_cmd(endpoint='{}/{}'.format(self._apiBase, proj['_id']),
self._client.get_token()
proj = self.get(project)
http_code, resp = self._http.patch_cmd(endpoint='{}/{}'.format(self._apiBase, proj['_id']),
def delete(self, name, force=False):
"""Deletes an OSM project identified by name
"""
def delete(self, name, force=False):
"""Deletes an OSM project identified by name
"""
def list(self, filter=None):
"""Returns the list of OSM projects
"""
def list(self, filter=None):
"""Returns the list of OSM projects
"""