[docs]defcreate_namespace(self,path):"""Create a namespace at the given path. Supported methods: POST: /sys/namespaces/{path}. Produces: 200 application/json :return: The response of the request. :rtype: requests.Response """api_path=utils.format_url("/v1/sys/namespaces/{path}",path=path)returnself._adapter.post(url=api_path,)
[docs]deflist_namespaces(self):"""Lists all the namespaces. Supported methods: LIST: /sys/namespaces. Produces: 200 application/json :return: The JSON response of the request. :rtype: dict """api_path="/v1/sys/namespaces/"returnself._adapter.list(url=api_path,)
[docs]defdelete_namespace(self,path):"""Delete a namespaces. You cannot delete a namespace with existing child namespaces. Supported methods: DELETE: /sys/namespaces. Produces: 204 (empty body) :return: The response of the request. :rtype: requests.Response """api_path=utils.format_url("/v1/sys/namespaces/{path}",path=path)returnself._adapter.delete(url=api_path,)