///<summary>GET on /_cat/templates/{name} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html</para></summary> ///<param name = "name">A pattern that returned template names must match</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public Task <TResponse> TemplatesAsync <TResponse>(string name, CatTemplatesRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync <TResponse>(GET, Url($"_cat/templates/{name:name}"), ctx, null, RequestParams(requestParameters));
///<summary>GET on /_cat/templates <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html</para></summary> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public TResponse Templates <TResponse>(CatTemplatesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest <TResponse>(GET, "_cat/templates", null, RequestParams(requestParameters));
///<summary>GET on /_cat/templates/{name} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html</para></summary> ///<param name = "name">A pattern that returned template names must match</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public TResponse Templates <TResponse>(string name, CatTemplatesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest <TResponse>(GET, Url($"_cat/templates/{name:name}"), null, RequestParams(requestParameters));
public Task <TResponse> TemplatesAsync <TResponse>(CatTemplatesRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync <TResponse>(GET, "_cat/templates", ctx, null, RequestParams(requestParameters));