Skip to content

Commit 22f155f

Browse files
[codegen] master synchronization (#5544)
Co-authored-by: Mpdreamz <Mpdreamz@users.noreply.github.com>
1 parent 7a57b76 commit 22f155f

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"searchable_snapshots.cache_stats": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html",
5+
"description": "Retrieve node-level cache statistics about searchable snapshots."
6+
},
7+
"stability": "experimental",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
12+
"url": {
13+
"paths": [
14+
{
15+
"path": "/_searchable_snapshots/cache/stats",
16+
"methods": [
17+
"GET"
18+
]
19+
},
20+
{
21+
"path": "/_searchable_snapshots/{node_id}/cache/stats",
22+
"methods": [
23+
"GET"
24+
],
25+
"parts":{
26+
"node_id":{
27+
"type":"list",
28+
"description":"A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes"
29+
}
30+
}
31+
}
32+
]
33+
}
34+
}
35+
}

src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.SearchableSnapshots.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
// ReSharper disable once CheckNamespace
2626
namespace Elasticsearch.Net.Specification.SearchableSnapshotsApi
2727
{
28+
///<summary>Request options for CacheStats <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html</para></summary>
29+
public class CacheStatsRequestParameters : RequestParameters<CacheStatsRequestParameters>
30+
{
31+
}
32+
2833
///<summary>Request options for ClearCache <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html</para></summary>
2934
public class ClearCacheRequestParameters : RequestParameters<ClearCacheRequestParameters>
3035
{

src/Elasticsearch.Net/ElasticLowLevelClient.SearchableSnapshots.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,30 @@ internal LowLevelSearchableSnapshotsNamespace(ElasticLowLevelClient client): bas
4444
{
4545
}
4646

47+
///<summary>GET on /_searchable_snapshots/cache/stats <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html</para></summary>
48+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
49+
///<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>
50+
public TResponse CacheStats<TResponse>(CacheStatsRequestParameters requestParameters = null)
51+
where TResponse : class, ITransportResponse, new() => DoRequest<TResponse>(GET, "_searchable_snapshots/cache/stats", null, RequestParams(requestParameters));
52+
///<summary>GET on /_searchable_snapshots/cache/stats <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html</para></summary>
53+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
54+
///<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>
55+
[MapsApi("searchable_snapshots.cache_stats", "")]
56+
public Task<TResponse> CacheStatsAsync<TResponse>(CacheStatsRequestParameters requestParameters = null, CancellationToken ctx = default)
57+
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(GET, "_searchable_snapshots/cache/stats", ctx, null, RequestParams(requestParameters));
58+
///<summary>GET on /_searchable_snapshots/{node_id}/cache/stats <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html</para></summary>
59+
///<param name = "nodeId">A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you&#x27;re connecting to, leave empty to get information from all nodes</param>
60+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
61+
///<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>
62+
public TResponse CacheStats<TResponse>(string nodeId, CacheStatsRequestParameters requestParameters = null)
63+
where TResponse : class, ITransportResponse, new() => DoRequest<TResponse>(GET, Url($"_searchable_snapshots/{nodeId:nodeId}/cache/stats"), null, RequestParams(requestParameters));
64+
///<summary>GET on /_searchable_snapshots/{node_id}/cache/stats <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html</para></summary>
65+
///<param name = "nodeId">A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you&#x27;re connecting to, leave empty to get information from all nodes</param>
66+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
67+
///<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>
68+
[MapsApi("searchable_snapshots.cache_stats", "node_id")]
69+
public Task<TResponse> CacheStatsAsync<TResponse>(string nodeId, CacheStatsRequestParameters requestParameters = null, CancellationToken ctx = default)
70+
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(GET, Url($"_searchable_snapshots/{nodeId:nodeId}/cache/stats"), ctx, null, RequestParams(requestParameters));
4771
///<summary>POST on /_searchable_snapshots/cache/clear <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html</para></summary>
4872
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
4973
///<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>

0 commit comments

Comments
 (0)