Skip to content

stop_discoverer async

stop_discoverer(
    discoverer_id: __string,
    *,
    config_overrides: Optional[AsyncschemasClientConfig] = None,
) -> StopDiscovererResponse

Stops the discoverer

Parameters:

  • discoverer_id (__string) –

    The ID of the discoverer.

Raises:

Source code in docs_src/capo_schemas/_services/async_schemas.py
async def stop_discoverer(
    self,
    discoverer_id: "capo_schemas.types.__string.__string",
    *,
    config_overrides: Optional[AsyncschemasClientConfig] = None,
) -> "capo_schemas.types.stop_discoverer_response.StopDiscovererResponse":
    """<p>Stops the discoverer</p>

    Args:
        discoverer_id: <p>The ID of the discoverer.</p>

    Raises:
        capo_schemas.errors.bad_request_exception.BadRequestException
        capo_schemas.errors.forbidden_exception.ForbiddenException
        capo_schemas.errors.internal_server_error_exception.InternalServerErrorException
        capo_schemas.errors.not_found_exception.NotFoundException
        capo_schemas.errors.service_unavailable_exception.ServiceUnavailableException
        capo_schemas.errors.unauthorized_exception.UnauthorizedException
        capo_schemas.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_schemas.types.stop_discoverer_request.StopDiscovererRequest]",
    ) -> AsyncOperationResponse[
        "capo_schemas.types.stop_discoverer_response.StopDiscovererResponse"
    ]:
        import capo_schemas._operations.schemas.stop_discoverer

        (
            output,
            http_response,
        ) = await capo_schemas._operations.schemas.stop_discoverer.async_stop_discoverer(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StopDiscoverer")
    )
    input_: capo_schemas.types.stop_discoverer_request.StopDiscovererRequest = {
        "discoverer_id": discoverer_id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output