///<summary>GET on /_snapshot/{repository}/_stats <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html</para></summary> ///<param name = "repository">The repository for which to get the stats for</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 RepositoryStats <TResponse>(string repository, RepositoryStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest <TResponse>(GET, Url($"_snapshot/{repository:repository}/_stats"), null, RequestParams(requestParameters));
public Task <TResponse> RepositoryStatsAsync <TResponse>(string repository, RepositoryStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync <TResponse>(GET, Url($"_snapshot/{repository:repository}/_stats"), ctx, null, RequestParams(requestParameters));