Skip to content

delete_restore_testing_selection async

delete_restore_testing_selection(
    restore_testing_plan_name: str,
    restore_testing_selection_name: str,
    *,
    config_overrides: Optional[AsyncBackupClientConfig] = None,
) -> None

Input the Restore Testing Plan name and Restore Testing Selection name.

All testing selections associated with a restore testing plan must be deleted before the restore testing plan can be deleted.

Parameters:

  • restore_testing_plan_name (str) –

    Required unique name of the restore testing plan that contains the restore testing selection you wish to delete.

  • restore_testing_selection_name (str) –

    Required unique name of the restore testing selection you wish to delete.

Raises:

Source code in docs_src/capo_backup/_services/async_backup.py
async def delete_restore_testing_selection(
    self,
    restore_testing_plan_name: str,
    restore_testing_selection_name: str,
    *,
    config_overrides: Optional[AsyncBackupClientConfig] = None,
) -> None:
    """<p>Input the Restore Testing Plan name and Restore Testing Selection name.</p> <p>All testing selections associated with a restore testing plan must be deleted before the restore testing plan can be deleted.</p>

    Args:
        restore_testing_plan_name: <p>Required unique name of the restore testing plan that contains the restore testing selection you wish to delete.</p>
        restore_testing_selection_name: <p>Required unique name of the restore testing selection you wish to delete.</p>

    Raises:
        capo_backup.errors.resource_not_found_exception.ResourceNotFoundException: <p>A resource that is required for the action doesn't exist.</p>
        capo_backup.errors.service_unavailable_exception.ServiceUnavailableException: <p>The request failed due to a temporary failure of the server.</p>
        capo_backup.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_backup.types.delete_restore_testing_selection_input.DeleteRestoreTestingSelectionInput]",
    ) -> AsyncOperationResponse[None]:
        import capo_backup._operations.cryo_controller_user_manager.delete_restore_testing_selection

        (
            output,
            http_response,
        ) = await capo_backup._operations.cryo_controller_user_manager.delete_restore_testing_selection.async_delete_restore_testing_selection(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteRestoreTestingSelection")
    )
    input_: capo_backup.types.delete_restore_testing_selection_input.DeleteRestoreTestingSelectionInput = {
        "restore_testing_plan_name": restore_testing_plan_name,
        "restore_testing_selection_name": restore_testing_selection_name,
    }

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