public Task <ClusterExistsComponentTemplateResponse> ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action <ClusterExistsComponentTemplateRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default) { var descriptor = new ClusterExistsComponentTemplateRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequestAsync <ClusterExistsComponentTemplateRequestDescriptor, ClusterExistsComponentTemplateResponse>(descriptor)); }
public ClusterExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.Clients.Elasticsearch.Names name, Action <ClusterExistsComponentTemplateRequestDescriptor> configureRequest = null) { var descriptor = new ClusterExistsComponentTemplateRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return(DoRequest <ClusterExistsComponentTemplateRequestDescriptor, ClusterExistsComponentTemplateResponse>(descriptor)); }