delete_restore_testing_plan(
restore_testing_plan_name: str,
*,
config_overrides: Optional[AsyncBackupClientConfig] = None,
) -> None
This request deletes the specified restore testing plan.
Deletion can only successfully occur if all associated restore testing selections are deleted first.
Parameters:
-
restore_testing_plan_name
(str)
–
Required unique name of the restore testing plan you wish to delete.
Raises:
Source code in docs_src/capo_backup/_services/async_backup.py
| async def delete_restore_testing_plan(
self,
restore_testing_plan_name: str,
*,
config_overrides: Optional[AsyncBackupClientConfig] = None,
) -> None:
"""<p>This request deletes the specified restore testing plan.</p> <p>Deletion can only successfully occur if all associated restore testing selections are deleted first.</p>
Args:
restore_testing_plan_name: <p>Required unique name of the restore testing plan you wish to delete.</p>
Raises:
capo_backup.errors.invalid_request_exception.InvalidRequestException: <p>Indicates that something is wrong with the input to the request. For example, a parameter is of the wrong type.</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_plan_input.DeleteRestoreTestingPlanInput]",
) -> AsyncOperationResponse[None]:
import capo_backup._operations.cryo_controller_user_manager.delete_restore_testing_plan
(
output,
http_response,
) = await capo_backup._operations.cryo_controller_user_manager.delete_restore_testing_plan.async_delete_restore_testing_plan(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteRestoreTestingPlan")
)
input_: capo_backup.types.delete_restore_testing_plan_input.DeleteRestoreTestingPlanInput = {
"restore_testing_plan_name": restore_testing_plan_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|