Deletes the specified namespace. This action deletes all of the entities in the namespace. Delete the systems and flows that use entities in the namespace before performing this action. This action takes no request parameters.
Raises:
Source code in docs_src/capo_iotthingsgraph/_services/io_t_things_graph.py
| def delete_namespace(
self, *, config_overrides: Optional[IoTThingsGraphClientConfig] = None
) -> "capo_iotthingsgraph.types.delete_namespace_response.DeleteNamespaceResponse":
"""<p>Deletes the specified namespace. This action deletes all of the entities in the namespace. Delete the systems and flows that use entities in the namespace before performing this action. This action takes no request parameters.</p>
Raises:
capo_iotthingsgraph.errors.internal_failure_exception.InternalFailureException: <p></p>
capo_iotthingsgraph.errors.throttling_exception.ThrottlingException: <p></p>
capo_iotthingsgraph.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_iotthingsgraph.types.delete_namespace_request.DeleteNamespaceRequest]",
) -> OperationResponse[
"capo_iotthingsgraph.types.delete_namespace_response.DeleteNamespaceResponse"
]:
import capo_iotthingsgraph._operations.iot_things_graph_front_end_service.delete_namespace
output, http_response = (
capo_iotthingsgraph._operations.iot_things_graph_front_end_service.delete_namespace.delete_namespace(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteNamespace")
)
input_: capo_iotthingsgraph.types.delete_namespace_request.DeleteNamespaceRequest = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|