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