Skip to content

Commit e36fe30

Browse files
committed
[codegen] update to latest spec
1 parent 7805452 commit e36fe30

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2441
-571
lines changed

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

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@
17511751
'indices.shard_stores.ShardStoreWrapper': 'indices/shard_stores/types.ts#L58-L60',
17521752
'indices.shrink.Request': 'indices/shrink/IndicesShrinkRequest.ts#L27-L113',
17531753
'indices.shrink.Response': 'indices/shrink/IndicesShrinkResponse.ts#L22-L28',
1754-
'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L24-L67',
1754+
'indices.simulate_index_template.Request': 'indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L25-L70',
17551755
'indices.simulate_index_template.Response': 'indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30',
17561756
'indices.simulate_template.Overlapping': 'indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42',
17571757
'indices.simulate_template.Request': 'indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L135',
@@ -1987,7 +1987,7 @@
19871987
'inference.sparse_embedding.Response': 'inference/sparse_embedding/SparseEmbeddingResponse.ts#L22-L24',
19881988
'inference.stream_completion.Request': 'inference/stream_completion/StreamInferenceRequest.ts#L25-L71',
19891989
'inference.stream_completion.Response': 'inference/stream_completion/StreamInferenceResponse.ts#L22-L24',
1990-
'inference.text_embedding.Request': 'inference/text_embedding/TextEmbeddingRequest.ts#L25-L63',
1990+
'inference.text_embedding.Request': 'inference/text_embedding/TextEmbeddingRequest.ts#L25-L76',
19911991
'inference.text_embedding.Response': 'inference/text_embedding/TextEmbeddingResponse.ts#L22-L24',
19921992
'inference.update.Request': 'inference/update/UpdateInferenceRequest.ts#L25-L61',
19931993
'inference.update.Response': 'inference/update/UpdateInferenceResponse.ts#L22-L24',
@@ -2153,8 +2153,8 @@
21532153
'ml._types.ClassificationInferenceOptions': 'ml/_types/inference.ts#L118-L133',
21542154
'ml._types.CommonTokenizationConfig': 'ml/_types/inference.ts#L160-L186',
21552155
'ml._types.ConditionOperator': 'ml/_types/Rule.ts#L74-L79',
2156-
'ml._types.DataCounts': 'ml/_types/Job.ts#L352-L372',
2157-
'ml._types.DataDescription': 'ml/_types/Job.ts#L374-L390',
2156+
'ml._types.DataCounts': 'ml/_types/Job.ts#L354-L374',
2157+
'ml._types.DataDescription': 'ml/_types/Job.ts#L376-L392',
21582158
'ml._types.Datafeed': 'ml/_types/Datafeed.ts#L37-L61',
21592159
'ml._types.DatafeedAuthorization': 'ml/_types/Authorization.ts#L31-L43',
21602160
'ml._types.DatafeedConfig': 'ml/_types/Datafeed.ts#L63-L120',
@@ -2225,14 +2225,14 @@
22252225
'ml._types.Influence': 'ml/_types/Anomaly.ts#L141-L144',
22262226
'ml._types.Influencer': 'ml/_types/Influencer.ts#L24-L76',
22272227
'ml._types.Job': 'ml/_types/Job.ts#L61-L180',
2228-
'ml._types.JobBlocked': 'ml/_types/Job.ts#L392-L395',
2229-
'ml._types.JobBlockedReason': 'ml/_types/Job.ts#L397-L401',
2230-
'ml._types.JobConfig': 'ml/_types/Job.ts#L182-L283',
2231-
'ml._types.JobForecastStatistics': 'ml/_types/Job.ts#L343-L350',
2228+
'ml._types.JobBlocked': 'ml/_types/Job.ts#L394-L397',
2229+
'ml._types.JobBlockedReason': 'ml/_types/Job.ts#L399-L403',
2230+
'ml._types.JobConfig': 'ml/_types/Job.ts#L182-L285',
2231+
'ml._types.JobForecastStatistics': 'ml/_types/Job.ts#L345-L352',
22322232
'ml._types.JobState': 'ml/_types/Job.ts#L36-L52',
22332233
'ml._types.JobStatistics': 'ml/_types/Job.ts#L54-L59',
2234-
'ml._types.JobStats': 'ml/_types/Job.ts#L284-L330',
2235-
'ml._types.JobTimingStats': 'ml/_types/Job.ts#L332-L341',
2234+
'ml._types.JobStats': 'ml/_types/Job.ts#L286-L332',
2235+
'ml._types.JobTimingStats': 'ml/_types/Job.ts#L334-L343',
22362236
'ml._types.LearningToRankConfig': 'ml/_types/inference.ts#L87-L91',
22372237
'ml._types.MemoryStatus': 'ml/_types/Model.ts#L89-L93',
22382238
'ml._types.ModelPackageConfig': 'ml/_types/TrainedModel.ts#L257-L272',
@@ -2956,52 +2956,52 @@
29562956
'slm.start.Response': 'slm/start/StartSnapshotLifecycleManagementResponse.ts#L22-L24',
29572957
'slm.stop.Request': 'slm/stop/StopSnapshotLifecycleManagementRequest.ts#L23-L60',
29582958
'slm.stop.Response': 'slm/stop/StopSnapshotLifecycleManagementResponse.ts#L22-L24',
2959-
'snapshot._types.AzureRepository': 'snapshot/_types/SnapshotRepository.ts#L40-L43',
2960-
'snapshot._types.AzureRepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L77-L83',
2959+
'snapshot._types.AzureRepository': 'snapshot/_types/SnapshotRepository.ts#L40-L50',
2960+
'snapshot._types.AzureRepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L145-L196',
29612961
'snapshot._types.FileCountSnapshotStats': 'snapshot/_types/FileCountSnapshotStats.ts#L22-L25',
2962-
'snapshot._types.GcsRepository': 'snapshot/_types/SnapshotRepository.ts#L45-L48',
2963-
'snapshot._types.GcsRepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L85-L91',
2962+
'snapshot._types.GcsRepository': 'snapshot/_types/SnapshotRepository.ts#L52-L62',
2963+
'snapshot._types.GcsRepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L198-L235',
29642964
'snapshot._types.IndexDetails': 'snapshot/_types/SnapshotIndexDetails.ts#L23-L28',
29652965
'snapshot._types.InfoFeatureState': 'snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25',
2966-
'snapshot._types.ReadOnlyUrlRepository': 'snapshot/_types/SnapshotRepository.ts#L60-L63',
2967-
'snapshot._types.ReadOnlyUrlRepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L110-L115',
2966+
'snapshot._types.ReadOnlyUrlRepository': 'snapshot/_types/SnapshotRepository.ts#L92-L102',
2967+
'snapshot._types.ReadOnlyUrlRepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L377-L412',
29682968
'snapshot._types.Repository': 'snapshot/_types/SnapshotRepository.ts#L24-L34',
29692969
'snapshot._types.RepositoryBase': 'snapshot/_types/SnapshotRepository.ts#L36-L38',
2970-
'snapshot._types.RepositorySettingsBase': 'snapshot/_types/SnapshotRepository.ts#L70-L75',
2971-
'snapshot._types.S3Repository': 'snapshot/_types/SnapshotRepository.ts#L50-L53',
2972-
'snapshot._types.S3RepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L93-L102',
2973-
'snapshot._types.ShardsStats': 'snapshot/_types/SnapshotShardsStats.ts#L22-L29',
2970+
'snapshot._types.RepositorySettingsBase': 'snapshot/_types/SnapshotRepository.ts#L116-L143',
2971+
'snapshot._types.S3Repository': 'snapshot/_types/SnapshotRepository.ts#L64-L78',
2972+
'snapshot._types.S3RepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L237-L346',
2973+
'snapshot._types.ShardsStats': 'snapshot/_types/SnapshotShardsStats.ts#L22-L47',
29742974
'snapshot._types.ShardsStatsStage': 'snapshot/_types/SnapshotShardsStatsStage.ts#L20-L31',
29752975
'snapshot._types.ShardsStatsSummary': 'snapshot/_types/SnapshotShardsStatus.ts#L29-L35',
29762976
'snapshot._types.ShardsStatsSummaryItem': 'snapshot/_types/SnapshotShardsStatus.ts#L37-L40',
2977-
'snapshot._types.SharedFileSystemRepository': 'snapshot/_types/SnapshotRepository.ts#L55-L58',
2978-
'snapshot._types.SharedFileSystemRepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L104-L108',
2977+
'snapshot._types.SharedFileSystemRepository': 'snapshot/_types/SnapshotRepository.ts#L80-L90',
2978+
'snapshot._types.SharedFileSystemRepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L348-L375',
29792979
'snapshot._types.SnapshotIndexStats': 'snapshot/_types/SnapshotIndexStats.ts#L25-L29',
29802980
'snapshot._types.SnapshotInfo': 'snapshot/_types/SnapshotInfo.ts#L41-L71',
29812981
'snapshot._types.SnapshotShardFailure': 'snapshot/_types/SnapshotShardFailure.ts#L23-L30',
29822982
'snapshot._types.SnapshotShardsStatus': 'snapshot/_types/SnapshotShardsStatus.ts#L24-L27',
29832983
'snapshot._types.SnapshotSort': 'snapshot/_types/SnapshotInfo.ts#L73-L93',
2984-
'snapshot._types.SnapshotStats': 'snapshot/_types/SnapshotStats.ts#L23-L29',
2985-
'snapshot._types.SourceOnlyRepository': 'snapshot/_types/SnapshotRepository.ts#L65-L68',
2986-
'snapshot._types.SourceOnlyRepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L117-L124',
2987-
'snapshot._types.Status': 'snapshot/_types/SnapshotStatus.ts#L26-L35',
2988-
'snapshot.cleanup_repository.CleanupRepositoryResults': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L34',
2989-
'snapshot.cleanup_repository.Request': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts#L24-L59',
2984+
'snapshot._types.SnapshotStats': 'snapshot/_types/SnapshotStats.ts#L23-L42',
2985+
'snapshot._types.SourceOnlyRepository': 'snapshot/_types/SnapshotRepository.ts#L104-L114',
2986+
'snapshot._types.SourceOnlyRepositorySettings': 'snapshot/_types/SnapshotRepository.ts#L414-L441',
2987+
'snapshot._types.Status': 'snapshot/_types/SnapshotStatus.ts#L26-L60',
2988+
'snapshot.cleanup_repository.CleanupRepositoryResults': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L37',
2989+
'snapshot.cleanup_repository.Request': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts#L24-L63',
29902990
'snapshot.cleanup_repository.Response': 'snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27',
2991-
'snapshot.clone.Request': 'snapshot/clone/SnapshotCloneRequest.ts#L24-L51',
2991+
'snapshot.clone.Request': 'snapshot/clone/SnapshotCloneRequest.ts#L24-L70',
29922992
'snapshot.clone.Response': 'snapshot/clone/SnapshotCloneResponse.ts#L22-L24',
2993-
'snapshot.create.Request': 'snapshot/create/SnapshotCreateRequest.ts#L24-L92',
2993+
'snapshot.create.Request': 'snapshot/create/SnapshotCreateRequest.ts#L24-L126',
29942994
'snapshot.create.Response': 'snapshot/create/SnapshotCreateResponse.ts#L22-L35',
2995-
'snapshot.create_repository.Request': 'snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L54',
2995+
'snapshot.create_repository.Request': 'snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L79',
29962996
'snapshot.create_repository.Response': 'snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L24',
2997-
'snapshot.delete.Request': 'snapshot/delete/SnapshotDeleteRequest.ts#L24-L52',
2997+
'snapshot.delete.Request': 'snapshot/delete/SnapshotDeleteRequest.ts#L24-L65',
29982998
'snapshot.delete.Response': 'snapshot/delete/SnapshotDeleteResponse.ts#L22-L24',
2999-
'snapshot.delete_repository.Request': 'snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts#L24-L49',
2999+
'snapshot.delete_repository.Request': 'snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts#L24-L64',
30003000
'snapshot.delete_repository.Response': 'snapshot/delete_repository/SnapshotDeleteRepositoryResponse.ts#L22-L24',
3001-
'snapshot.get.Request': 'snapshot/get/SnapshotGetRequest.ts#L27-L136',
3002-
'snapshot.get.Response': 'snapshot/get/SnapshotGetResponse.ts#L25-L42',
3003-
'snapshot.get.SnapshotResponseItem': 'snapshot/get/SnapshotGetResponse.ts#L44-L48',
3004-
'snapshot.get_repository.Request': 'snapshot/get_repository/SnapshotGetRepositoryRequest.ts#L24-L51',
3001+
'snapshot.get.Request': 'snapshot/get/SnapshotGetRequest.ts#L27-L158',
3002+
'snapshot.get.Response': 'snapshot/get/SnapshotGetResponse.ts#L25-L47',
3003+
'snapshot.get.SnapshotResponseItem': 'snapshot/get/SnapshotGetResponse.ts#L49-L53',
3004+
'snapshot.get_repository.Request': 'snapshot/get_repository/SnapshotGetRepositoryRequest.ts#L24-L68',
30053005
'snapshot.get_repository.Response': 'snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L25',
30063006
'snapshot.repository_analyze.BlobDetails': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L250-L284',
30073007
'snapshot.repository_analyze.DetailsInfo': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L286-L321',
@@ -3012,16 +3012,16 @@
30123012
'snapshot.repository_analyze.SnapshotNodeInfo': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L110-L113',
30133013
'snapshot.repository_analyze.SummaryInfo': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L193-L202',
30143014
'snapshot.repository_analyze.WriteSummaryInfo': 'snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L162-L191',
3015-
'snapshot.repository_verify_integrity.Request': 'snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts#L24-L79',
3015+
'snapshot.repository_verify_integrity.Request': 'snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts#L24-L126',
30163016
'snapshot.repository_verify_integrity.Response': 'snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityResponse.ts#L22-L24',
3017-
'snapshot.restore.Request': 'snapshot/restore/SnapshotRestoreRequest.ts#L25-L78',
3017+
'snapshot.restore.Request': 'snapshot/restore/SnapshotRestoreRequest.ts#L25-L175',
30183018
'snapshot.restore.Response': 'snapshot/restore/SnapshotRestoreResponse.ts#L23-L28',
30193019
'snapshot.restore.SnapshotRestore': 'snapshot/restore/SnapshotRestoreResponse.ts#L30-L34',
3020-
'snapshot.status.Request': 'snapshot/status/SnapshotStatusRequest.ts#L24-L65',
3020+
'snapshot.status.Request': 'snapshot/status/SnapshotStatusRequest.ts#L24-L90',
30213021
'snapshot.status.Response': 'snapshot/status/SnapshotStatusResponse.ts#L22-L24',
3022-
'snapshot.verify_repository.CompactNodeInfo': 'snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L27-L29',
3023-
'snapshot.verify_repository.Request': 'snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts#L24-L49',
3024-
'snapshot.verify_repository.Response': 'snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L25',
3022+
'snapshot.verify_repository.CompactNodeInfo': 'snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L33-L40',
3023+
'snapshot.verify_repository.Request': 'snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts#L24-L63',
3024+
'snapshot.verify_repository.Response': 'snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L31',
30253025
'sql.Column': 'sql/types.ts#L23-L26',
30263026
'sql.clear_cursor.Request': 'sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L42',
30273027
'sql.clear_cursor.Response': 'sql/clear_cursor/ClearSqlCursorResponse.ts#L20-L22',
@@ -3328,10 +3328,10 @@
33283328
if (hash.length > 1) {
33293329
hash = hash.substring(1);
33303330
}
3331-
window.location = "https://github.com/elastic/elasticsearch-specification/tree/079cda0a96e04fbd23690a8a0404993bec8806cf/specification/" + (paths[hash] || "");
3331+
window.location = "https://github.com/elastic/elasticsearch-specification/tree/48cc23c17fd7640e7ea911b1074d7ff5abeb1fbf/specification/" + (paths[hash] || "");
33323332
</script>
33333333
</head>
33343334
<body>
3335-
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/079cda0a96e04fbd23690a8a0404993bec8806cf/specification/">Elasticsearch API specification</a>.
3335+
Please see the <a href="https://github.com/elastic/elasticsearch-specification/tree/48cc23c17fd7640e7ea911b1074d7ff5abeb1fbf/specification/">Elasticsearch API specification</a>.
33363336
</body>
33373337
</html>

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3719,8 +3719,10 @@ public final CompletableFuture<ResolveIndexResponse> resolveIndex(
37193719
// ----- Endpoint: indices.rollover
37203720

37213721
/**
3722-
* Roll over to a new index. TIP: It is recommended to use the index lifecycle
3723-
* rollover action to automate rollovers.
3722+
* Roll over to a new index. TIP: We recommend using the index lifecycle
3723+
* rollover action to automate rollovers. However, Serverless does not support
3724+
* Index Lifecycle Management (ILM), so don't use this approach in the
3725+
* Serverless context.
37243726
* <p>
37253727
* The rollover API creates a new index for a data stream or index alias. The
37263728
* API behavior depends on the rollover target.
@@ -3784,8 +3786,10 @@ public CompletableFuture<RolloverResponse> rollover(RolloverRequest request) {
37843786
}
37853787

37863788
/**
3787-
* Roll over to a new index. TIP: It is recommended to use the index lifecycle
3788-
* rollover action to automate rollovers.
3789+
* Roll over to a new index. TIP: We recommend using the index lifecycle
3790+
* rollover action to automate rollovers. However, Serverless does not support
3791+
* Index Lifecycle Management (ILM), so don't use this approach in the
3792+
* Serverless context.
37893793
* <p>
37903794
* The rollover API creates a new index for a data stream or index alias. The
37913795
* API behavior depends on the rollover target.

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3771,8 +3771,10 @@ public final ResolveIndexResponse resolveIndex(
37713771
// ----- Endpoint: indices.rollover
37723772

37733773
/**
3774-
* Roll over to a new index. TIP: It is recommended to use the index lifecycle
3775-
* rollover action to automate rollovers.
3774+
* Roll over to a new index. TIP: We recommend using the index lifecycle
3775+
* rollover action to automate rollovers. However, Serverless does not support
3776+
* Index Lifecycle Management (ILM), so don't use this approach in the
3777+
* Serverless context.
37763778
* <p>
37773779
* The rollover API creates a new index for a data stream or index alias. The
37783780
* API behavior depends on the rollover target.
@@ -3836,8 +3838,10 @@ public RolloverResponse rollover(RolloverRequest request) throws IOException, El
38363838
}
38373839

38383840
/**
3839-
* Roll over to a new index. TIP: It is recommended to use the index lifecycle
3840-
* rollover action to automate rollovers.
3841+
* Roll over to a new index. TIP: We recommend using the index lifecycle
3842+
* rollover action to automate rollovers. However, Serverless does not support
3843+
* Index Lifecycle Management (ILM), so don't use this approach in the
3844+
* Serverless context.
38413845
* <p>
38423846
* The rollover API creates a new index for a data stream or index alias. The
38433847
* API behavior depends on the rollover target.

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@
6363
// typedef: indices.rollover.Request
6464

6565
/**
66-
* Roll over to a new index. TIP: It is recommended to use the index lifecycle
67-
* rollover action to automate rollovers.
66+
* Roll over to a new index. TIP: We recommend using the index lifecycle
67+
* rollover action to automate rollovers. However, Serverless does not support
68+
* Index Lifecycle Management (ILM), so don't use this approach in the
69+
* Serverless context.
6870
* <p>
6971
* The rollover API creates a new index for a data stream or index alias. The
7072
* API behavior depends on the rollover target.

0 commit comments

Comments
 (0)