/// <summary> /// Disassociates a backup gateway from the specified server. After the disassociation /// process finishes, the gateway can no longer access the virtual machines on the server. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateGatewayFromServer 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 DisassociateGatewayFromServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </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/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> public virtual Task <DisassociateGatewayFromServerResponse> DisassociateGatewayFromServerAsync(DisassociateGatewayFromServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateGatewayFromServerRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateGatewayFromServerResponseUnmarshaller.Instance; return(InvokeAsync <DisassociateGatewayFromServerResponse>(request, options, cancellationToken)); }
internal virtual DisassociateGatewayFromServerResponse DisassociateGatewayFromServer(DisassociateGatewayFromServerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateGatewayFromServerRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateGatewayFromServerResponseUnmarshaller.Instance; return(Invoke <DisassociateGatewayFromServerResponse>(request, options)); }