public Task <IngestPutPipelineResponse> PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action <IngestPutPipelineRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new IngestPutPipelineRequestDescriptor(id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <IngestPutPipelineRequestDescriptor, IngestPutPipelineResponse>(descriptor));
        }
        public IngestPutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action <IngestPutPipelineRequestDescriptor> configureRequest = null)
        {
            var descriptor = new IngestPutPipelineRequestDescriptor(id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <IngestPutPipelineRequestDescriptor, IngestPutPipelineResponse>(descriptor));
        }