Deletes the discovery configuration and stops any running discovery.
Raises:
Source code in docs_src/capo_apiportal/_services/async_api_portal.py
| async def delete_discovery_configuration(
self, *, config_overrides: Optional[AsyncAPIPortalClientConfig] = None
) -> None:
"""Deletes the discovery configuration and stops any running discovery.
Raises:
capo_apiportal.errors.access_denied_exception.AccessDeniedException: You do not have permission to perform this operation.
capo_apiportal.errors.bad_request_exception.BadRequestException: The request is not valid. The message identifies the field or value that failed validation.
capo_apiportal.errors.internal_server_exception.InternalServerException: The service encountered an internal error. Try the request again.
capo_apiportal.errors.resource_not_found_exception.ResourceNotFoundException: The requested resource does not exist, or you do not have access to it.
capo_apiportal.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_apiportal.types.delete_discovery_configuration_request.DeleteDiscoveryConfigurationRequest]",
) -> AsyncOperationResponse[None]:
import capo_apiportal._operations.api_portal_control_service.delete_discovery_configuration
(
output,
http_response,
) = await capo_apiportal._operations.api_portal_control_service.delete_discovery_configuration.async_delete_discovery_configuration(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteDiscoveryConfiguration")
)
input_: capo_apiportal.types.delete_discovery_configuration_request.DeleteDiscoveryConfigurationRequest = {}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|