public Task <SecurityDeleteRoleResponse> DeleteRoleAsync(Elastic.Clients.Elasticsearch.Name name, Action <SecurityDeleteRoleRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new SecurityDeleteRoleRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <SecurityDeleteRoleRequestDescriptor, SecurityDeleteRoleResponse>(descriptor)); }
public SecurityDeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name name, Action <SecurityDeleteRoleRequestDescriptor> configureRequest = null) { var descriptor = new SecurityDeleteRoleRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <SecurityDeleteRoleRequestDescriptor, SecurityDeleteRoleResponse>(descriptor)); }