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

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

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <AutoscalingGetAutoscalingPolicyRequestDescriptor, AutoscalingGetAutoscalingPolicyResponse>(descriptor));
        }