public Task <SecurityPutUserResponse> PutUserAsync(Elastic.Clients.Elasticsearch.Username username, Action <SecurityPutUserRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new SecurityPutUserRequestDescriptor(username); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <SecurityPutUserRequestDescriptor, SecurityPutUserResponse>(descriptor)); }
public SecurityPutUserResponse PutUser(Elastic.Clients.Elasticsearch.Username username, Action <SecurityPutUserRequestDescriptor> configureRequest = null) { var descriptor = new SecurityPutUserRequestDescriptor(username); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <SecurityPutUserRequestDescriptor, SecurityPutUserResponse>(descriptor)); }