Skip to content

Commit 672218e

Browse files
committed
[codegen-serverless] update to latest api spec
1 parent 6e69c39 commit 672218e

38 files changed

+982
-1117
lines changed

java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@
102102
import co.elastic.clients.elasticsearch.license.ElasticsearchLicenseAsyncClient;
103103
import co.elastic.clients.elasticsearch.logstash.ElasticsearchLogstashAsyncClient;
104104
import co.elastic.clients.elasticsearch.ml.ElasticsearchMlAsyncClient;
105-
import co.elastic.clients.elasticsearch.query_rule.ElasticsearchQueryRuleAsyncClient;
106-
import co.elastic.clients.elasticsearch.query_ruleset.ElasticsearchQueryRulesetAsyncClient;
105+
import co.elastic.clients.elasticsearch.query_rules.ElasticsearchQueryRulesAsyncClient;
107106
import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationAsyncClient;
108107
import co.elastic.clients.elasticsearch.security.ElasticsearchSecurityAsyncClient;
109108
import co.elastic.clients.elasticsearch.sql.ElasticsearchSqlAsyncClient;
@@ -211,12 +210,8 @@ public ElasticsearchMlAsyncClient ml() {
211210
return new ElasticsearchMlAsyncClient(this.transport, this.transportOptions);
212211
}
213212

214-
public ElasticsearchQueryRuleAsyncClient queryRule() {
215-
return new ElasticsearchQueryRuleAsyncClient(this.transport, this.transportOptions);
216-
}
217-
218-
public ElasticsearchQueryRulesetAsyncClient queryRuleset() {
219-
return new ElasticsearchQueryRulesetAsyncClient(this.transport, this.transportOptions);
213+
public ElasticsearchQueryRulesAsyncClient queryRules() {
214+
return new ElasticsearchQueryRulesAsyncClient(this.transport, this.transportOptions);
220215
}
221216

222217
public ElasticsearchSearchApplicationAsyncClient searchApplication() {

java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@
103103
import co.elastic.clients.elasticsearch.license.ElasticsearchLicenseClient;
104104
import co.elastic.clients.elasticsearch.logstash.ElasticsearchLogstashClient;
105105
import co.elastic.clients.elasticsearch.ml.ElasticsearchMlClient;
106-
import co.elastic.clients.elasticsearch.query_rule.ElasticsearchQueryRuleClient;
107-
import co.elastic.clients.elasticsearch.query_ruleset.ElasticsearchQueryRulesetClient;
106+
import co.elastic.clients.elasticsearch.query_rules.ElasticsearchQueryRulesClient;
108107
import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationClient;
109108
import co.elastic.clients.elasticsearch.security.ElasticsearchSecurityClient;
110109
import co.elastic.clients.elasticsearch.sql.ElasticsearchSqlClient;
@@ -212,12 +211,8 @@ public ElasticsearchMlClient ml() {
212211
return new ElasticsearchMlClient(this.transport, this.transportOptions);
213212
}
214213

215-
public ElasticsearchQueryRuleClient queryRule() {
216-
return new ElasticsearchQueryRuleClient(this.transport, this.transportOptions);
217-
}
218-
219-
public ElasticsearchQueryRulesetClient queryRuleset() {
220-
return new ElasticsearchQueryRulesetClient(this.transport, this.transportOptions);
214+
public ElasticsearchQueryRulesClient queryRules() {
215+
return new ElasticsearchQueryRulesClient(this.transport, this.transportOptions);
221216
}
222217

223218
public ElasticsearchSearchApplicationClient searchApplication() {

java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@
10371037
'indices.delete_data_lifecycle.Response': 'indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L24',
10381038
'indices.delete_data_stream.Request': 'indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L23-L44',
10391039
'indices.delete_data_stream.Response': 'indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L24',
1040-
'indices.delete_index_template.Request': 'indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L52',
1040+
'indices.delete_index_template.Request': 'indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L53',
10411041
'indices.delete_index_template.Response': 'indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L24',
10421042
'indices.exists.Request': 'indices/exists/IndicesExistsRequest.ts#L23-L72',
10431043
'indices.exists_alias.Request': 'indices/exists_alias/IndicesExistsAliasRequest.ts#L23-L67',
@@ -1057,7 +1057,7 @@
10571057
'indices.get_data_stream.Request': 'indices/get_data_stream/IndicesGetDataStreamRequest.ts#L23-L53',
10581058
'indices.get_data_stream.Response': 'indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24',
10591059
'indices.get_index_template.IndexTemplateItem': 'indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32',
1060-
'indices.get_index_template.Request': 'indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L60',
1060+
'indices.get_index_template.Request': 'indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L61',
10611061
'indices.get_index_template.Response': 'indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27',
10621062
'indices.get_mapping.IndexMappingRecord': 'indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32',
10631063
'indices.get_mapping.Request': 'indices/get_mapping/IndicesGetMappingRequest.ts#L24-L72',
@@ -1095,10 +1095,10 @@
10951095
'indices.rollover.Request': 'indices/rollover/IndicesRolloverRequest.ts#L29-L99',
10961096
'indices.rollover.Response': 'indices/rollover/IndicesRolloverResponse.ts#L22-L32',
10971097
'indices.rollover.RolloverConditions': 'indices/rollover/types.ts#L24-L40',
1098-
'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L24-L49',
1098+
'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L24-L50',
10991099
'indices.simulate_index_template.Response': 'indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30',
11001100
'indices.simulate_template.Overlapping': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42',
1101-
'indices.simulate_template.Request': 'indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L119',
1101+
'indices.simulate_template.Request': 'indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L120',
11021102
'indices.simulate_template.Response': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31',
11031103
'indices.simulate_template.Template': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37',
11041104
'indices.update_aliases.Action': 'indices/update_aliases/types.ts#L23-L39',
@@ -1486,27 +1486,27 @@
14861486
'nodes._types.Processor': 'nodes/_types/Stats.ts#L384-L401',
14871487
'nodes._types.Scripting': 'nodes/_types/Stats.ts#L977-L995',
14881488
'nodes._types.ThreadCount': 'nodes/_types/Stats.ts#L1004-L1029',
1489-
'query_rule.delete.Request': 'query_rule/delete/QueryRuleDeleteRequest.ts#L22-L40',
1490-
'query_rule.delete.Response': 'query_rule/delete/QueryRuleDeleteResponse.ts#L22-L24',
1491-
'query_rule.get.Request': 'query_rule/get/QueryRuleGetRequest.ts#L22-L40',
1492-
'query_rule.get.Response': 'query_rule/get/QueryRuleGetResponse.ts#L22-L24',
1493-
'query_rule.put.Request': 'query_rule/put/QueryRulePutRequest.ts#L27-L54',
1494-
'query_rule.put.Response': 'query_rule/put/QueryRulePutResponse.ts#L22-L26',
1495-
'query_ruleset._types.QueryRule': 'query_ruleset/_types/QueryRuleset.ts#L37-L42',
1496-
'query_ruleset._types.QueryRuleActions': 'query_ruleset/_types/QueryRuleset.ts#L68-L71',
1497-
'query_ruleset._types.QueryRuleCriteria': 'query_ruleset/_types/QueryRuleset.ts#L48-L52',
1498-
'query_ruleset._types.QueryRuleCriteriaType': 'query_ruleset/_types/QueryRuleset.ts#L54-L66',
1499-
'query_ruleset._types.QueryRuleType': 'query_ruleset/_types/QueryRuleset.ts#L44-L46',
1500-
'query_ruleset._types.QueryRuleset': 'query_ruleset/_types/QueryRuleset.ts#L26-L35',
1501-
'query_ruleset.delete.Request': 'query_ruleset/delete/QueryRulesetDeleteRequest.ts#L22-L35',
1502-
'query_ruleset.delete.Response': 'query_ruleset/delete/QueryRulesetDeleteResponse.ts#L22-L24',
1503-
'query_ruleset.get.Request': 'query_ruleset/get/QueryRulesetGetRequest.ts#L22-L35',
1504-
'query_ruleset.get.Response': 'query_ruleset/get/QueryRulesetGetResponse.ts#L22-L24',
1505-
'query_ruleset.list.QueryRulesetListItem': 'query_ruleset/list/types.ts#L23-L37',
1506-
'query_ruleset.list.Request': 'query_ruleset/list/QueryRulesetListRequest.ts#L22-L39',
1507-
'query_ruleset.list.Response': 'query_ruleset/list/QueryRulesetListResponse.ts#L23-L28',
1508-
'query_ruleset.put.Request': 'query_ruleset/put/QueryRulesetPutRequest.ts#L23-L43',
1509-
'query_ruleset.put.Response': 'query_ruleset/put/QueryRulesetPutResponse.ts#L22-L26',
1489+
'query_rules._types.QueryRule': 'query_rules/_types/QueryRuleset.ts#L37-L42',
1490+
'query_rules._types.QueryRuleActions': 'query_rules/_types/QueryRuleset.ts#L68-L71',
1491+
'query_rules._types.QueryRuleCriteria': 'query_rules/_types/QueryRuleset.ts#L48-L52',
1492+
'query_rules._types.QueryRuleCriteriaType': 'query_rules/_types/QueryRuleset.ts#L54-L66',
1493+
'query_rules._types.QueryRuleType': 'query_rules/_types/QueryRuleset.ts#L44-L46',
1494+
'query_rules._types.QueryRuleset': 'query_rules/_types/QueryRuleset.ts#L26-L35',
1495+
'query_rules.delete_rule.Request': 'query_rules/delete_rule/QueryRuleDeleteRequest.ts#L22-L40',
1496+
'query_rules.delete_rule.Response': 'query_rules/delete_rule/QueryRuleDeleteResponse.ts#L22-L24',
1497+
'query_rules.delete_ruleset.Request': 'query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts#L22-L35',
1498+
'query_rules.delete_ruleset.Response': 'query_rules/delete_ruleset/QueryRulesetDeleteResponse.ts#L22-L24',
1499+
'query_rules.get_rule.Request': 'query_rules/get_rule/QueryRuleGetRequest.ts#L22-L40',
1500+
'query_rules.get_rule.Response': 'query_rules/get_rule/QueryRuleGetResponse.ts#L22-L24',
1501+
'query_rules.get_ruleset.Request': 'query_rules/get_ruleset/QueryRulesetGetRequest.ts#L22-L35',
1502+
'query_rules.get_ruleset.Response': 'query_rules/get_ruleset/QueryRulesetGetResponse.ts#L22-L24',
1503+
'query_rules.list_rulesets.QueryRulesetListItem': 'query_rules/list_rulesets/types.ts#L23-L37',
1504+
'query_rules.list_rulesets.Request': 'query_rules/list_rulesets/QueryRulesetListRequest.ts#L22-L39',
1505+
'query_rules.list_rulesets.Response': 'query_rules/list_rulesets/QueryRulesetListResponse.ts#L23-L28',
1506+
'query_rules.put_rule.Request': 'query_rules/put_rule/QueryRulePutRequest.ts#L27-L54',
1507+
'query_rules.put_rule.Response': 'query_rules/put_rule/QueryRulePutResponse.ts#L22-L26',
1508+
'query_rules.put_ruleset.Request': 'query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L43',
1509+
'query_rules.put_ruleset.Response': 'query_rules/put_ruleset/QueryRulesetPutResponse.ts#L22-L26',
15101510
'search_application._types.AnalyticsCollection': 'search_application/_types/BehavioralAnalytics.ts#L22-L27',
15111511
'search_application._types.EventDataStream': 'search_application/_types/BehavioralAnalytics.ts#L29-L31',
15121512
'search_application._types.SearchApplication': 'search_application/_types/SearchApplication.ts#L24-L45',
@@ -1641,10 +1641,10 @@
16411641
if (hash.length > 1) {
16421642
hash = hash.substring(1);
16431643
}
1644-
window.location = "https://github.com/elastic/elasticsearch-specification/tree/21b532fe17fbe3d4dbcd224a54dd8c5e3670d56c/specification/" + (paths[hash] || "");
1644+
window.location = "https://github.com/elastic/elasticsearch-specification/tree/94ad8c5b43dc517a0eda7d135e9de4e4fc5432af/specification/" + (paths[hash] || "");
16451645
</script>
16461646
</head>
16471647
<body>
1648-
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/21b532fe17fbe3d4dbcd224a54dd8c5e3670d56c/specification/">Elasticsearch API specification</a>.
1648+
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/94ad8c5b43dc517a0eda7d135e9de4e4fc5432af/specification/">Elasticsearch API specification</a>.
16491649
</body>
16501650
</html>

java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
// typedef: indices.delete_index_template.Request
5959

6060
/**
61-
* The provided &lt;index-template&gt; may contain multiple template names
62-
* separated by a comma. If multiple template names are specified then there is
63-
* no wildcard support and the provided names should match completely with
64-
* existing templates.
61+
* Delete an index template. The provided &lt;index-template&gt; may contain
62+
* multiple template names separated by a comma. If multiple template names are
63+
* specified then there is no wildcard support and the provided names should
64+
* match completely with existing templates.
6565
*
6666
* @see <a href=
6767
* "../doc-files/api-spec.html#indices.delete_index_template.Request">API

java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/indices/ElasticsearchIndicesAsyncClient.java

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,10 @@ public final CompletableFuture<DeleteDataStreamResponse> deleteDataStream(
398398
// ----- Endpoint: indices.delete_index_template
399399

400400
/**
401-
* The provided &lt;index-template&gt; may contain multiple template names
402-
* separated by a comma. If multiple template names are specified then there is
403-
* no wildcard support and the provided names should match completely with
404-
* existing templates.
401+
* Delete an index template. The provided &lt;index-template&gt; may contain
402+
* multiple template names separated by a comma. If multiple template names are
403+
* specified then there is no wildcard support and the provided names should
404+
* match completely with existing templates.
405405
*
406406
* @see <a href=
407407
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html">Documentation
@@ -416,10 +416,10 @@ public CompletableFuture<DeleteIndexTemplateResponse> deleteIndexTemplate(Delete
416416
}
417417

418418
/**
419-
* The provided &lt;index-template&gt; may contain multiple template names
420-
* separated by a comma. If multiple template names are specified then there is
421-
* no wildcard support and the provided names should match completely with
422-
* existing templates.
419+
* Delete an index template. The provided &lt;index-template&gt; may contain
420+
* multiple template names separated by a comma. If multiple template names are
421+
* specified then there is no wildcard support and the provided names should
422+
* match completely with existing templates.
423423
*
424424
* @param fn
425425
* a function that initializes a builder to create the
@@ -733,7 +733,7 @@ public CompletableFuture<GetDataStreamResponse> getDataStream() {
733733
// ----- Endpoint: indices.get_index_template
734734

735735
/**
736-
* Returns information about one or more index templates.
736+
* Get index templates. Returns information about one or more index templates.
737737
*
738738
* @see <a href=
739739
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation
@@ -748,7 +748,7 @@ public CompletableFuture<GetIndexTemplateResponse> getIndexTemplate(GetIndexTemp
748748
}
749749

750750
/**
751-
* Returns information about one or more index templates.
751+
* Get index templates. Returns information about one or more index templates.
752752
*
753753
* @param fn
754754
* a function that initializes a builder to create the
@@ -764,7 +764,7 @@ public final CompletableFuture<GetIndexTemplateResponse> getIndexTemplate(
764764
}
765765

766766
/**
767-
* Returns information about one or more index templates.
767+
* Get index templates. Returns information about one or more index templates.
768768
*
769769
* @see <a href=
770770
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html">Documentation
@@ -1027,7 +1027,7 @@ public final CompletableFuture<PutDataLifecycleResponse> putDataLifecycle(
10271027
// ----- Endpoint: indices.put_index_template
10281028

10291029
/**
1030-
* Creates or updates an index template. Index templates define settings,
1030+
* Create or update an index template. Index templates define settings,
10311031
* mappings, and aliases that can be applied automatically to new indices.
10321032
*
10331033
* @see <a href=
@@ -1043,7 +1043,7 @@ public CompletableFuture<PutIndexTemplateResponse> putIndexTemplate(PutIndexTemp
10431043
}
10441044

10451045
/**
1046-
* Creates or updates an index template. Index templates define settings,
1046+
* Create or update an index template. Index templates define settings,
10471047
* mappings, and aliases that can be applied automatically to new indices.
10481048
*
10491049
* @param fn
@@ -1148,7 +1148,7 @@ public CompletableFuture<PutIndicesSettingsResponse> putSettings() {
11481148
// ----- Endpoint: indices.put_template
11491149

11501150
/**
1151-
* Creates or updates an index template. Index templates define settings,
1151+
* Create or update an index template. Index templates define settings,
11521152
* mappings, and aliases that can be applied automatically to new indices.
11531153
*
11541154
* @see <a href=
@@ -1164,7 +1164,7 @@ public CompletableFuture<PutTemplateResponse> putTemplate(PutTemplateRequest req
11641164
}
11651165

11661166
/**
1167-
* Creates or updates an index template. Index templates define settings,
1167+
* Create or update an index template. Index templates define settings,
11681168
* mappings, and aliases that can be applied automatically to new indices.
11691169
*
11701170
* @param fn
@@ -1303,7 +1303,9 @@ public final CompletableFuture<RolloverResponse> rollover(
13031303
// ----- Endpoint: indices.simulate_index_template
13041304

13051305
/**
1306-
*
1306+
* Simulate an index. Returns the index configuration that would be applied to
1307+
* the specified index from an existing index template.
1308+
*
13071309
* @see <a href=
13081310
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html">Documentation
13091311
* on elastic.co</a>
@@ -1318,7 +1320,9 @@ public CompletableFuture<SimulateIndexTemplateResponse> simulateIndexTemplate(
13181320
}
13191321

13201322
/**
1321-
*
1323+
* Simulate an index. Returns the index configuration that would be applied to
1324+
* the specified index from an existing index template.
1325+
*
13221326
* @param fn
13231327
* a function that initializes a builder to create the
13241328
* {@link SimulateIndexTemplateRequest}
@@ -1335,8 +1339,8 @@ public final CompletableFuture<SimulateIndexTemplateResponse> simulateIndexTempl
13351339
// ----- Endpoint: indices.simulate_template
13361340

13371341
/**
1338-
* Returns the index configuration that would be applied by a particular index
1339-
* template.
1342+
* Simulate an index template. Returns the index configuration that would be
1343+
* applied by a particular index template.
13401344
*
13411345
* @see <a href=
13421346
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation
@@ -1351,8 +1355,8 @@ public CompletableFuture<SimulateTemplateResponse> simulateTemplate(SimulateTemp
13511355
}
13521356

13531357
/**
1354-
* Returns the index configuration that would be applied by a particular index
1355-
* template.
1358+
* Simulate an index template. Returns the index configuration that would be
1359+
* applied by a particular index template.
13561360
*
13571361
* @param fn
13581362
* a function that initializes a builder to create the
@@ -1368,8 +1372,8 @@ public final CompletableFuture<SimulateTemplateResponse> simulateTemplate(
13681372
}
13691373

13701374
/**
1371-
* Returns the index configuration that would be applied by a particular index
1372-
* template.
1375+
* Simulate an index template. Returns the index configuration that would be
1376+
* applied by a particular index template.
13731377
*
13741378
* @see <a href=
13751379
* "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html">Documentation

0 commit comments

Comments
 (0)