Exemple #1
0
        public Task <ClusterPutComponentTemplateResponse> PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action <ClusterPutComponentTemplateRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new ClusterPutComponentTemplateRequestDescriptor(name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <ClusterPutComponentTemplateRequestDescriptor, ClusterPutComponentTemplateResponse>(descriptor));
        }
Exemple #2
0
        public ClusterPutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name, Action <ClusterPutComponentTemplateRequestDescriptor> configureRequest = null)
        {
            var descriptor = new ClusterPutComponentTemplateRequestDescriptor(name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <ClusterPutComponentTemplateRequestDescriptor, ClusterPutComponentTemplateResponse>(descriptor));
        }