Skip to content

Commit 3d0c0e2

Browse files
[codegen] master synchronization (#5685)
Co-authored-by: Mpdreamz <Mpdreamz@users.noreply.github.com>
1 parent 0ba32f5 commit 3d0c0e2

File tree

7 files changed

+107
-0
lines changed

7 files changed

+107
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"security.enroll_node":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enroll-node.html",
5+
"description":"Allows a new node to enroll to an existing cluster with security enabled."
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_security/enroll_node",
17+
"methods":[
18+
"GET"
19+
]
20+
}
21+
]
22+
}
23+
}
24+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"termsenum":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html",
5+
"description": "The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios."
6+
},
7+
"stability":"beta",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path": "/{index}/_terms_enum",
17+
"methods": [
18+
"GET",
19+
"POST"
20+
],
21+
"parts": {
22+
"index": {
23+
"type": "list",
24+
"description": "A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices"
25+
}
26+
}
27+
}
28+
]
29+
},
30+
"params":{},
31+
"body":{
32+
"description":"field name, string which is the prefix expected in matching terms, timeout and size for max number of results"
33+
}
34+
}
35+
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,6 +1972,11 @@ public bool? TypedKeys
19721972
}
19731973
}
19741974

1975+
///<summary>Request options for Termsenum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
1976+
public class TermsenumRequestParameters : RequestParameters<TermsenumRequestParameters>
1977+
{
1978+
}
1979+
19751980
///<summary>Request options for TermVectors <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html</para></summary>
19761981
public class TermVectorsRequestParameters : RequestParameters<TermVectorsRequestParameters>
19771982
{

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ public Refresh? Refresh
204204
}
205205
}
206206

207+
///<summary>Request options for EnrollNode <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enroll-node.html</para></summary>
208+
public class EnrollNodeRequestParameters : RequestParameters<EnrollNodeRequestParameters>
209+
{
210+
}
211+
207212
///<summary>Request options for GetApiKey <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html</para></summary>
208213
public class GetApiKeyRequestParameters : RequestParameters<GetApiKeyRequestParameters>
209214
{

src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,21 @@ public TResponse SearchTemplate<TResponse>(string index, PostData body, SearchTe
10011001
[MapsApi("search_template", "index, body")]
10021002
public Task<TResponse> SearchTemplateAsync<TResponse>(string index, PostData body, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default)
10031003
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(POST, Url($"{index:index}/_search/template"), ctx, body, RequestParams(requestParameters));
1004+
///<summary>POST on /{index}/_terms_enum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
1005+
///<param name = "index">A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices</param>
1006+
///<param name = "body">field name, string which is the prefix expected in matching terms, timeout and size for max number of results</param>
1007+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
1008+
///<remarks>Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta 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>
1009+
public TResponse Termsenum<TResponse>(string index, PostData body, TermsenumRequestParameters requestParameters = null)
1010+
where TResponse : class, ITransportResponse, new() => DoRequest<TResponse>(POST, Url($"{index:index}/_terms_enum"), body, RequestParams(requestParameters));
1011+
///<summary>POST on /{index}/_terms_enum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
1012+
///<param name = "index">A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices</param>
1013+
///<param name = "body">field name, string which is the prefix expected in matching terms, timeout and size for max number of results</param>
1014+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
1015+
///<remarks>Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta 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>
1016+
[MapsApi("termsenum", "index, body")]
1017+
public Task<TResponse> TermsenumAsync<TResponse>(string index, PostData body, TermsenumRequestParameters requestParameters = null, CancellationToken ctx = default)
1018+
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(POST, Url($"{index:index}/_terms_enum"), ctx, body, RequestParams(requestParameters));
10041019
///<summary>POST on /{index}/_termvectors/{id} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html</para></summary>
10051020
///<param name = "index">The index in which the document resides.</param>
10061021
///<param name = "id">The id of the document, when not specified a doc param should be supplied.</param>

src/Elasticsearch.Net/ElasticLowLevelClient.Security.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,15 @@ public TResponse EnableUser<TResponse>(string username, EnableUserRequestParamet
278278
[MapsApi("security.enable_user", "username")]
279279
public Task<TResponse> EnableUserAsync<TResponse>(string username, EnableUserRequestParameters requestParameters = null, CancellationToken ctx = default)
280280
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(PUT, Url($"_security/user/{username:username}/_enable"), ctx, null, RequestParams(requestParameters));
281+
///<summary>GET on /_security/enroll_node <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enroll-node.html</para></summary>
282+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
283+
public TResponse EnrollNode<TResponse>(EnrollNodeRequestParameters requestParameters = null)
284+
where TResponse : class, ITransportResponse, new() => DoRequest<TResponse>(GET, "_security/enroll_node", null, RequestParams(requestParameters));
285+
///<summary>GET on /_security/enroll_node <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enroll-node.html</para></summary>
286+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
287+
[MapsApi("security.enroll_node", "")]
288+
public Task<TResponse> EnrollNodeAsync<TResponse>(EnrollNodeRequestParameters requestParameters = null, CancellationToken ctx = default)
289+
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(GET, "_security/enroll_node", ctx, null, RequestParams(requestParameters));
281290
///<summary>GET on /_security/api_key <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html</para></summary>
282291
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
283292
public TResponse GetApiKey<TResponse>(GetApiKeyRequestParameters requestParameters = null)

src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,20 @@ TResponse SearchTemplate<TResponse>(string index, PostData body, SearchTemplateR
834834
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
835835
Task<TResponse> SearchTemplateAsync<TResponse>(string index, PostData body, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default)
836836
where TResponse : class, ITransportResponse, new();
837+
///<summary>POST on /{index}/_terms_enum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
838+
///<param name = "index">A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices</param>
839+
///<param name = "body">field name, string which is the prefix expected in matching terms, timeout and size for max number of results</param>
840+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
841+
///<remarks>Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta 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>
842+
TResponse Termsenum<TResponse>(string index, PostData body, TermsenumRequestParameters requestParameters = null)
843+
where TResponse : class, ITransportResponse, new();
844+
///<summary>POST on /{index}/_terms_enum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
845+
///<param name = "index">A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices</param>
846+
///<param name = "body">field name, string which is the prefix expected in matching terms, timeout and size for max number of results</param>
847+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
848+
///<remarks>Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta 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>
849+
Task<TResponse> TermsenumAsync<TResponse>(string index, PostData body, TermsenumRequestParameters requestParameters = null, CancellationToken ctx = default)
850+
where TResponse : class, ITransportResponse, new();
837851
///<summary>POST on /{index}/_termvectors/{id} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html</para></summary>
838852
///<param name = "index">The index in which the document resides.</param>
839853
///<param name = "id">The id of the document, when not specified a doc param should be supplied.</param>

0 commit comments

Comments
 (0)