Skip to content

Commit cb3d498

Browse files
committed
[codegen] update to latest api spec
1 parent dc472e8 commit cb3d498

40 files changed

+1001
-1131
lines changed

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

+3-8
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@
127127
import co.elastic.clients.elasticsearch.ml.ElasticsearchMlAsyncClient;
128128
import co.elastic.clients.elasticsearch.monitoring.ElasticsearchMonitoringAsyncClient;
129129
import co.elastic.clients.elasticsearch.nodes.ElasticsearchNodesAsyncClient;
130-
import co.elastic.clients.elasticsearch.query_rule.ElasticsearchQueryRuleAsyncClient;
131-
import co.elastic.clients.elasticsearch.query_ruleset.ElasticsearchQueryRulesetAsyncClient;
130+
import co.elastic.clients.elasticsearch.query_rules.ElasticsearchQueryRulesAsyncClient;
132131
import co.elastic.clients.elasticsearch.rollup.ElasticsearchRollupAsyncClient;
133132
import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationAsyncClient;
134133
import co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsAsyncClient;
@@ -281,12 +280,8 @@ public ElasticsearchNodesAsyncClient nodes() {
281280
return new ElasticsearchNodesAsyncClient(this.transport, this.transportOptions);
282281
}
283282

284-
public ElasticsearchQueryRuleAsyncClient queryRule() {
285-
return new ElasticsearchQueryRuleAsyncClient(this.transport, this.transportOptions);
286-
}
287-
288-
public ElasticsearchQueryRulesetAsyncClient queryRuleset() {
289-
return new ElasticsearchQueryRulesetAsyncClient(this.transport, this.transportOptions);
283+
public ElasticsearchQueryRulesAsyncClient queryRules() {
284+
return new ElasticsearchQueryRulesAsyncClient(this.transport, this.transportOptions);
290285
}
291286

292287
public ElasticsearchRollupAsyncClient rollup() {

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

+3-8
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@
128128
import co.elastic.clients.elasticsearch.ml.ElasticsearchMlClient;
129129
import co.elastic.clients.elasticsearch.monitoring.ElasticsearchMonitoringClient;
130130
import co.elastic.clients.elasticsearch.nodes.ElasticsearchNodesClient;
131-
import co.elastic.clients.elasticsearch.query_rule.ElasticsearchQueryRuleClient;
132-
import co.elastic.clients.elasticsearch.query_ruleset.ElasticsearchQueryRulesetClient;
131+
import co.elastic.clients.elasticsearch.query_rules.ElasticsearchQueryRulesClient;
133132
import co.elastic.clients.elasticsearch.rollup.ElasticsearchRollupClient;
134133
import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationClient;
135134
import co.elastic.clients.elasticsearch.searchable_snapshots.ElasticsearchSearchableSnapshotsClient;
@@ -282,12 +281,8 @@ public ElasticsearchNodesClient nodes() {
282281
return new ElasticsearchNodesClient(this.transport, this.transportOptions);
283282
}
284283

285-
public ElasticsearchQueryRuleClient queryRule() {
286-
return new ElasticsearchQueryRuleClient(this.transport, this.transportOptions);
287-
}
288-
289-
public ElasticsearchQueryRulesetClient queryRuleset() {
290-
return new ElasticsearchQueryRulesetClient(this.transport, this.transportOptions);
284+
public ElasticsearchQueryRulesClient queryRules() {
285+
return new ElasticsearchQueryRulesClient(this.transport, this.transportOptions);
291286
}
292287

293288
public ElasticsearchRollupClient rollup() {

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

+29-29
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@
13591359
'indices.delete_data_lifecycle.Response': 'indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L24',
13601360
'indices.delete_data_stream.Request': 'indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L23-L44',
13611361
'indices.delete_data_stream.Response': 'indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L24',
1362-
'indices.delete_index_template.Request': 'indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L52',
1362+
'indices.delete_index_template.Request': 'indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L53',
13631363
'indices.delete_index_template.Response': 'indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L24',
13641364
'indices.delete_template.Request': 'indices/delete_template/IndicesDeleteTemplateRequest.ts#L24-L52',
13651365
'indices.delete_template.Response': 'indices/delete_template/IndicesDeleteTemplateResponse.ts#L22-L24',
@@ -1370,7 +1370,7 @@
13701370
'indices.exists.Request': 'indices/exists/IndicesExistsRequest.ts#L23-L72',
13711371
'indices.exists_alias.Request': 'indices/exists_alias/IndicesExistsAliasRequest.ts#L23-L67',
13721372
'indices.exists_index_template.Request': 'indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts#L24-L41',
1373-
'indices.exists_template.Request': 'indices/exists_template/IndicesExistsTemplateRequest.ts#L24-L37',
1373+
'indices.exists_template.Request': 'indices/exists_template/IndicesExistsTemplateRequest.ts#L24-L39',
13741374
'indices.explain_data_lifecycle.DataStreamLifecycleExplain': 'indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41',
13751375
'indices.explain_data_lifecycle.Request': 'indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts#L24-L38',
13761376
'indices.explain_data_lifecycle.Response': 'indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L25-L29',
@@ -1402,14 +1402,14 @@
14021402
'indices.get_field_mapping.Response': 'indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L27',
14031403
'indices.get_field_mapping.TypeFieldMappings': 'indices/get_field_mapping/types.ts#L24-L26',
14041404
'indices.get_index_template.IndexTemplateItem': 'indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32',
1405-
'indices.get_index_template.Request': 'indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L60',
1405+
'indices.get_index_template.Request': 'indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L61',
14061406
'indices.get_index_template.Response': 'indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27',
14071407
'indices.get_mapping.IndexMappingRecord': 'indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32',
14081408
'indices.get_mapping.Request': 'indices/get_mapping/IndicesGetMappingRequest.ts#L24-L72',
14091409
'indices.get_mapping.Response': 'indices/get_mapping/IndicesGetMappingResponse.ts#L24-L27',
14101410
'indices.get_settings.Request': 'indices/get_settings/IndicesGetSettingsRequest.ts#L24-L91',
14111411
'indices.get_settings.Response': 'indices/get_settings/IndicesGetSettingsResponse.ts#L24-L27',
1412-
'indices.get_template.Request': 'indices/get_template/IndicesGetTemplateRequest.ts#L24-L56',
1412+
'indices.get_template.Request': 'indices/get_template/IndicesGetTemplateRequest.ts#L24-L57',
14131413
'indices.get_template.Response': 'indices/get_template/IndicesGetTemplateResponse.ts#L23-L26',
14141414
'indices.migrate_to_data_stream.Request': 'indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L23-L44',
14151415
'indices.migrate_to_data_stream.Response': 'indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L24',
@@ -1480,10 +1480,10 @@
14801480
'indices.shard_stores.ShardStoreWrapper': 'indices/shard_stores/types.ts#L56-L58',
14811481
'indices.shrink.Request': 'indices/shrink/IndicesShrinkRequest.ts#L27-L75',
14821482
'indices.shrink.Response': 'indices/shrink/IndicesShrinkResponse.ts#L22-L28',
1483-
'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L24-L49',
1483+
'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L24-L50',
14841484
'indices.simulate_index_template.Response': 'indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30',
14851485
'indices.simulate_template.Overlapping': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42',
1486-
'indices.simulate_template.Request': 'indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L119',
1486+
'indices.simulate_template.Request': 'indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L120',
14871487
'indices.simulate_template.Response': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31',
14881488
'indices.simulate_template.Template': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37',
14891489
'indices.split.Request': 'indices/split/IndicesSplitRequest.ts#L27-L74',
@@ -2107,27 +2107,27 @@
21072107
'nodes.usage.Request': 'nodes/usage/NodesUsageRequest.ts#L24-L49',
21082108
'nodes.usage.Response': 'nodes/usage/NodesUsageResponse.ts#L30-L32',
21092109
'nodes.usage.ResponseBase': 'nodes/usage/NodesUsageResponse.ts#L25-L28',
2110-
'query_rule.delete.Request': 'query_rule/delete/QueryRuleDeleteRequest.ts#L22-L40',
2111-
'query_rule.delete.Response': 'query_rule/delete/QueryRuleDeleteResponse.ts#L22-L24',
2112-
'query_rule.get.Request': 'query_rule/get/QueryRuleGetRequest.ts#L22-L40',
2113-
'query_rule.get.Response': 'query_rule/get/QueryRuleGetResponse.ts#L22-L24',
2114-
'query_rule.put.Request': 'query_rule/put/QueryRulePutRequest.ts#L27-L54',
2115-
'query_rule.put.Response': 'query_rule/put/QueryRulePutResponse.ts#L22-L26',
2116-
'query_ruleset._types.QueryRule': 'query_ruleset/_types/QueryRuleset.ts#L37-L42',
2117-
'query_ruleset._types.QueryRuleActions': 'query_ruleset/_types/QueryRuleset.ts#L68-L71',
2118-
'query_ruleset._types.QueryRuleCriteria': 'query_ruleset/_types/QueryRuleset.ts#L48-L52',
2119-
'query_ruleset._types.QueryRuleCriteriaType': 'query_ruleset/_types/QueryRuleset.ts#L54-L66',
2120-
'query_ruleset._types.QueryRuleType': 'query_ruleset/_types/QueryRuleset.ts#L44-L46',
2121-
'query_ruleset._types.QueryRuleset': 'query_ruleset/_types/QueryRuleset.ts#L26-L35',
2122-
'query_ruleset.delete.Request': 'query_ruleset/delete/QueryRulesetDeleteRequest.ts#L22-L35',
2123-
'query_ruleset.delete.Response': 'query_ruleset/delete/QueryRulesetDeleteResponse.ts#L22-L24',
2124-
'query_ruleset.get.Request': 'query_ruleset/get/QueryRulesetGetRequest.ts#L22-L35',
2125-
'query_ruleset.get.Response': 'query_ruleset/get/QueryRulesetGetResponse.ts#L22-L24',
2126-
'query_ruleset.list.QueryRulesetListItem': 'query_ruleset/list/types.ts#L23-L37',
2127-
'query_ruleset.list.Request': 'query_ruleset/list/QueryRulesetListRequest.ts#L22-L39',
2128-
'query_ruleset.list.Response': 'query_ruleset/list/QueryRulesetListResponse.ts#L23-L28',
2129-
'query_ruleset.put.Request': 'query_ruleset/put/QueryRulesetPutRequest.ts#L23-L43',
2130-
'query_ruleset.put.Response': 'query_ruleset/put/QueryRulesetPutResponse.ts#L22-L26',
2110+
'query_rules._types.QueryRule': 'query_rules/_types/QueryRuleset.ts#L37-L42',
2111+
'query_rules._types.QueryRuleActions': 'query_rules/_types/QueryRuleset.ts#L68-L71',
2112+
'query_rules._types.QueryRuleCriteria': 'query_rules/_types/QueryRuleset.ts#L48-L52',
2113+
'query_rules._types.QueryRuleCriteriaType': 'query_rules/_types/QueryRuleset.ts#L54-L66',
2114+
'query_rules._types.QueryRuleType': 'query_rules/_types/QueryRuleset.ts#L44-L46',
2115+
'query_rules._types.QueryRuleset': 'query_rules/_types/QueryRuleset.ts#L26-L35',
2116+
'query_rules.delete_rule.Request': 'query_rules/delete_rule/QueryRuleDeleteRequest.ts#L22-L40',
2117+
'query_rules.delete_rule.Response': 'query_rules/delete_rule/QueryRuleDeleteResponse.ts#L22-L24',
2118+
'query_rules.delete_ruleset.Request': 'query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts#L22-L35',
2119+
'query_rules.delete_ruleset.Response': 'query_rules/delete_ruleset/QueryRulesetDeleteResponse.ts#L22-L24',
2120+
'query_rules.get_rule.Request': 'query_rules/get_rule/QueryRuleGetRequest.ts#L22-L40',
2121+
'query_rules.get_rule.Response': 'query_rules/get_rule/QueryRuleGetResponse.ts#L22-L24',
2122+
'query_rules.get_ruleset.Request': 'query_rules/get_ruleset/QueryRulesetGetRequest.ts#L22-L35',
2123+
'query_rules.get_ruleset.Response': 'query_rules/get_ruleset/QueryRulesetGetResponse.ts#L22-L24',
2124+
'query_rules.list_rulesets.QueryRulesetListItem': 'query_rules/list_rulesets/types.ts#L23-L37',
2125+
'query_rules.list_rulesets.Request': 'query_rules/list_rulesets/QueryRulesetListRequest.ts#L22-L39',
2126+
'query_rules.list_rulesets.Response': 'query_rules/list_rulesets/QueryRulesetListResponse.ts#L23-L28',
2127+
'query_rules.put_rule.Request': 'query_rules/put_rule/QueryRulePutRequest.ts#L27-L54',
2128+
'query_rules.put_rule.Response': 'query_rules/put_rule/QueryRulePutResponse.ts#L22-L26',
2129+
'query_rules.put_ruleset.Request': 'query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L43',
2130+
'query_rules.put_ruleset.Response': 'query_rules/put_ruleset/QueryRulesetPutResponse.ts#L22-L26',
21312131
'rollup._types.DateHistogramGrouping': 'rollup/_types/Groupings.ts#L42-L73',
21322132
'rollup._types.FieldMetric': 'rollup/_types/Metric.ts#L30-L35',
21332133
'rollup._types.Groupings': 'rollup/_types/Groupings.ts#L24-L40',
@@ -2731,10 +2731,10 @@
27312731
if (hash.length > 1) {
27322732
hash = hash.substring(1);
27332733
}
2734-
window.location = "https://github.com/elastic/elasticsearch-specification/tree/21b532fe17fbe3d4dbcd224a54dd8c5e3670d56c/specification/" + (paths[hash] || "");
2734+
window.location = "https://github.com/elastic/elasticsearch-specification/tree/94ad8c5b43dc517a0eda7d135e9de4e4fc5432af/specification/" + (paths[hash] || "");
27352735
</script>
27362736
</head>
27372737
<body>
2738-
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/21b532fe17fbe3d4dbcd224a54dd8c5e3670d56c/specification/">Elasticsearch API specification</a>.
2738+
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/94ad8c5b43dc517a0eda7d135e9de4e4fc5432af/specification/">Elasticsearch API specification</a>.
27392739
</body>
27402740
</html>

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

+4-4
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

0 commit comments

Comments
 (0)