Skip to content

[codegen] master synchronization #5685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/ApiGenerator/RestSpecification/Core/security.enroll_node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"security.enroll_node":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enroll-node.html",
"description":"Allows a new node to enroll to an existing cluster with security enabled."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{
"path":"/_security/enroll_node",
"methods":[
"GET"
]
}
]
}
}
}
35 changes: 35 additions & 0 deletions src/ApiGenerator/RestSpecification/Core/termsenum.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"termsenum":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html",
"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."
},
"stability":"beta",
"visibility":"public",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{
"path": "/{index}/_terms_enum",
"methods": [
"GET",
"POST"
],
"parts": {
"index": {
"type": "list",
"description": "A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices"
}
}
}
]
},
"params":{},
"body":{
"description":"field name, string which is the prefix expected in matching terms, timeout and size for max number of results"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1972,6 +1972,11 @@ public bool? TypedKeys
}
}

///<summary>Request options for Termsenum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
public class TermsenumRequestParameters : RequestParameters<TermsenumRequestParameters>
{
}

///<summary>Request options for TermVectors <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html</para></summary>
public class TermVectorsRequestParameters : RequestParameters<TermVectorsRequestParameters>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ public Refresh? Refresh
}
}

///<summary>Request options for EnrollNode <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enroll-node.html</para></summary>
public class EnrollNodeRequestParameters : RequestParameters<EnrollNodeRequestParameters>
{
}

///<summary>Request options for GetApiKey <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html</para></summary>
public class GetApiKeyRequestParameters : RequestParameters<GetApiKeyRequestParameters>
{
Expand Down
15 changes: 15 additions & 0 deletions src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,21 @@ public TResponse SearchTemplate<TResponse>(string index, PostData body, SearchTe
[MapsApi("search_template", "index, body")]
public Task<TResponse> SearchTemplateAsync<TResponse>(string index, PostData body, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default)
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(POST, Url($"{index:index}/_search/template"), ctx, body, RequestParams(requestParameters));
///<summary>POST on /{index}/_terms_enum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
///<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>
///<param name = "body">field name, string which is the prefix expected in matching terms, timeout and size for max number of results</param>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
///<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>
public TResponse Termsenum<TResponse>(string index, PostData body, TermsenumRequestParameters requestParameters = null)
where TResponse : class, ITransportResponse, new() => DoRequest<TResponse>(POST, Url($"{index:index}/_terms_enum"), body, RequestParams(requestParameters));
///<summary>POST on /{index}/_terms_enum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
///<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>
///<param name = "body">field name, string which is the prefix expected in matching terms, timeout and size for max number of results</param>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
///<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>
[MapsApi("termsenum", "index, body")]
public Task<TResponse> TermsenumAsync<TResponse>(string index, PostData body, TermsenumRequestParameters requestParameters = null, CancellationToken ctx = default)
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(POST, Url($"{index:index}/_terms_enum"), ctx, body, RequestParams(requestParameters));
///<summary>POST on /{index}/_termvectors/{id} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html</para></summary>
///<param name = "index">The index in which the document resides.</param>
///<param name = "id">The id of the document, when not specified a doc param should be supplied.</param>
Expand Down
9 changes: 9 additions & 0 deletions src/Elasticsearch.Net/ElasticLowLevelClient.Security.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,15 @@ public TResponse EnableUser<TResponse>(string username, EnableUserRequestParamet
[MapsApi("security.enable_user", "username")]
public Task<TResponse> EnableUserAsync<TResponse>(string username, EnableUserRequestParameters requestParameters = null, CancellationToken ctx = default)
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(PUT, Url($"_security/user/{username:username}/_enable"), ctx, null, RequestParams(requestParameters));
///<summary>GET on /_security/enroll_node <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enroll-node.html</para></summary>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
public TResponse EnrollNode<TResponse>(EnrollNodeRequestParameters requestParameters = null)
where TResponse : class, ITransportResponse, new() => DoRequest<TResponse>(GET, "_security/enroll_node", null, RequestParams(requestParameters));
///<summary>GET on /_security/enroll_node <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-enroll-node.html</para></summary>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
[MapsApi("security.enroll_node", "")]
public Task<TResponse> EnrollNodeAsync<TResponse>(EnrollNodeRequestParameters requestParameters = null, CancellationToken ctx = default)
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(GET, "_security/enroll_node", ctx, null, RequestParams(requestParameters));
///<summary>GET on /_security/api_key <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html</para></summary>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
public TResponse GetApiKey<TResponse>(GetApiKeyRequestParameters requestParameters = null)
Expand Down
14 changes: 14 additions & 0 deletions src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,20 @@ TResponse SearchTemplate<TResponse>(string index, PostData body, SearchTemplateR
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
Task<TResponse> SearchTemplateAsync<TResponse>(string index, PostData body, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default)
where TResponse : class, ITransportResponse, new();
///<summary>POST on /{index}/_terms_enum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
///<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>
///<param name = "body">field name, string which is the prefix expected in matching terms, timeout and size for max number of results</param>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
///<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>
TResponse Termsenum<TResponse>(string index, PostData body, TermsenumRequestParameters requestParameters = null)
where TResponse : class, ITransportResponse, new();
///<summary>POST on /{index}/_terms_enum <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html</para></summary>
///<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>
///<param name = "body">field name, string which is the prefix expected in matching terms, timeout and size for max number of results</param>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
///<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>
Task<TResponse> TermsenumAsync<TResponse>(string index, PostData body, TermsenumRequestParameters requestParameters = null, CancellationToken ctx = default)
where TResponse : class, ITransportResponse, new();
///<summary>POST on /{index}/_termvectors/{id} <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html</para></summary>
///<param name = "index">The index in which the document resides.</param>
///<param name = "id">The id of the document, when not specified a doc param should be supplied.</param>
Expand Down