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

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

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <AutoscalingDeleteAutoscalingPolicyRequestDescriptor, AutoscalingDeleteAutoscalingPolicyResponse>(descriptor));
        }