/// <summary> /// Deletes a hypervisor. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> public virtual Task <DeleteHypervisorResponse> DeleteHypervisorAsync(DeleteHypervisorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHypervisorResponseUnmarshaller.Instance; return(InvokeAsync <DeleteHypervisorResponse>(request, options, cancellationToken)); }
internal virtual DeleteHypervisorResponse DeleteHypervisor(DeleteHypervisorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHypervisorResponseUnmarshaller.Instance; return(Invoke <DeleteHypervisorResponse>(request, options)); }