public Task <EnrichExecutePolicyResponse> ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action <EnrichExecutePolicyRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new EnrichExecutePolicyRequestDescriptor(name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <EnrichExecutePolicyRequestDescriptor, EnrichExecutePolicyResponse>(descriptor));
        }
        public EnrichExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name, Action <EnrichExecutePolicyRequestDescriptor> configureRequest = null)
        {
            var descriptor = new EnrichExecutePolicyRequestDescriptor(name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <EnrichExecutePolicyRequestDescriptor, EnrichExecutePolicyResponse>(descriptor));
        }