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

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

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <AutoscalingPutAutoscalingPolicyRequestDescriptor, AutoscalingPutAutoscalingPolicyResponse>(descriptor));
        }