Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }