internal virtual DeletePermissionResponse DeletePermission(DeletePermissionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePermissionResponseUnmarshaller.Instance; return(Invoke <DeletePermissionResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the DeletePermission operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeletePermission operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DeletePermission">REST API Reference for DeletePermission Operation</seealso> public virtual Task <DeletePermissionResponse> DeletePermissionAsync(DeletePermissionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePermissionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePermissionResponseUnmarshaller.Instance; return(InvokeAsync <DeletePermissionResponse>(request, options, cancellationToken)); }
public async Task <IActionResult> DeletePermissionAsync([FromRoute] Guid id) { var request = new DeletePermissionRequest { Id = id, }; var response = await _authorizationClient.DeletePermissionAsync(request); return(NoContent()); }
public override async Task <Empty> DeletePermission(DeletePermissionRequest request, ServerCallContext context) { await _authorizationApp.DeletePermissionAsync(request.Id); return(new Empty()); }