///<summary>PUT on /_autoscaling/policy/{name} <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html</para></summary> ///<param name = "name">the name of the autoscaling policy</param> ///<param name = "body">the specification of the autoscaling policy</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> ///<remarks>Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.</remarks> public TResponse PutPolicy <TResponse>(string name, PostData body, PutAutoscalingPolicyRequestParameters requestParameters = null) where TResponse : class, ITransportResponse, new() => DoRequest <TResponse>(PUT, Url($"_autoscaling/policy/{name:name}"), body, RequestParams(requestParameters));
public Task <TResponse> PutPolicyAsync <TResponse>(string name, PostData body, PutAutoscalingPolicyRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, ITransportResponse, new() => DoRequestAsync <TResponse>(PUT, Url($"_autoscaling/policy/{name:name}"), ctx, body, RequestParams(requestParameters));