diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java index bcc2c288cd..4fea608f2f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java @@ -150,8 +150,8 @@ public final Time masterTimeout() { } /** - * Comma-separated list of component template names used to limit the request. - * Wildcard (*) expressions are supported. + * Name of component template to retrieve. Wildcard (*) expressions + * are supported. *

* API name: {@code name} */ @@ -254,8 +254,8 @@ public final Builder masterTimeout(Function> f } /** - * Comma-separated list of component template names used to limit the request. - * Wildcard (*) expressions are supported. + * Name of component template to retrieve. Wildcard (*) expressions + * are supported. *

* API name: {@code name} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html index 7f14ca6190..b46455dc9d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html @@ -1246,7 +1246,7 @@ 'cluster.delete_component_template.Response': 'cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L25', 'cluster.delete_voting_config_exclusions.Request': 'cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L24-L58', 'cluster.exists_component_template.Request': 'cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts#L24-L65', -'cluster.get_component_template.Request': 'cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L85', +'cluster.get_component_template.Request': 'cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L82', 'cluster.get_component_template.Response': 'cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24', 'cluster.get_settings.Request': 'cluster/get_settings/ClusterGetSettingsRequest.ts#L24-L72', 'cluster.get_settings.Response': 'cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L32', @@ -1749,8 +1749,8 @@ 'indices.put_data_stream_settings.Request': 'indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts#L25-L79', 'indices.put_data_stream_settings.Response': 'indices/put_data_stream_settings/IndicesPutDataStreamSettingsResponse.ts#L23-L28', 'indices.put_data_stream_settings.UpdatedDataStreamSettings': 'indices/put_data_stream_settings/IndicesPutDataStreamSettingsResponse.ts#L30-L55', -'indices.put_index_template.IndexTemplateMapping': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L166-L188', -'indices.put_index_template.Request': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L38-L164', +'indices.put_index_template.IndexTemplateMapping': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L167-L194', +'indices.put_index_template.Request': 'indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L39-L165', 'indices.put_index_template.Response': 'indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L25', 'indices.put_mapping.Request': 'indices/put_mapping/IndicesPutMappingRequest.ts#L42-L172', 'indices.put_mapping.Response': 'indices/put_mapping/IndicesPutMappingResponse.ts#L22-L25', @@ -2045,78 +2045,78 @@ 'inference.text_embedding.Response': 'inference/text_embedding/TextEmbeddingResponse.ts#L22-L25', 'inference.update.Request': 'inference/update/UpdateInferenceRequest.ts#L25-L63', 'inference.update.Response': 'inference/update/UpdateInferenceResponse.ts#L22-L25', -'ingest._types.AppendProcessor': 'ingest/_types/Processors.ts#L329-L344', -'ingest._types.AttachmentProcessor': 'ingest/_types/Processors.ts#L346-L387', -'ingest._types.BytesProcessor': 'ingest/_types/Processors.ts#L556-L572', -'ingest._types.CircleProcessor': 'ingest/_types/Processors.ts#L574-L597', -'ingest._types.CommunityIDProcessor': 'ingest/_types/Processors.ts#L599-L660', -'ingest._types.ConvertProcessor': 'ingest/_types/Processors.ts#L673-L693', -'ingest._types.ConvertType': 'ingest/_types/Processors.ts#L662-L671', -'ingest._types.CsvProcessor': 'ingest/_types/Processors.ts#L695-L728', +'ingest._types.AppendProcessor': 'ingest/_types/Processors.ts#L329-L351', +'ingest._types.AttachmentProcessor': 'ingest/_types/Processors.ts#L353-L394', +'ingest._types.BytesProcessor': 'ingest/_types/Processors.ts#L563-L579', +'ingest._types.CircleProcessor': 'ingest/_types/Processors.ts#L581-L604', +'ingest._types.CommunityIDProcessor': 'ingest/_types/Processors.ts#L606-L667', +'ingest._types.ConvertProcessor': 'ingest/_types/Processors.ts#L680-L700', +'ingest._types.ConvertType': 'ingest/_types/Processors.ts#L669-L678', +'ingest._types.CsvProcessor': 'ingest/_types/Processors.ts#L702-L735', 'ingest._types.DatabaseConfiguration': 'ingest/_types/Database.ts#L22-L37', 'ingest._types.DatabaseConfigurationFull': 'ingest/_types/Database.ts#L39-L53', -'ingest._types.DateIndexNameProcessor': 'ingest/_types/Processors.ts#L730-L768', -'ingest._types.DateProcessor': 'ingest/_types/Processors.ts#L770-L803', -'ingest._types.DissectProcessor': 'ingest/_types/Processors.ts#L805-L824', +'ingest._types.DateIndexNameProcessor': 'ingest/_types/Processors.ts#L737-L775', +'ingest._types.DateProcessor': 'ingest/_types/Processors.ts#L777-L810', +'ingest._types.DissectProcessor': 'ingest/_types/Processors.ts#L812-L831', 'ingest._types.Document': 'ingest/_types/Simulation.ts#L69-L83', 'ingest._types.DocumentSimulation': 'ingest/_types/Simulation.ts#L85-L115', -'ingest._types.DotExpanderProcessor': 'ingest/_types/Processors.ts#L826-L844', -'ingest._types.DropProcessor': 'ingest/_types/Processors.ts#L846-L846', -'ingest._types.EnrichProcessor': 'ingest/_types/Processors.ts#L848-L887', -'ingest._types.FailProcessor': 'ingest/_types/Processors.ts#L889-L895', -'ingest._types.FingerprintDigest': 'ingest/_types/Processors.ts#L897-L903', -'ingest._types.FingerprintProcessor': 'ingest/_types/Processors.ts#L905-L933', -'ingest._types.ForeachProcessor': 'ingest/_types/Processors.ts#L935-L949', -'ingest._types.GeoGridProcessor': 'ingest/_types/Processors.ts#L389-L430', -'ingest._types.GeoGridTargetFormat': 'ingest/_types/Processors.ts#L438-L441', -'ingest._types.GeoGridTileType': 'ingest/_types/Processors.ts#L432-L436', -'ingest._types.GeoIpProcessor': 'ingest/_types/Processors.ts#L443-L477', -'ingest._types.GrokProcessor': 'ingest/_types/Processors.ts#L951-L982', -'ingest._types.GsubProcessor': 'ingest/_types/Processors.ts#L984-L1008', -'ingest._types.HtmlStripProcessor': 'ingest/_types/Processors.ts#L1010-L1026', -'ingest._types.InferenceConfig': 'ingest/_types/Processors.ts#L1067-L1079', -'ingest._types.InferenceConfigClassification': 'ingest/_types/Processors.ts#L1094-L1120', -'ingest._types.InferenceConfigRegression': 'ingest/_types/Processors.ts#L1081-L1092', -'ingest._types.InferenceProcessor': 'ingest/_types/Processors.ts#L1028-L1060', +'ingest._types.DotExpanderProcessor': 'ingest/_types/Processors.ts#L833-L851', +'ingest._types.DropProcessor': 'ingest/_types/Processors.ts#L853-L853', +'ingest._types.EnrichProcessor': 'ingest/_types/Processors.ts#L855-L894', +'ingest._types.FailProcessor': 'ingest/_types/Processors.ts#L896-L902', +'ingest._types.FingerprintDigest': 'ingest/_types/Processors.ts#L904-L910', +'ingest._types.FingerprintProcessor': 'ingest/_types/Processors.ts#L912-L940', +'ingest._types.ForeachProcessor': 'ingest/_types/Processors.ts#L942-L956', +'ingest._types.GeoGridProcessor': 'ingest/_types/Processors.ts#L396-L437', +'ingest._types.GeoGridTargetFormat': 'ingest/_types/Processors.ts#L445-L448', +'ingest._types.GeoGridTileType': 'ingest/_types/Processors.ts#L439-L443', +'ingest._types.GeoIpProcessor': 'ingest/_types/Processors.ts#L450-L484', +'ingest._types.GrokProcessor': 'ingest/_types/Processors.ts#L958-L989', +'ingest._types.GsubProcessor': 'ingest/_types/Processors.ts#L991-L1015', +'ingest._types.HtmlStripProcessor': 'ingest/_types/Processors.ts#L1017-L1033', +'ingest._types.InferenceConfig': 'ingest/_types/Processors.ts#L1074-L1086', +'ingest._types.InferenceConfigClassification': 'ingest/_types/Processors.ts#L1101-L1127', +'ingest._types.InferenceConfigRegression': 'ingest/_types/Processors.ts#L1088-L1099', +'ingest._types.InferenceProcessor': 'ingest/_types/Processors.ts#L1035-L1067', 'ingest._types.Ingest': 'ingest/_types/Simulation.ts#L28-L36', -'ingest._types.InputConfig': 'ingest/_types/Processors.ts#L1062-L1065', -'ingest._types.IpLocationProcessor': 'ingest/_types/Processors.ts#L479-L513', +'ingest._types.InputConfig': 'ingest/_types/Processors.ts#L1069-L1072', +'ingest._types.IpLocationProcessor': 'ingest/_types/Processors.ts#L486-L520', 'ingest._types.Ipinfo': 'ingest/_types/Database.ts#L59-L59', -'ingest._types.JoinProcessor': 'ingest/_types/Processors.ts#L1122-L1137', -'ingest._types.JsonProcessor': 'ingest/_types/Processors.ts#L1139-L1168', -'ingest._types.JsonProcessorConflictStrategy': 'ingest/_types/Processors.ts#L1170-L1175', -'ingest._types.KeyValueProcessor': 'ingest/_types/Processors.ts#L1177-L1229', +'ingest._types.JoinProcessor': 'ingest/_types/Processors.ts#L1129-L1144', +'ingest._types.JsonProcessor': 'ingest/_types/Processors.ts#L1146-L1175', +'ingest._types.JsonProcessorConflictStrategy': 'ingest/_types/Processors.ts#L1177-L1182', +'ingest._types.KeyValueProcessor': 'ingest/_types/Processors.ts#L1184-L1236', 'ingest._types.Local': 'ingest/_types/Database.ts#L63-L65', -'ingest._types.LowercaseProcessor': 'ingest/_types/Processors.ts#L1231-L1247', +'ingest._types.LowercaseProcessor': 'ingest/_types/Processors.ts#L1238-L1254', 'ingest._types.Maxmind': 'ingest/_types/Database.ts#L55-L57', -'ingest._types.NetworkDirectionProcessor': 'ingest/_types/Processors.ts#L1249-L1283', +'ingest._types.NetworkDirectionProcessor': 'ingest/_types/Processors.ts#L1256-L1290', 'ingest._types.Pipeline': 'ingest/_types/Pipeline.ts#L23-L51', 'ingest._types.PipelineConfig': 'ingest/_types/Pipeline.ts#L67-L81', -'ingest._types.PipelineProcessor': 'ingest/_types/Processors.ts#L1285-L1296', +'ingest._types.PipelineProcessor': 'ingest/_types/Processors.ts#L1292-L1303', 'ingest._types.PipelineProcessorResult': 'ingest/_types/Simulation.ts#L59-L67', 'ingest._types.PipelineSimulationStatusOptions': 'ingest/_types/Simulation.ts#L51-L57', 'ingest._types.ProcessorBase': 'ingest/_types/Processors.ts#L304-L327', 'ingest._types.ProcessorContainer': 'ingest/_types/Processors.ts#L28-L302', 'ingest._types.Redact': 'ingest/_types/Simulation.ts#L38-L43', -'ingest._types.RedactProcessor': 'ingest/_types/Processors.ts#L1298-L1339', -'ingest._types.RegisteredDomainProcessor': 'ingest/_types/Processors.ts#L1341-L1357', -'ingest._types.RemoveProcessor': 'ingest/_types/Processors.ts#L1359-L1373', -'ingest._types.RenameProcessor': 'ingest/_types/Processors.ts#L1375-L1391', -'ingest._types.RerouteProcessor': 'ingest/_types/Processors.ts#L1393-L1421', -'ingest._types.ScriptProcessor': 'ingest/_types/Processors.ts#L1423-L1443', -'ingest._types.SetProcessor': 'ingest/_types/Processors.ts#L1445-L1479', -'ingest._types.SetSecurityUserProcessor': 'ingest/_types/Processors.ts#L1481-L1490', -'ingest._types.ShapeType': 'ingest/_types/Processors.ts#L1492-L1495', +'ingest._types.RedactProcessor': 'ingest/_types/Processors.ts#L1305-L1346', +'ingest._types.RegisteredDomainProcessor': 'ingest/_types/Processors.ts#L1348-L1364', +'ingest._types.RemoveProcessor': 'ingest/_types/Processors.ts#L1366-L1380', +'ingest._types.RenameProcessor': 'ingest/_types/Processors.ts#L1382-L1398', +'ingest._types.RerouteProcessor': 'ingest/_types/Processors.ts#L1400-L1428', +'ingest._types.ScriptProcessor': 'ingest/_types/Processors.ts#L1430-L1450', +'ingest._types.SetProcessor': 'ingest/_types/Processors.ts#L1452-L1487', +'ingest._types.SetSecurityUserProcessor': 'ingest/_types/Processors.ts#L1489-L1498', +'ingest._types.ShapeType': 'ingest/_types/Processors.ts#L1500-L1503', 'ingest._types.SimulateDocumentResult': 'ingest/_types/Simulation.ts#L45-L49', -'ingest._types.SortProcessor': 'ingest/_types/Processors.ts#L1497-L1513', -'ingest._types.SplitProcessor': 'ingest/_types/Processors.ts#L1515-L1540', -'ingest._types.TerminateProcessor': 'ingest/_types/Processors.ts#L1542-L1542', -'ingest._types.TrimProcessor': 'ingest/_types/Processors.ts#L1544-L1560', -'ingest._types.UppercaseProcessor': 'ingest/_types/Processors.ts#L1562-L1578', -'ingest._types.UriPartsProcessor': 'ingest/_types/Processors.ts#L1598-L1624', -'ingest._types.UrlDecodeProcessor': 'ingest/_types/Processors.ts#L1580-L1596', -'ingest._types.UserAgentProcessor': 'ingest/_types/Processors.ts#L515-L546', -'ingest._types.UserAgentProperty': 'ingest/_types/Processors.ts#L548-L554', +'ingest._types.SortProcessor': 'ingest/_types/Processors.ts#L1505-L1521', +'ingest._types.SplitProcessor': 'ingest/_types/Processors.ts#L1523-L1548', +'ingest._types.TerminateProcessor': 'ingest/_types/Processors.ts#L1550-L1550', +'ingest._types.TrimProcessor': 'ingest/_types/Processors.ts#L1552-L1568', +'ingest._types.UppercaseProcessor': 'ingest/_types/Processors.ts#L1570-L1586', +'ingest._types.UriPartsProcessor': 'ingest/_types/Processors.ts#L1606-L1632', +'ingest._types.UrlDecodeProcessor': 'ingest/_types/Processors.ts#L1588-L1604', +'ingest._types.UserAgentProcessor': 'ingest/_types/Processors.ts#L522-L553', +'ingest._types.UserAgentProperty': 'ingest/_types/Processors.ts#L555-L561', 'ingest._types.Web': 'ingest/_types/Database.ts#L61-L61', 'ingest.delete_geoip_database.Request': 'ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L24-L58', 'ingest.delete_geoip_database.Response': 'ingest/delete_geoip_database/DeleteGeoipDatabaseResponse.ts#L22-L25', @@ -2166,7 +2166,7 @@ 'license.post_start_basic.Response': 'license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31', 'license.post_start_trial.Request': 'license/post_start_trial/StartTrialLicenseRequest.ts#L24-L63', 'license.post_start_trial.Response': 'license/post_start_trial/StartTrialLicenseResponse.ts#L22-L29', -'logstash._types.Pipeline': 'logstash/_types/Pipeline.ts#L56-L87', +'logstash._types.Pipeline': 'logstash/_types/Pipeline.ts#L57-L88', 'logstash._types.PipelineMetadata': 'logstash/_types/Pipeline.ts#L23-L26', 'logstash._types.PipelineSettings': 'logstash/_types/Pipeline.ts#L28-L55', 'logstash.delete_pipeline.Request': 'logstash/delete_pipeline/LogstashDeletePipelineRequest.ts#L23-L49', @@ -2496,7 +2496,7 @@ 'ml.put_trained_model.TrainedModel': 'ml/put_trained_model/types.ts#L60-L72', 'ml.put_trained_model.TrainedModelTree': 'ml/put_trained_model/types.ts#L74-L79', 'ml.put_trained_model.TrainedModelTreeNode': 'ml/put_trained_model/types.ts#L81-L91', -'ml.put_trained_model.Weights': 'ml/put_trained_model/types.ts#L108-L110', +'ml.put_trained_model.Weights': 'ml/put_trained_model/types.ts#L109-L111', 'ml.put_trained_model_alias.Request': 'ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts#L23-L77', 'ml.put_trained_model_alias.Response': 'ml/put_trained_model_alias/MlPutTrainedModelAliasResponse.ts#L22-L25', 'ml.put_trained_model_definition_part.Request': 'ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L68', @@ -2535,7 +2535,7 @@ 'ml.update_trained_model_deployment.Response': 'ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentResponse.ts#L22-L26', 'ml.upgrade_job_snapshot.Request': 'ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts#L24-L74', 'ml.upgrade_job_snapshot.Response': 'ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L31', -'ml.validate.Request': 'ml/validate/MlValidateJobRequest.ts#L27-L55', +'ml.validate.Request': 'ml/validate/MlValidateJobRequest.ts#L27-L56', 'ml.validate.Response': 'ml/validate/MlValidateJobResponse.ts#L22-L25', 'ml.validate_detector.Request': 'ml/validate_detector/MlValidateDetectorRequest.ts#L24-L44', 'ml.validate_detector.Response': 'ml/validate_detector/MlValidateDetectorResponse.ts#L22-L25', @@ -2551,7 +2551,7 @@ 'nodes._types.ClusterAppliedStats': 'nodes/_types/Stats.ts#L223-L225', 'nodes._types.ClusterStateQueue': 'nodes/_types/Stats.ts#L250-L263', 'nodes._types.ClusterStateUpdate': 'nodes/_types/Stats.ts#L280-L345', -'nodes._types.Context': 'nodes/_types/Stats.ts#L1075-L1080', +'nodes._types.Context': 'nodes/_types/Stats.ts#L1076-L1081', 'nodes._types.Cpu': 'nodes/_types/Stats.ts#L577-L586', 'nodes._types.CpuAcct': 'nodes/_types/Stats.ts#L514-L523', 'nodes._types.DataPathStats': 'nodes/_types/Stats.ts#L588-L632', @@ -2591,16 +2591,16 @@ 'nodes._types.RepositoryLocation': 'nodes/_types/RepositoryMeteringInformation.ts#L68-L74', 'nodes._types.RepositoryMeteringInformation': 'nodes/_types/RepositoryMeteringInformation.ts#L24-L66', 'nodes._types.RequestCounts': 'nodes/_types/RepositoryMeteringInformation.ts#L76-L103', -'nodes._types.ScriptCache': 'nodes/_types/Stats.ts#L1109-L1123', +'nodes._types.ScriptCache': 'nodes/_types/Stats.ts#L1110-L1124', 'nodes._types.Scripting': 'nodes/_types/Stats.ts#L1055-L1073', 'nodes._types.SerializedClusterState': 'nodes/_types/Stats.ts#L234-L240', 'nodes._types.SerializedClusterStateDetail': 'nodes/_types/Stats.ts#L242-L248', 'nodes._types.SizeHttpHistogram': 'nodes/_types/Stats.ts#L716-L720', 'nodes._types.Stats': 'nodes/_types/Stats.ts#L30-L114', -'nodes._types.ThreadCount': 'nodes/_types/Stats.ts#L1082-L1107', +'nodes._types.ThreadCount': 'nodes/_types/Stats.ts#L1083-L1108', 'nodes._types.TimeHttpHistogram': 'nodes/_types/Stats.ts#L710-L714', -'nodes._types.Transport': 'nodes/_types/Stats.ts#L1125-L1168', -'nodes._types.TransportHistogram': 'nodes/_types/Stats.ts#L1170-L1184', +'nodes._types.Transport': 'nodes/_types/Stats.ts#L1126-L1169', +'nodes._types.TransportHistogram': 'nodes/_types/Stats.ts#L1171-L1185', 'nodes.clear_repositories_metering_archive.Request': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts#L24-L54', 'nodes.clear_repositories_metering_archive.Response': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L37-L40', 'nodes.clear_repositories_metering_archive.ResponseBase': 'nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L25-L35', @@ -2921,7 +2921,7 @@ 'security.oidc_logout.Response': 'security/oidc_logout/Response.ts#L20-L27', 'security.oidc_prepare_authentication.Request': 'security/oidc_prepare_authentication/Request.ts#L23-L74', 'security.oidc_prepare_authentication.Response': 'security/oidc_prepare_authentication/Response.ts#L20-L30', -'security.put_privileges.Actions': 'security/put_privileges/types.ts#L22-L27', +'security.put_privileges.Actions': 'security/put_privileges/types.ts#L23-L28', 'security.put_privileges.Request': 'security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L72', 'security.put_privileges.Response': 'security/put_privileges/SecurityPutPrivilegesResponse.ts#L23-L28', 'security.put_role.Request': 'security/put_role/SecurityPutRoleRequest.ts#L32-L116', @@ -3394,10 +3394,10 @@ if (hash.length > 1) { hash = hash.substring(1); } - window.location = "https://github.com/elastic/elasticsearch-specification/tree/226befa75c1c9925a0fc05ffc9596f5177dd4ee7/specification/" + (paths[hash] || ""); + window.location = "https://github.com/elastic/elasticsearch-specification/tree/351731c7b71eafca07c619fac12ff4656d7404b2/specification/" + (paths[hash] || ""); - Please see the Elasticsearch API specification. + Please see the Elasticsearch API specification. diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java index 0b7be581ce..506fe2fd3a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java @@ -236,7 +236,7 @@ public final List index() { } /** - * The number of segments the index should be merged into (defayult: dynamic) + * The number of segments the index should be merged into (default: dynamic) *

* API name: {@code max_num_segments} */ @@ -384,7 +384,7 @@ public final Builder index(String value, String... values) { } /** - * The number of segments the index should be merged into (defayult: dynamic) + * The number of segments the index should be merged into (default: dynamic) *

* API name: {@code max_num_segments} */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java index b229239198..fa8cb1956f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/put_index_template/IndexTemplateMapping.java @@ -22,6 +22,7 @@ import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; import co.elastic.clients.elasticsearch.indices.Alias; import co.elastic.clients.elasticsearch.indices.DataStreamLifecycle; +import co.elastic.clients.elasticsearch.indices.DataStreamOptionsTemplate; import co.elastic.clients.elasticsearch.indices.IndexSettings; import co.elastic.clients.json.JsonpDeserializable; import co.elastic.clients.json.JsonpDeserializer; @@ -76,6 +77,9 @@ public class IndexTemplateMapping implements JsonpSerializable { @Nullable private final DataStreamLifecycle lifecycle; + @Nullable + private final DataStreamOptionsTemplate dataStreamOptions; + // --------------------------------------------------------------------------------------------- private IndexTemplateMapping(Builder builder) { @@ -84,6 +88,7 @@ private IndexTemplateMapping(Builder builder) { this.mappings = builder.mappings; this.settings = builder.settings; this.lifecycle = builder.lifecycle; + this.dataStreamOptions = builder.dataStreamOptions; } @@ -132,6 +137,14 @@ public final DataStreamLifecycle lifecycle() { return this.lifecycle; } + /** + * API name: {@code data_stream_options} + */ + @Nullable + public final DataStreamOptionsTemplate dataStreamOptions() { + return this.dataStreamOptions; + } + /** * Serialize this object to JSON. */ @@ -169,6 +182,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { this.lifecycle.serialize(generator, mapper); } + if (this.dataStreamOptions != null) { + generator.writeKey("data_stream_options"); + this.dataStreamOptions.serialize(generator, mapper); + + } } @@ -198,6 +216,9 @@ public static class Builder extends WithJsonObjectBuilderBase @Nullable private DataStreamLifecycle lifecycle; + @Nullable + private DataStreamOptionsTemplate dataStreamOptions; + /** * Aliases to add. If the index template includes a data_stream * object, these are data stream aliases. Otherwise, these are index aliases. @@ -297,6 +318,22 @@ public final Builder lifecycle(Function> fn) { + return this.dataStreamOptions(fn.apply(new DataStreamOptionsTemplate.Builder()).build()); + } + @Override protected Builder self() { return this; @@ -329,6 +366,7 @@ protected static void setupIndexTemplateMappingDeserializer(ObjectDeserializerchat_completion task - * type for openai and elastic inference services. + * type. *

* NOTE: The chat_completion task type is only available within the * _stream API and only supports streaming. The Chat completion inference API * and the Stream inference API differ in their response structure and * capabilities. The Chat completion inference API provides more comprehensive - * customization options through more fields and function calling support. If - * you use the openai, hugging_face or the - * elastic service, use the Chat completion inference API. + * customization options through more fields and function calling support. To + * determine whether a given inference service supports this task type, please + * see the page for that service. * * @see API diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java index 9580743582..7cab98f520 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceAsyncClient.java @@ -76,15 +76,15 @@ public ElasticsearchInferenceAsyncClient withTransportOptions(@Nullable Transpor * The chat completion inference API enables real-time responses for chat * completion tasks by delivering answers incrementally, reducing response times * during computation. It only works with the chat_completion task - * type for openai and elastic inference services. + * type. *

* NOTE: The chat_completion task type is only available within the * _stream API and only supports streaming. The Chat completion inference API * and the Stream inference API differ in their response structure and * capabilities. The Chat completion inference API provides more comprehensive - * customization options through more fields and function calling support. If - * you use the openai, hugging_face or the - * elastic service, use the Chat completion inference API. + * customization options through more fields and function calling support. To + * determine whether a given inference service supports this task type, please + * see the page for that service. * * @see Documentation @@ -104,15 +104,15 @@ public CompletableFuture chatCompletionUnified(ChatCompletionUni * The chat completion inference API enables real-time responses for chat * completion tasks by delivering answers incrementally, reducing response times * during computation. It only works with the chat_completion task - * type for openai and elastic inference services. + * type. *

* NOTE: The chat_completion task type is only available within the * _stream API and only supports streaming. The Chat completion inference API * and the Stream inference API differ in their response structure and * capabilities. The Chat completion inference API provides more comprehensive - * customization options through more fields and function calling support. If - * you use the openai, hugging_face or the - * elastic service, use the Chat completion inference API. + * customization options through more fields and function calling support. To + * determine whether a given inference service supports this task type, please + * see the page for that service. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java index d6d7a9c535..833e2f22b2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ElasticsearchInferenceClient.java @@ -74,15 +74,15 @@ public ElasticsearchInferenceClient withTransportOptions(@Nullable TransportOpti * The chat completion inference API enables real-time responses for chat * completion tasks by delivering answers incrementally, reducing response times * during computation. It only works with the chat_completion task - * type for openai and elastic inference services. + * type. *

* NOTE: The chat_completion task type is only available within the * _stream API and only supports streaming. The Chat completion inference API * and the Stream inference API differ in their response structure and * capabilities. The Chat completion inference API provides more comprehensive - * customization options through more fields and function calling support. If - * you use the openai, hugging_face or the - * elastic service, use the Chat completion inference API. + * customization options through more fields and function calling support. To + * determine whether a given inference service supports this task type, please + * see the page for that service. * * @see Documentation @@ -103,15 +103,15 @@ public BinaryResponse chatCompletionUnified(ChatCompletionUnifiedRequest request * The chat completion inference API enables real-time responses for chat * completion tasks by delivering answers incrementally, reducing response times * during computation. It only works with the chat_completion task - * type for openai and elastic inference services. + * type. *

* NOTE: The chat_completion task type is only available within the * _stream API and only supports streaming. The Chat completion inference API * and the Stream inference API differ in their response structure and * capabilities. The Chat completion inference API provides more comprehensive - * customization options through more fields and function calling support. If - * you use the openai, hugging_face or the - * elastic service, use the Chat completion inference API. + * customization options through more fields and function calling support. To + * determine whether a given inference service supports this task type, please + * see the page for that service. * * @param fn * a function that initializes a builder to create the diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java index 3f12acfeca..78c159acfe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/AppendProcessor.java @@ -63,6 +63,9 @@ public class AppendProcessor extends ProcessorBase implements ProcessorVariant { private final List value; + @Nullable + private final String mediaType; + @Nullable private final Boolean allowDuplicates; @@ -72,7 +75,8 @@ private AppendProcessor(Builder builder) { super(builder); this.field = ApiTypeHelper.requireNonNull(builder.field, this, "field"); - this.value = ApiTypeHelper.unmodifiableRequired(builder.value, this, "value"); + this.value = ApiTypeHelper.unmodifiable(builder.value); + this.mediaType = builder.mediaType; this.allowDuplicates = builder.allowDuplicates; } @@ -99,7 +103,7 @@ public final String field() { } /** - * Required - The value to be appended. Supports template snippets. + * The value to be appended. Supports template snippets. *

* API name: {@code value} */ @@ -107,6 +111,18 @@ public final List value() { return this.value; } + /** + * The media type for encoding value. Applies only when value is a + * template snippet. Must be one of application/json, + * text/plain, or application/x-www-form-urlencoded. + *

+ * API name: {@code media_type} + */ + @Nullable + public final String mediaType() { + return this.mediaType; + } + /** * If false, the processor does not append values already present * in the field. @@ -133,6 +149,11 @@ protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) { } generator.writeEnd(); + } + if (this.mediaType != null) { + generator.writeKey("media_type"); + generator.write(this.mediaType); + } if (this.allowDuplicates != null) { generator.writeKey("allow_duplicates"); @@ -153,8 +174,12 @@ public static class Builder extends ProcessorBase.AbstractBuilder ObjectBuilder { private String field; + @Nullable private List value; + @Nullable + private String mediaType; + @Nullable private Boolean allowDuplicates; @@ -169,7 +194,7 @@ public final Builder field(String value) { } /** - * Required - The value to be appended. Supports template snippets. + * The value to be appended. Supports template snippets. *

* API name: {@code value} *

@@ -181,7 +206,7 @@ public final Builder value(List list) { } /** - * Required - The value to be appended. Supports template snippets. + * The value to be appended. Supports template snippets. *

* API name: {@code value} *

@@ -192,6 +217,18 @@ public final Builder value(JsonData value, JsonData... values) { return this; } + /** + * The media type for encoding value. Applies only when value is a + * template snippet. Must be one of application/json, + * text/plain, or application/x-www-form-urlencoded. + *

+ * API name: {@code media_type} + */ + public final Builder mediaType(@Nullable String value) { + this.mediaType = value; + return this; + } + /** * If false, the processor does not append values already present * in the field. @@ -233,6 +270,7 @@ protected static void setupAppendProcessorDeserializer(ObjectDeserializer